/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/ |
H A D | a2dp_sbc_param_ctrl.cpp | 44 if (A2DP_SBC_SOURCE_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_MONO) { in A2dpCodecConfigSbcSource() 47 if (A2DP_SBC_SOURCE_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_JOINT_STEREO) { in A2dpCodecConfigSbcSource() 50 if (A2DP_SBC_SOURCE_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_STEREO) { in A2dpCodecConfigSbcSource() 53 if (A2DP_SBC_SOURCE_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_DUAL) { in A2dpCodecConfigSbcSource() 74 if (A2DP_SBC_SINK_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_MONO) { in A2dpCodecConfigSbcSink() 77 if (A2DP_SBC_SINK_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_JOINT_STEREO) { in A2dpCodecConfigSbcSink() 80 if (A2DP_SBC_SINK_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_STEREO) { in A2dpCodecConfigSbcSink() 83 if (A2DP_SBC_SINK_CAPS.channelMode & A2DP_SBC_CHANNEL_MODE_DUAL) { in A2dpCodecConfigSbcSink() 348 resultCap.channelMode = A2DP_SBC_CHANNEL_MODE_MONO; in SetChannelModeUser() 357 resultCap.channelMode in SetChannelModeUser() [all...] |
H A D | a2dp_aac_param_ctrl.cpp | 91 if (A2DP_AAC_SOURCE_CAPS.channelMode & A2DP_AAC_CHANNEL_MODE_OCTET2_DOUBLE) { in A2dpCodecConfigAacSource() 94 if (A2DP_AAC_SOURCE_CAPS.channelMode & A2DP_AAC_CHANNEL_MODE_OCTET2_SINGLE) { in A2dpCodecConfigAacSource() 119 if (A2DP_AAC_SINK_CAPS.channelMode & A2DP_AAC_CHANNEL_MODE_OCTET2_DOUBLE) { in A2dpCodecConfigAacSink() 122 if (A2DP_AAC_SINK_CAPS.channelMode & A2DP_AAC_CHANNEL_MODE_OCTET2_SINGLE) { in A2dpCodecConfigAacSink() 446 resultCap.channelMode = A2DP_AAC_CHANNEL_MODE_OCTET2_SINGLE; in SetChannelModeUser() 453 resultCap.channelMode = A2DP_AAC_CHANNEL_MODE_OCTET2_DOUBLE; in SetChannelModeUser() 460 resultCap.channelMode = A2DP_CHANNEL_MODE_NONE; in SetChannelModeUser() 495 resultCap.channelMode = A2DP_AAC_CHANNEL_MODE_OCTET2_SINGLE; in SetChannelModeAudioConfig() 502 resultCap.channelMode = A2DP_AAC_CHANNEL_MODE_OCTET2_DOUBLE; in SetChannelModeAudioConfig() 518 resultCap.channelMode in SetChannelModeBestMatch() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbccodecctrl/src/ |
H A D | a2dp_encoder_sbc.cpp | 175 LOG_INFO("Use default channelMode: JOINT_STEREO"); in A2dpSbcGetTrackChannelMode() 233 LOG_INFO("[SbcEncoder] %{public}s [sampleRate:%u] [bitsPerSample:%u] [channelMode:%u]", in A2dpSbcUpdateEncodeFeedingParams() 243 encParams->channelMode = A2dpSbcGetTrackChannelMode(codecInfo); in A2dpSbcUpdateEncoderParams() 252 encParams->channelMode, in A2dpSbcUpdateEncoderParams() 274 g_sbcEncode.channelMode, in SetSBCParam() 376 switch (encParams->channelMode) { in ConvertModeParamToSBCParam() 378 g_sbcEncode.channelMode = sbc::SBC_CHANNEL_MODE_MONO; in ConvertModeParamToSBCParam() 381 g_sbcEncode.channelMode = sbc::SBC_CHANNEL_MODE_DUAL_CHANNEL; in ConvertModeParamToSBCParam() 384 g_sbcEncode.channelMode = sbc::SBC_CHANNEL_MODE_STEREO; in ConvertModeParamToSBCParam() 387 g_sbcEncode.channelMode in ConvertModeParamToSBCParam() 482 uint16_t channelMode = (g_sbcEncode.channelMode == sbc::SBC_CHANNEL_MODE_MONO) ? CHANNEL_ONE : CHANNEL_TWO; A2dpSbcEncodeFrames() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_a2dp_source_server.cpp | 65 tmpInfo.channelMode = info.channelMode; 319 codeStatus.codecInfo.channelMode = ret.codecInfo.channelMode; in GetCodecStatus() 330 serviceInfo.channelMode = it->channelMode; in GetCodecStatus() 343 serviceInfo.channelMode = it->channelMode; in GetCodecStatus() 363 "channelMode = %{public}d, codecSpecific1 = %{public}llu, codecSpecific2 = %{public}llu, " in SetCodecPreference() 365 info.codecPriority, info.codecType, info.sampleRate, info.bitsPerSample, info.channelMode, in SetCodecPreference() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/external/dummy/include/stub/ |
H A D | a2dp_data_service.h | 91 bool SourceInitPcmStream(uint8_t sampleRate, uint8_t channelMode, uint8_t bitsPerSample = PCM_SAMPLE_BITS_16) in SourceInitPcmStream() argument 97 bool SinkInitPcmStream(uint8_t sampleRate, uint8_t channelMode, uint8_t codecType, in SinkInitPcmStream() argument
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_a2dp_src.cpp | 89 codecInfo.channelMode = info.channelMode; 394 ret.codecInfo.channelMode = codecStatus.codecInfo.channelMode; in GetCodecStatus() 402 serviceInfo.channelMode = it->channelMode; in GetCodecStatus() 411 serviceInfo.channelMode = it->channelMode; in GetCodecStatus() 442 info.channelMode = serviceInfo.channelMode; in GetCodecPreference() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/include/ |
H A D | sbc_constant.h | 35 uint8_t channelMode; member
|
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_a2dp_a2dpCodecInfo.cpp | 35 if (!parcel.WriteUint8(channelMode)) { in Marshalling() 82 if (!parcel.ReadUint8(channelMode)) { in ReadFromParcel()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/include/ |
H A D | a2dp_codec_constant.h | 167 uint8_t channelMode; /* Channel mode */ member 179 (A2DP_SBC_CHANNEL_MODE_MONO | A2DP_SBC_CHANNEL_MODE_STEREO), /* channelMode */ 191 (A2DP_SBC_CHANNEL_MODE_MONO | A2DP_SBC_CHANNEL_MODE_STEREO), /* channelMode */ 203 A2DP_SBC_CHANNEL_MODE_MONO, /* channelMode */ 222 uint8_t channelMode; member
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_service.cpp | 1194 if ((newInfo.channelMode == A2DP_CHANNEL_MODE_NONE_USER) || in IsSimilarCodecConfig() 1195 (codecInfo.channelMode == A2DP_CHANNEL_MODE_NONE_USER)) { in IsSimilarCodecConfig() 1196 newInfo.channelMode = codecInfo.channelMode; in IsSimilarCodecConfig() 1200 (newInfo.channelMode == codecInfo.channelMode)) { in IsSimilarCodecConfig() 1215 LOG_INFO("[A2dpService] %{public}s Set channelMode(%{public}u)\n", __func__, codecInformation.channelMode); in IsLocalCodecInfo() 1221 LOG_INFO("[A2dpService] %{public}s channelMode(%{public}u)\n", __func__, info.channelMode); in IsLocalCodecInfo() [all...] |
H A D | a2dp_profile_peer.cpp | 726 userConfig.channelMode_ = info.channelMode; in ChangeUserConfigureInfo() 1060 codecStatus.codecInfo.channelMode = config->GetCodecConfig().channelMode_; in GetCodecStatus() 1065 LOG_INFO("[A2dpProfilePeer] %{public}s channelMode(%u) \n", __func__, codecStatus.codecInfo.channelMode); in GetCodecStatus() 1071 localCap.channelMode = config->GetCodecLocalCapability().channelMode_; in GetCodecStatus() 1077 LOG_INFO("[A2dpProfilePeer] %{public}s channelMode(%u) \n", __func__, localCap.channelMode); in GetCodecStatus() 1103 selectableCap.channelMode = *codecInfo & A2DP_SBC_CHANNEL_MODE_MSK; in FindPeerSelectableCapabilityMatched() 1115 selectableCap.channelMode = *codecInfo++ & A2DP_AAC_CHANNEL_MODE_OCTET2_MSK; in FindPeerSelectableCapabilityMatched() 1123 LOG_INFO("[A2dpProfilePeer] %{public}s channelMode( in FindPeerSelectableCapabilityMatched() [all...] |
H A D | a2dp_profile.cpp | 492 *data++ = A2DP_SBC_SINK_CAPS.sampleFreq | A2DP_SBC_SINK_CAPS.channelMode; in BuildCodecInfo() 502 *data++ = A2DP_SBC_SOURCE_CAPS.sampleFreq | A2DP_SBC_SOURCE_CAPS.channelMode; in BuildCodecInfo()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_a2dp_codec.h | 53 uint8_t channelMode; member
|
/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_profile_a2dp_src.h | 45 uint8_t channelMode; member
|
/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | a2dp_parcel_codec.h | 125 uint8_t channelMode; member
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_encoder.cpp | 99 uint8_t joint = (codecParam.channelMode == SBC_CHANNEL_MODE_STEREO) ? JOINT_STEREO : NOT_JOINT_STEREO; in CalculateFrameLength() 100 uint8_t channels = (codecParam.channelMode == SBC_CHANNEL_MODE_MONO) ? CHANNEL_1 : CHANNEL_2; in CalculateFrameLength() 104 if (channels == CHANNEL_1 || codecParam.channelMode == SBC_CHANNEL_MODE_DUAL_CHANNEL) { in CalculateFrameLength() 115 uint16_t channels = (codecParam.channelMode == SBC_CHANNEL_MODE_MONO) ? CHANNEL_1 : CHANNEL_2; in CalculateCodecSize() 125 frame_.channelMode_ = codecParam.channelMode; in UpdateCodecFormat() 126 frame_.channels_ = ((codecParam.channelMode == SBC_CHANNEL_MODE_MONO) ? CHANNEL_1 : CHANNEL_2); in UpdateCodecFormat()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbccodecctrl/include/ |
H A D | a2dp_encoder_sbc.h | 91 int16_t channelMode; // mono:0, dual:1, stereo:2, joint stereo:3. member
|
/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/ |
H A D | audio_bluetooth_manager.cpp | 55 codecInfo.sampleRate, codecInfo.bitsPerSample, codecInfo.channelMode); in GetAudioStreamInfo() 89 switch (codecInfo.channelMode) { in GetAudioStreamInfo() 329 codecInfo.sampleRate, codecInfo.channelMode, codecInfo.bitsPerSample); in OnConfigurationChanged()
|
/foundation/communication/bluetooth_service/test/unittest/a2dp/ |
H A D | a2dp_src_test.cpp | 304 info.channelMode = 4; in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/a2dp/ |
H A D | napi_bluetooth_a2dp_src.cpp | 560 a2dpCodecInfo.channelMode = iter->second; in ConvertCodecChannelMode() 609 ConvertCodecChannelModeToCodecInfo(codecInfo, a2dpCodecInfo.channelMode); in ConvertCodecInfoToJs()
|