Home
last modified time | relevance | path

Searched refs:p_codec_info (Results 1 – 25 of 27) 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(UNUSED_ATTR const uint8_t* p_codec_info) { in A2DP_IsVendorSinkCodecValid() argument
68 UNUSED_ATTR const uint8_t* p_codec_info) { in A2DP_IsVendorPeerSourceCodecValid() argument
78 bool A2DP_IsVendorPeerSinkCodecValid(const uint8_t* p_codec_info) { in A2DP_IsVendorPeerSinkCodecValid() argument
79 uint32_t vendor_id = A2DP_VendorCodecGetVendorId(p_codec_info); in A2DP_IsVendorPeerSinkCodecValid()
[all …]
Da2dp_codec_config.cc149 uint8_t p_codec_info[AVDT_CODEC_SIZE]; in getTrackBitRate() local
150 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in getTrackBitRate()
151 tA2DP_CODEC_TYPE codec_type = A2DP_GetCodecType(p_codec_info); in getTrackBitRate()
159 return A2DP_GetBitRateAac(p_codec_info); in getTrackBitRate()
161 return A2DP_VendorGetBitRate(p_codec_info); in getTrackBitRate()
240 bool A2dpCodecConfig::copyOutOtaCodecConfig(uint8_t* p_codec_info) { in copyOutOtaCodecConfig() argument
248 memcpy(p_codec_info, ota_codec_config_, sizeof(ota_codec_config_)); in copyOutOtaCodecConfig()
649 const uint8_t* p_codec_info) { in findSourceCodecConfig() argument
651 btav_a2dp_codec_index_t codec_index = A2DP_SourceCodecIndex(p_codec_info); in findSourceCodecConfig()
659 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.cc82 const tA2DP_LDAC_CIE* p_cap, const uint8_t* p_codec_info,
128 const uint8_t* p_codec_info, in A2DP_ParseInfoLdac() argument
134 if (p_ie == NULL || p_codec_info == NULL) return A2DP_INVALID_PARAMS; in A2DP_ParseInfoLdac()
137 losc = *p_codec_info++; in A2DP_ParseInfoLdac()
140 media_type = (*p_codec_info++) >> 4; in A2DP_ParseInfoLdac()
141 codec_type = *p_codec_info++; in A2DP_ParseInfoLdac()
149 p_ie->vendorId = (*p_codec_info & 0x000000FF) | in A2DP_ParseInfoLdac()
150 (*(p_codec_info + 1) << 8 & 0x0000FF00) | in A2DP_ParseInfoLdac()
151 (*(p_codec_info + 2) << 16 & 0x00FF0000) | in A2DP_ParseInfoLdac()
152 (*(p_codec_info + 3) << 24 & 0xFF000000); in A2DP_ParseInfoLdac()
[all …]
Da2dp_aac_encoder.cc214 const uint8_t* p_codec_info = codec_info; in a2dp_aac_encoder_update() local
218 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
221 p_feeding_params->channel_count = A2DP_GetTrackChannelCountAac(p_codec_info); in a2dp_aac_encoder_update()
230 p_encoder_params->channel_mode = A2DP_GetChannelModeCodeAac(p_codec_info); in a2dp_aac_encoder_update()
266 int object_type = A2DP_GetObjectTypeCodeAac(p_codec_info); in a2dp_aac_encoder_update()
322 aac_param_value = A2DP_GetTrackSampleRateAac(p_codec_info); in a2dp_aac_encoder_update()
335 aac_param_value = A2DP_GetBitRateAac(p_codec_info); in a2dp_aac_encoder_update()
338 A2DP_ComputeMaxBitRateAac(p_codec_info, a2dp_aac_encoder_cb.TxAaMtuSize); in a2dp_aac_encoder_update()
372 if (A2DP_GetTrackChannelCountAac(p_codec_info) == 1) { in a2dp_aac_encoder_update()
412 aac_param_value = A2DP_GetVariableBitRateSupportAac(p_codec_info); in a2dp_aac_encoder_update()
Da2dp_sbc_encoder.cc212 const uint8_t* p_codec_info = codec_info; in a2dp_sbc_encoder_update() local
213 min_bitpool = A2DP_GetMinBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update()
214 max_bitpool = A2DP_GetMaxBitpoolSbc(p_codec_info); in a2dp_sbc_encoder_update()
218 p_feeding_params->sample_rate = A2DP_GetTrackSampleRateSbc(p_codec_info); in a2dp_sbc_encoder_update()
221 p_feeding_params->channel_count = A2DP_GetTrackChannelCountSbc(p_codec_info); in a2dp_sbc_encoder_update()
228 p_encoder_params->s16ChannelMode = A2DP_GetChannelModeCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
230 A2DP_GetNumberOfSubbandsSbc(p_codec_info); in a2dp_sbc_encoder_update()
231 p_encoder_params->s16NumOfBlocks = A2DP_GetNumberOfBlocksSbc(p_codec_info); in a2dp_sbc_encoder_update()
233 A2DP_GetAllocationMethodCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
235 A2DP_GetSamplingFrequencyCodeSbc(p_codec_info); in a2dp_sbc_encoder_update()
[all …]
Da2dp_vendor_aptx_encoder.cc253 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_encoder_update() local
258 A2DP_VendorGetTrackSampleRateAptx(p_codec_info); in a2dp_vendor_aptx_encoder_update()
262 A2DP_VendorGetTrackChannelCountAptx(p_codec_info); in a2dp_vendor_aptx_encoder_update()
Da2dp_vendor_aptx_hd_encoder.cc253 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_aptx_hd_encoder_update() local
259 A2DP_VendorGetTrackSampleRateAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update()
263 A2DP_VendorGetTrackChannelCountAptxHd(p_codec_info); in a2dp_vendor_aptx_hd_encoder_update()
Da2dp_vendor_ldac_encoder.cc371 const uint8_t* p_codec_info = codec_info; in a2dp_vendor_ldac_encoder_update() local
377 A2DP_VendorGetTrackSampleRateLdac(p_codec_info); in a2dp_vendor_ldac_encoder_update()
381 A2DP_VendorGetTrackChannelCountLdac(p_codec_info); in a2dp_vendor_ldac_encoder_update()
391 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_GetTrackChannelCountSbc(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_GetTrackChannelCountAac(const uint8_t* p_codec_info);
[all …]
Da2dp_vendor_ldac.h55 bool A2DP_IsVendorSourceCodecValidLdac(const uint8_t* p_codec_info);
62 bool A2DP_IsVendorPeerSinkCodecValidLdac(const uint8_t* p_codec_info);
70 const uint8_t* p_codec_info);
73 const char* A2DP_VendorCodecNameLdac(const uint8_t* p_codec_info);
92 int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info);
98 int A2DP_VendorGetBitRateLdac(const uint8_t* p_codec_info);
104 int A2DP_VendorGetTrackChannelCountLdac(const uint8_t* p_codec_info);
111 int A2DP_VendorGetChannelModeCodeLdac(const uint8_t* p_codec_info);
118 bool A2DP_VendorGetPacketTimestampLdac(const uint8_t* p_codec_info,
127 bool A2DP_VendorBuildCodecHeaderLdac(const uint8_t* p_codec_info, BT_HDR* p_buf,
[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_VendorGetBitRateAptxHd(const uint8_t* p_codec_info);
104 int A2DP_VendorGetTrackChannelCountAptxHd(const uint8_t* p_codec_info);
111 bool A2DP_VendorGetPacketTimestampAptxHd(const uint8_t* p_codec_info,
120 bool A2DP_VendorBuildCodecHeaderAptxHd(const uint8_t* p_codec_info,
127 std::string A2DP_VendorCodecInfoStringAptxHd(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_VendorGetBitRateAptx(const uint8_t* p_codec_info);
104 int A2DP_VendorGetTrackChannelCountAptx(const uint8_t* p_codec_info);
111 bool A2DP_VendorGetPacketTimestampAptx(const uint8_t* p_codec_info,
120 bool A2DP_VendorBuildCodecHeaderAptx(const uint8_t* p_codec_info, BT_HDR* p_buf,
126 std::string A2DP_VendorCodecInfoStringAptx(const uint8_t* p_codec_info);
[all …]
Da2dp_codec_api.h84 bool copyOutOtaCodecConfig(uint8_t* p_codec_info);
298 A2dpCodecConfig* findSourceCodecConfig(const uint8_t* p_codec_info);
303 A2dpCodecConfig* findSinkCodecConfig(const uint8_t* p_codec_info);
563 tA2DP_CODEC_TYPE A2DP_GetCodecType(const uint8_t* p_codec_info);
569 bool A2DP_IsSourceCodecValid(const uint8_t* p_codec_info);
575 bool A2DP_IsSinkCodecValid(const uint8_t* p_codec_info);
582 bool A2DP_IsPeerSourceCodecValid(const uint8_t* p_codec_info);
588 bool A2DP_IsPeerSinkCodecValid(const uint8_t* p_codec_info);
593 bool A2DP_IsSinkCodecSupported(const uint8_t* p_codec_info);
600 bool A2DP_IsPeerSourceCodecSupported(const uint8_t* p_codec_info);
[all …]
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc114 CodecConfiguration* p_codec_info) { in btif_a2dp_get_codec_configuration() argument
123 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
126 p_codec_info->codecSpecific.sbcData.codecParameters = in btif_a2dp_get_codec_configuration()
130 p_codec_info->codecSpecific.sbcData.minBitpool = in btif_a2dp_get_codec_configuration()
132 p_codec_info->codecSpecific.sbcData.maxBitpool = in btif_a2dp_get_codec_configuration()
136 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
141 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
146 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
151 p_codec_info->codecType = in btif_a2dp_get_codec_configuration()
154 p_codec_info->codecSpecific.ldacData.bitrateIndex = in btif_a2dp_get_codec_configuration()
[all …]
Dbtif_a2dp_sink.cc342 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info) { in btif_a2dp_sink_update_decoder() argument
349 p_codec_info[1], p_codec_info[2], p_codec_info[3], in btif_a2dp_sink_update_decoder()
350 p_codec_info[4], p_codec_info[5], p_codec_info[6]); in btif_a2dp_sink_update_decoder()
352 memcpy(p_buf->codec_info, p_codec_info, AVDT_CODEC_SIZE); in btif_a2dp_sink_update_decoder()
/system/bt/btif/co/
Dbta_av_co.cc243 uint8_t* p_codec_info,
271 uint8_t* p_codec_info,
292 const uint8_t* p_codec_info, uint8_t seid,
324 const uint8_t* p_codec_info, bool* p_no_rtp_header);
341 BT_HDR* GetNextSourceDataPacket(const uint8_t* p_codec_info,
889 uint8_t* p_codec_info, uint8_t* p_sep_info_idx, uint8_t seid, in ProcessSourceGetConfig() argument
893 A2DP_CodecName(p_codec_info), seid); in ProcessSourceGetConfig()
898 A2DP_CodecInfoString(p_codec_info).c_str()); in ProcessSourceGetConfig()
915 if (A2DP_IsPeerSinkCodecValid(p_codec_info)) { in ProcessSourceGetConfig()
921 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.h90 void btif_a2dp_sink_update_decoder(const uint8_t* p_codec_info);
/system/bt/bta/av/
Dbta_av_int.h166 uint8_t* p_codec_info,
172 const uint8_t* p_codec_info, uint8_t seid,
182 const uint8_t* p_codec_info,
186 typedef BT_HDR* (*tBTA_AV_CO_DATAPATH)(const uint8_t* p_codec_info,

12