Home
last modified time | relevance | path

Searched refs:p_codec_info (Results 1 – 25 of 28) sorted by relevance

12

/system/bt/stack/a2dp/
Da2dp_vendor.cc31 bool A2DP_IsVendorSourceCodecValid(const uint8_t* p_codec_info) { in A2DP_IsVendorSourceCodecValid() argument
32 uint32_t vendor_id = A2DP_VendorCodecGetVendorId(p_codec_info); in A2DP_IsVendorSourceCodecValid()
33 uint16_t codec_id = A2DP_VendorCodecGetCodecId(p_codec_info); in A2DP_IsVendorSourceCodecValid()
38 return A2DP_IsVendorSourceCodecValidAptx(p_codec_info); in A2DP_IsVendorSourceCodecValid()
44 return A2DP_IsVendorSourceCodecValidAptxHd(p_codec_info); in A2DP_IsVendorSourceCodecValid()
49 return A2DP_IsVendorSourceCodecValidLdac(p_codec_info); in A2DP_IsVendorSourceCodecValid()
57 bool A2DP_IsVendorSinkCodecValid(const uint8_t* p_codec_info) { in A2DP_IsVendorSinkCodecValid() argument
58 uint32_t vendor_id = A2DP_VendorCodecGetVendorId(p_codec_info); in A2DP_IsVendorSinkCodecValid()
59 uint16_t codec_id = A2DP_VendorCodecGetCodecId(p_codec_info); in A2DP_IsVendorSinkCodecValid()
66 return A2DP_IsVendorSinkCodecValidLdac(p_codec_info); in A2DP_IsVendorSinkCodecValid()
[all …]
Da2dp_codec_config.cc152 uint8_t p_codec_info[AVDT_CODEC_SIZE]; in getTrackBitRate() local
153 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in getTrackBitRate()
154 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info); in getTrackBitRate()
162 return A2DP_GetBitRateAac(p_codec_info); in getTrackBitRate()
164 return A2DP_VendorGetBitRate(p_codec_info); in getTrackBitRate()
250 bool A2dpCodecConfig::copyOutOtaCodecConfig(uint8_t* p_codec_info) { in copyOutOtaCodecConfig() argument
258 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in copyOutOtaCodecConfig()
661 const uint8_t* p_codec_info) { in findSourceCodecConfig() argument
663 btav_a2dp_codec_index_t codec_index = A2DP_SourceCodecIndex(p_codec_info); in findSourceCodecConfig()
671 A2dpCodecConfig* A2dpCodecs::findSinkCodecConfig(const uint8_t* p_codec_info) { in findSinkCodecConfig() argument
[all …]
Da2dp_vendor_aptx_hd.cc91 const tA2DP_APTX_HD_CIE* p_cap, const uint8_t* p_codec_info,
131 const uint8_t* p_codec_info, in A2DP_ParseInfoAptxHd() argument
137 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAptxHd()
140 losc = *p_codec_info++; in A2DP_ParseInfoAptxHd()
143 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAptxHd()
144 codec_type = *p_codec_info++; in A2DP_ParseInfoAptxHd()
152 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptxHd()
153 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoAptxHd()
154 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoAptxHd()
155 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoAptxHd()
[all …]
Da2dp_aac.cc110 const tA2DP_AAC_CIE* p_cap, const uint8_t* p_codec_info,
160 const uint8_t* p_codec_info, in A2DP_ParseInfoAac() argument
166 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAac()
169 losc = *p_codec_info++; in A2DP_ParseInfoAac()
172 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAac()
173 codec_type = *p_codec_info++; in A2DP_ParseInfoAac()
179 p_ie->objectType = *p_codec_info++; in A2DP_ParseInfoAac()
180 p_ie->sampleRate = (*p_codec_info & A2DP_AAC_SAMPLING_FREQ_MASK0) | in A2DP_ParseInfoAac()
181 (*(p_codec_info + 1) << 8 & A2DP_AAC_SAMPLING_FREQ_MASK1); in A2DP_ParseInfoAac()
182 p_codec_info++; in A2DP_ParseInfoAac()
[all …]
Da2dp_vendor_aptx.cc84 const tA2DP_APTX_CIE* p_cap, const uint8_t* p_codec_info,
120 const uint8_t* p_codec_info, in A2DP_ParseInfoAptx() argument
126 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoAptx()
129 losc = *p_codec_info++; in A2DP_ParseInfoAptx()
132 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoAptx()
133 codec_type = *p_codec_info++; in A2DP_ParseInfoAptx()
141 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoAptx()
142 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoAptx()
143 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoAptx()
144 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoAptx()
[all …]
Da2dp_sbc.cc111 const tA2DP_SBC_CIE* p_cap, const uint8_t* p_codec_info,
161 const uint8_t* p_codec_info, in A2DP_ParseInfoSbc() argument
167 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoSbc()
170 losc = *p_codec_info++; in A2DP_ParseInfoSbc()
173 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoSbc()
174 codec_type = *p_codec_info++; in A2DP_ParseInfoSbc()
180 p_ie->samp_freq = *p_codec_info & A2DP_SBC_IE_SAMP_FREQ_MSK; in A2DP_ParseInfoSbc()
181 p_ie->ch_mode = *p_codec_info & A2DP_SBC_IE_CH_MD_MSK; in A2DP_ParseInfoSbc()
182 p_codec_info++; in A2DP_ParseInfoSbc()
183 p_ie->block_len = *p_codec_info & A2DP_SBC_IE_BLOCKS_MSK; in A2DP_ParseInfoSbc()
[all …]
Da2dp_vendor_ldac.cc102 const tA2DP_LDAC_CIE* p_cap, const uint8_t* p_codec_info,
148 const uint8_t* p_codec_info, in A2DP_ParseInfoLdac() argument
154 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoLdac()
157 losc = *p_codec_info++; in A2DP_ParseInfoLdac()
160 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoLdac()
161 codec_type = *p_codec_info++; in A2DP_ParseInfoLdac()
169 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoLdac()
170 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoLdac()
171 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoLdac()
172 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoLdac()
[all …]
Da2dp_aac_encoder.cc210 const uint8_t* p_codec_info = codec_info; in a2dp_aac_encoder_update() local
214 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
217 p_feeding_params->channel_count = A2DP_GetTrackChannelCountAac(p_codec_info); in a2dp_aac_encoder_update()
226 p_encoder_params->channel_mode = A2DP_GetChannelModeCodeAac(p_codec_info); in a2dp_aac_encoder_update()
262 int object_type = A2DP_GetObjectTypeCodeAac(p_codec_info); in a2dp_aac_encoder_update()
318 aac_param_value = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
331 aac_param_value = A2DP_GetBitRateAac(p_codec_info); in a2dp_aac_encoder_update()
334 A2DP_ComputeMaxBitRateAac(p_codec_info, a2dp_aac_encoder_cb.TxAaMtuSize); in a2dp_aac_encoder_update()
368 if (A2DP_GetTrackChannelCountAac(p_codec_info) == 1) { in a2dp_aac_encoder_update()
408 aac_param_value = A2DP_GetVariableBitRateSupportAac(p_codec_info); in a2dp_aac_encoder_update()
Da2dp_sbc_encoder.cc209 const uint8_t* p_codec_info = codec_info; in a2dp_sbc_encoder_update() local
210 min_bitpool = A2DP_GetMinBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update()
211 max_bitpool = A2DP_GetMaxBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update()
215 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateSbc(p_codec_info); in a2dp_sbc_encoder_update()
218 p_feeding_params->channel_count = A2DP_GetTrackChannelCountSbc(p_codec_info); in a2dp_sbc_encoder_update()
225 p_encoder_params->s16ChannelMode = A2DP_GetChannelModeCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
227 A2DP_GetNumberOfSubbandsSbc(p_codec_info); in a2dp_sbc_encoder_update()
228 p_encoder_params->s16NumOfBlocks = A2DP_GetNumberOfBlocksSbc(p_codec_info); in a2dp_sbc_encoder_update()
230 A2DP_GetAllocationMethodCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
232 A2DP_GetSamplingFrequencyCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
[all …]
Da2dp_vendor_aptx_hd_encoder.cc255 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_hd_encoder_update() local
261 A2DP_VendorGetTrackSampleRateAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update()
265 A2DP_VendorGetTrackChannelCountAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update()
Da2dp_vendor_aptx_encoder.cc255 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_encoder_update() local
260 A2DP_VendorGetTrackSampleRateAptx(p_codec_info); in a2dp_vendor_aptx_encoder_update()
264 A2DP_VendorGetTrackChannelCountAptx(p_codec_info); in a2dp_vendor_aptx_encoder_update()
Da2dp_vendor_ldac_encoder.cc373 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_ldac_encoder_update() local
379 A2DP_VendorGetTrackSampleRateLdac(p_codec_info); in a2dp_vendor_ldac_encoder_update()
383 A2DP_VendorGetTrackChannelCountLdac(p_codec_info); in a2dp_vendor_ldac_encoder_update()
393 A2DP_VendorGetChannelModeCodeLdac(p_codec_info); in a2dp_vendor_ldac_encoder_update()
/system/bt/stack/include/
Da2dp_vendor.h42 bool A2DP_IsVendorSourceCodecValid(const uint8_t* p_codec_info);
49 bool A2DP_IsVendorSinkCodecValid(const uint8_t* p_codec_info);
56 bool A2DP_IsVendorPeerSourceCodecValid(const uint8_t* p_codec_info);
63 bool A2DP_IsVendorPeerSinkCodecValid(const uint8_t* p_codec_info);
69 bool A2DP_IsVendorSinkCodecSupported(const uint8_t* p_codec_info);
77 bool A2DP_IsVendorPeerSourceCodecSupported(const uint8_t* p_codec_info);
82 uint32_t A2DP_VendorCodecGetVendorId(const uint8_t* p_codec_info);
87 uint16_t A2DP_VendorCodecGetCodecId(const uint8_t* p_codec_info);
95 const uint8_t* p_codec_info);
98 const char* A2DP_VendorCodecName(const uint8_t* p_codec_info);
[all …]
Da2dp_sbc.h84 bool A2DP_IsSourceCodecValidSbc(const uint8_t* p_codec_info);
90 bool A2DP_IsSinkCodecValidSbc(const uint8_t* p_codec_info);
97 bool A2DP_IsPeerSourceCodecValidSbc(const uint8_t* p_codec_info);
104 bool A2DP_IsPeerSinkCodecValidSbc(const uint8_t* p_codec_info);
109 bool A2DP_IsSinkCodecSupportedSbc(const uint8_t* p_codec_info);
117 bool A2DP_IsPeerSourceCodecSupportedSbc(const uint8_t* p_codec_info);
122 void A2DP_InitDefaultCodecSbc(uint8_t* p_codec_info);
125 const char* A2DP_CodecNameSbc(const uint8_t* p_codec_info);
144 int A2DP_GetTrackSampleRateSbc(const uint8_t* p_codec_info);
150 int A2DP_GetTrackBitsPerSampleSbc(const uint8_t* p_codec_info);
[all …]
Da2dp_aac.h85 bool A2DP_IsSourceCodecValidAac(const uint8_t* p_codec_info);
91 bool A2DP_IsSinkCodecValidAac(const uint8_t* p_codec_info);
98 bool A2DP_IsPeerSourceCodecValidAac(const uint8_t* p_codec_info);
105 bool A2DP_IsPeerSinkCodecValidAac(const uint8_t* p_codec_info);
110 bool A2DP_IsSinkCodecSupportedAac(const uint8_t* p_codec_info);
118 bool A2DP_IsPeerSourceCodecSupportedAac(const uint8_t* p_codec_info);
126 const uint8_t* p_codec_info);
129 const char* A2DP_CodecNameAac(const uint8_t* p_codec_info);
148 int A2DP_GetTrackSampleRateAac(const uint8_t* p_codec_info);
154 int A2DP_GetTrackBitsPerSampleAac(const uint8_t* p_codec_info);
[all …]
Da2dp_vendor_ldac.h85 bool A2DP_IsVendorSourceCodecValidLdac(const uint8_t* p_codec_info);
92 bool A2DP_IsVendorSinkCodecValidLdac(const uint8_t* p_codec_info);
99 bool A2DP_IsVendorPeerSinkCodecValidLdac(const uint8_t* p_codec_info);
106 bool A2DP_IsVendorPeerSourceCodecValidLdac(const uint8_t* p_codec_info);
111 bool A2DP_IsVendorSinkCodecSupportedLdac(const uint8_t* p_codec_info);
119 bool A2DP_IsPeerSourceCodecSupportedLdac(const uint8_t* p_codec_info);
127 const uint8_t* p_codec_info);
130 const char* A2DP_VendorCodecNameLdac(const uint8_t* p_codec_info);
149 int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info);
155 int A2DP_VendorGetTrackBitsPerSampleLdac(const uint8_t* p_codec_info);
[all …]
Da2dp_vendor_aptx_hd.h55 bool A2DP_IsVendorSourceCodecValidAptxHd(const uint8_t* p_codec_info);
62 bool A2DP_IsVendorPeerSinkCodecValidAptxHd(const uint8_t* p_codec_info);
70 const uint8_t* p_codec_info);
73 const char* A2DP_VendorCodecNameAptxHd(const uint8_t* p_codec_info);
92 int A2DP_VendorGetTrackSampleRateAptxHd(const uint8_t* p_codec_info);
98 int A2DP_VendorGetTrackBitsPerSampleAptxHd(const uint8_t* p_codec_info);
104 int A2DP_VendorGetBitRateAptxHd(const uint8_t* p_codec_info);
110 int A2DP_VendorGetTrackChannelCountAptxHd(const uint8_t* p_codec_info);
117 bool A2DP_VendorGetPacketTimestampAptxHd(const uint8_t* p_codec_info,
126 bool A2DP_VendorBuildCodecHeaderAptxHd(const uint8_t* p_codec_info,
[all …]
Da2dp_vendor_aptx.h55 bool A2DP_IsVendorSourceCodecValidAptx(const uint8_t* p_codec_info);
62 bool A2DP_IsVendorPeerSinkCodecValidAptx(const uint8_t* p_codec_info);
70 const uint8_t* p_codec_info);
73 const char* A2DP_VendorCodecNameAptx(const uint8_t* p_codec_info);
92 int A2DP_VendorGetTrackSampleRateAptx(const uint8_t* p_codec_info);
98 int A2DP_VendorGetTrackBitsPerSampleAptx(const uint8_t* p_codec_info);
104 int A2DP_VendorGetBitRateAptx(const uint8_t* p_codec_info);
110 int A2DP_VendorGetTrackChannelCountAptx(const uint8_t* p_codec_info);
117 bool A2DP_VendorGetPacketTimestampAptx(const uint8_t* p_codec_info,
126 bool A2DP_VendorBuildCodecHeaderAptx(const uint8_t* p_codec_info, BT_HDR* p_buf,
[all …]
Da2dp_codec_api.h83 bool copyOutOtaCodecConfig(uint8_t* p_codec_info);
297 A2dpCodecConfig* findSourceCodecConfig(const uint8_t* p_codec_info);
302 A2dpCodecConfig* findSinkCodecConfig(const uint8_t* p_codec_info);
566 tA2DP_CODEC_TYPE A2DP_GetCodecType(const uint8_t* p_codec_info);
572 bool A2DP_IsSourceCodecValid(const uint8_t* p_codec_info);
578 bool A2DP_IsSinkCodecValid(const uint8_t* p_codec_info);
585 bool A2DP_IsPeerSourceCodecValid(const uint8_t* p_codec_info);
591 bool A2DP_IsPeerSinkCodecValid(const uint8_t* p_codec_info);
596 bool A2DP_IsSinkCodecSupported(const uint8_t* p_codec_info);
603 bool A2DP_IsPeerSourceCodecSupported(const uint8_t* p_codec_info);
[all …]
/system/bt/stack/test/a2dp/
Dmisc_fake.cc24 int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info) { return 0; } in A2DP_VendorGetTrackSampleRateLdac() argument
25 int A2DP_VendorGetTrackBitsPerSampleLdac(const uint8_t* p_codec_info) { in A2DP_VendorGetTrackBitsPerSampleLdac() argument
28 int A2DP_VendorGetChannelModeCodeLdac(const uint8_t* p_codec_info) { return 0; } in A2DP_VendorGetChannelModeCodeLdac() argument
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc195 CodecConfiguration* p_codec_info) { in btif_a2dp_get_codec_configuration() argument
205 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
208 p_codec_info->codecSpecific.sbcData.codecParameters = in btif_a2dp_get_codec_configuration()
212 p_codec_info->codecSpecific.sbcData.minBitpool = in btif_a2dp_get_codec_configuration()
214 p_codec_info->codecSpecific.sbcData.maxBitpool = in btif_a2dp_get_codec_configuration()
218 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
223 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
228 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
233 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
236 p_codec_info->codecSpecific.ldacData.bitrateIndex = in btif_a2dp_get_codec_configuration()
[all …]
Dbtif_a2dp_sink.cc376 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info) { in btif_a2dp_sink_update_decoder() argument
383 p_codec_info[1], p_codec_info[2], p_codec_info[3], in btif_a2dp_sink_update_decoder()
384 p_codec_info[4], p_codec_info[5], p_codec_info[6]); in btif_a2dp_sink_update_decoder()
386 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder()
/system/bt/btif/co/
Dbta_av_co.cc251 uint8_t* p_codec_info,
279 uint8_t* p_codec_info,
300 const uint8_t* p_codec_info, uint8_t seid,
332 const uint8_t* p_codec_info, bool* p_no_rtp_header);
349 BT_HDR* GetNextSourceDataPacket(const uint8_t* p_codec_info,
905 uint8_t* p_codec_info, uint8_t* p_sep_info_idx, uint8_t seid, in ProcessSourceGetConfig() argument
909 A2DP_CodecName(p_codec_info), seid); in ProcessSourceGetConfig()
914 A2DP_CodecInfoString(p_codec_info).c_str()); in ProcessSourceGetConfig()
931 if (A2DP_IsPeerSinkCodecValid(p_codec_info)) { in ProcessSourceGetConfig()
937 p_codec_info[1], p_codec_info[2], p_codec_info[3], in ProcessSourceGetConfig()
[all …]
/system/bt/bta/include/
Dbta_av_co.h81 uint8_t* p_codec_info,
100 const uint8_t* p_codec_info, uint8_t seid,
151 const uint8_t* p_codec_info, bool* p_no_rtp_header);
178 BT_HDR* bta_av_co_audio_source_data_path(const uint8_t* p_codec_info,
/system/bt/btif/include/
Dbtif_a2dp_sink.h96 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info);

12