Home
last modified time | relevance | path

Searched refs:channelLayoutJson (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/
H A Dhistreamer_ability_querier.cpp384 cJSON *channelLayoutJson = cJSON_CreateArray(); in ToJson() local
385 if (channelLayoutJson == nullptr) { in ToJson()
389 cJSON_AddItemToArray(channelLayoutJson, cJSON_CreateNumber(static_cast<uint64_t>(layout))); in ToJson()
391 cJSON_AddItemToObject(jsonObject, AUDIO_CHANNEL_LAYOUT.c_str(), channelLayoutJson); in ToJson()
406 …cJSON *channelLayoutJson = cJSON_GetObjectItemCaseSensitive(jsonObject, AUDIO_CHANNEL_LAYOUT.c_str… in FromJson() local
407 if (channelLayoutJson == nullptr || !cJSON_IsArray(channelLayoutJson)) { in FromJson()
412 cJSON_ArrayForEach(layoutInfo, channelLayoutJson) { in FromJson()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp151 const cJSON *channelLayoutJson = cJSON_GetObjectItem(jsonObject, AUDIO_CHANNEL_LAYOUT.c_str()); in FromJson() local
153 cJSON_ArrayForEach(layout, channelLayoutJson) { in FromJson()