Home
last modified time | relevance | path

Searched refs:o_buf (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Bluetooth/system/stack/mmc/codec_server/
Dhfp_lc3_mmc_decoder.cc68 int HfpLc3Decoder::transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, in transcode() argument
70 if (o_buf == nullptr || o_len < HFP_LC3_PCM_BYTES + 1) { in transcode()
80 uint8_t* out_frame = o_buf + 1; in transcode()
88 std::fill(o_buf, o_buf + o_len, 0); in transcode()
90 o_buf[0] = rc; in transcode()
Dhfp_lc3_mmc_encoder.cc70 int HfpLc3Encoder::transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, in transcode() argument
72 if (i_buf == nullptr || o_buf == nullptr) { in transcode()
79 param_.stride(), HFP_LC3_PKT_FRAME_LEN, o_buf); in transcode()
83 std::fill(o_buf, o_buf + o_len, 0); in transcode()
Da2dp_aac_mmc_encoder.cc116 int A2dpAacEncoder::transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, in transcode() argument
206 uint8_t* dst = o_buf; in transcode()
Da2dp_aac_mmc_encoder.h55 int transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, int o_len) override;
Dhfp_lc3_mmc_decoder.h53 int transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, int o_len) override;
Dhfp_lc3_mmc_encoder.h53 int transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, int o_len) override;
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_hfp_msbc_decoder.h55 std::function<bool(const uint8_t* i_buf, int16_t* o_buf, size_t out_len)>
58 bool operator()(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in operator()
59 return body(i_buf, o_buf, out_len); in operator()
Dmock_stack_btm_hfp_lc3_decoder.cc65 bool hfp_lc3_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf, in hfp_lc3_decoder_decode_packet() argument
69 i_buf, o_buf, out_len); in hfp_lc3_decoder_decode_packet()
Dmock_stack_btm_hfp_msbc_decoder.cc63 bool hfp_msbc_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf, in hfp_msbc_decoder_decode_packet() argument
67 i_buf, o_buf, out_len); in hfp_msbc_decoder_decode_packet()
Dmock_stack_btm_hfp_lc3_decoder.h58 bool operator()(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in operator()
59 return body(i_buf, o_buf, out_len); in operator()
/packages/modules/Bluetooth/system/stack/btm/
Dhfp_lc3_decoder.cc62 bool hfp_lc3_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf, in hfp_lc3_decoder_decode_packet() argument
64 if (o_buf == nullptr || out_len < HFP_LC3_PCM_BYTES) { in hfp_lc3_decoder_decode_packet()
74 LC3_PCM_FORMAT_S16, o_buf, 1); in hfp_lc3_decoder_decode_packet()
Dhfp_lc3_decoder_linux.cc73 bool hfp_lc3_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf, in hfp_lc3_decoder_decode_packet() argument
75 if (o_buf == nullptr || out_len < HFP_LC3_PCM_BYTES) { in hfp_lc3_decoder_decode_packet()
103 std::copy(o_packet + 1, o_packet + 1 + out_len, (uint8_t*)o_buf); in hfp_lc3_decoder_decode_packet()
Dhfp_msbc_decoder.cc70 bool hfp_msbc_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf, in hfp_msbc_decoder_decode_packet() argument
87 &hfp_msbc_decoder.decoder_context, &oi_data, &oi_size, o_buf, &out_avail); in hfp_msbc_decoder_decode_packet()
/packages/modules/Bluetooth/system/stack/mmc/codec_client/
Dcodec_client.cc196 int CodecClient::transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, in transcode() argument
202 if (i_buf == nullptr || o_buf == nullptr) { in transcode()
241 rc = recv(skt_fd_, o_buf, o_len, MSG_NOSIGNAL); in transcode()
Dcodec_client.h61 int transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf, int o_len) override;
/packages/modules/Bluetooth/system/stack/mmc/daemon/
Dservice.cc68 std::array<uint8_t, kMaximumBufferSize> o_buf = {}; in StartSocketListener() local
97 o_buf.data(), kMaximumBufferSize); in StartSocketListener()
103 int sent_rc = send(client_fd, o_buf.data(), o_data_len, MSG_NOSIGNAL); in StartSocketListener()
108 o_buf.fill(0); in StartSocketListener()
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_aac_encoder_linux.cc81 int encode_pcm(uint8_t* i_buf, int i_len, uint8_t* o_buf, int o_len) { in encode_pcm() argument
82 if (i_buf == nullptr || o_buf == nullptr) { in encode_pcm()
92 int rc = client->transcode(i_buf, i_len, o_buf, o_len); in encode_pcm()
/packages/modules/Bluetooth/system/stack/include/
Dhfp_msbc_decoder.h35 bool hfp_msbc_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf,
Dhfp_lc3_decoder.h36 bool hfp_lc3_decoder_decode_packet(const uint8_t* i_buf, int16_t* o_buf,
/packages/modules/Bluetooth/system/stack/mmc/mmc_interface/
Dmmc_interface.h46 virtual int transcode(uint8_t* i_buf, int i_len, uint8_t* o_buf,
/packages/modules/Bluetooth/system/btif/include/
Dmock_core_callbacks.h93 (const uint8_t* i_buf, int16_t* o_buf, size_t out_len), ());
Dcore_callbacks.h93 virtual bool decodePacket(const uint8_t* i_buf, int16_t* o_buf,
/packages/modules/Bluetooth/system/stack/test/btm/
Dsco_hci_test.cc90 bool decodePacket(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in decodePacket()
91 return hfp_msbc_decoder_decode_packet(i_buf, o_buf, out_len); in decodePacket()
112 bool decodePacket(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in decodePacket()
113 return hfp_lc3_decoder_decode_packet(i_buf, o_buf, out_len); in decodePacket()
/packages/modules/Bluetooth/system/btif/src/
Dbluetooth.cc229 bool decodePacket(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in decodePacket()
230 return hfp_msbc_decoder_decode_packet(i_buf, o_buf, out_len); in decodePacket()
251 bool decodePacket(const uint8_t* i_buf, int16_t* o_buf, size_t out_len) { in decodePacket()
252 return hfp_lc3_decoder_decode_packet(i_buf, o_buf, out_len); in decodePacket()