Home
last modified time | relevance | path

Searched refs:streamdata (Results 1 – 19 of 19) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Darith_routines_hist.c18 void WebRtcIsac_EncHistMulti(Bitstr *streamdata, /* in-/output struct containing bitstream */ in WebRtcIsac_EncHistMulti() argument
32 stream_ptr = streamdata->stream + streamdata->stream_index; in WebRtcIsac_EncHistMulti()
33 W_upper = streamdata->W_upper; in WebRtcIsac_EncHistMulti()
53 streamdata->streamval += W_lower; in WebRtcIsac_EncHistMulti()
56 if (streamdata->streamval < W_lower) in WebRtcIsac_EncHistMulti()
67 *stream_ptr++ = (uint8_t) (streamdata->streamval >> 24); in WebRtcIsac_EncHistMulti()
68 streamdata->streamval <<= 8; in WebRtcIsac_EncHistMulti()
73 streamdata->stream_index = (int)(stream_ptr - streamdata->stream); in WebRtcIsac_EncHistMulti()
74 streamdata->W_upper = W_upper; in WebRtcIsac_EncHistMulti()
86 Bitstr *streamdata, /* in-/output struct containing bitstream */ in WebRtcIsac_DecHistBisectMulti() argument
[all …]
Dentropy_coding.h49 int WebRtcIsac_DecodeSpec(Bitstr* streamdata, int16_t AvgPitchGain_Q12,
77 Bitstr* streamdata);
80 int WebRtcIsac_DecodeLpcCoef(Bitstr* streamdata, double* LPCCoef);
81 int WebRtcIsac_DecodeLpcCoefUB(Bitstr* streamdata, double* lpcVecs,
85 int WebRtcIsac_DecodeLpc(Bitstr* streamdata, double* LPCCoef_lo,
90 Bitstr* streamdata, IsacSaveEncoderData* encData);
93 Bitstr* streamdata,
129 int16_t WebRtcIsac_EncodeLpcUB(double* lpcCoeff, Bitstr* streamdata,
162 int16_t WebRtcIsac_DecodeInterpolLpcUb(Bitstr* streamdata,
167 int WebRtcIsac_DecodeRc(Bitstr* streamdata, int16_t* RCQ15);
[all …]
Darith_routines.c19 int WebRtcIsac_EncTerminate(Bitstr *streamdata) /* in-/output struct containing bitstream */ in WebRtcIsac_EncTerminate() argument
25 stream_ptr = streamdata->stream + streamdata->stream_index; in WebRtcIsac_EncTerminate()
28 if ( streamdata->W_upper > 0x01FFFFFF ) in WebRtcIsac_EncTerminate()
30 streamdata->streamval += 0x01000000; in WebRtcIsac_EncTerminate()
32 if (streamdata->streamval < 0x01000000) in WebRtcIsac_EncTerminate()
37 stream_ptr = streamdata->stream + streamdata->stream_index; in WebRtcIsac_EncTerminate()
40 *stream_ptr++ = (uint8_t) (streamdata->streamval >> 24); in WebRtcIsac_EncTerminate()
44 streamdata->streamval += 0x00010000; in WebRtcIsac_EncTerminate()
46 if (streamdata->streamval < 0x00010000) in WebRtcIsac_EncTerminate()
51 stream_ptr = streamdata->stream + streamdata->stream_index; in WebRtcIsac_EncTerminate()
[all …]
Darith_routines_logist.c81 Bitstr *streamdata, /* in-/output struct containing bitstream */ in WebRtcIsac_EncLogisticMulti2() argument
96 stream_ptr = streamdata->stream + streamdata->stream_index; in WebRtcIsac_EncLogisticMulti2()
97 W_upper = streamdata->W_upper; in WebRtcIsac_EncLogisticMulti2()
99 maxStreamPtr = streamdata->stream + STREAM_SIZE_MAX_60 - 1; in WebRtcIsac_EncLogisticMulti2()
138 streamdata->streamval += W_lower; in WebRtcIsac_EncLogisticMulti2()
141 if (streamdata->streamval < W_lower) in WebRtcIsac_EncLogisticMulti2()
152 *stream_ptr++ = (uint8_t) (streamdata->streamval >> 24); in WebRtcIsac_EncLogisticMulti2()
158 streamdata->streamval <<= 8; in WebRtcIsac_EncLogisticMulti2()
163 streamdata->stream_index = (int)(stream_ptr - streamdata->stream); in WebRtcIsac_EncLogisticMulti2()
164 streamdata->W_upper = W_upper; in WebRtcIsac_EncLogisticMulti2()
[all …]
Darith_routines.h25 Bitstr *streamdata, /* in-/output struct containing bitstream */
32 int WebRtcIsac_EncTerminate(Bitstr *streamdata); /* in-/output struct containing bitstream */
37 Bitstr *streamdata, /* in-/output struct containing bitstream */
44 Bitstr *streamdata, /* in-/output struct containing bitstream */
51 Bitstr *streamdata, /* in-/output struct containing bitstream */
58 Bitstr *streamdata, /* in-/output struct containing bitstream */
Dentropy_coding.c268 int WebRtcIsac_DecodeSpec(Bitstr* streamdata, int16_t AvgPitchGain_Q12, in WebRtcIsac_DecodeSpec() argument
285 GenerateDitherQ7Lb(DitherQ7, streamdata->W_upper, FRAMESAMPLES, in WebRtcIsac_DecodeSpec()
288 GenerateDitherQ7LbUB(DitherQ7, streamdata->W_upper, FRAMESAMPLES); in WebRtcIsac_DecodeSpec()
296 if (WebRtcIsac_DecodeRc(streamdata, RCQ15) < 0) in WebRtcIsac_DecodeSpec()
301 if (WebRtcIsac_DecodeGain2(streamdata, &gain2_Q10) < 0) in WebRtcIsac_DecodeSpec()
327 len = WebRtcIsac_DecLogisticMulti2(data, streamdata, invARSpecQ8, DitherQ7, in WebRtcIsac_DecodeSpec()
391 Bitstr* streamdata) { in WebRtcIsac_EncodeSpec() argument
416 GenerateDitherQ7Lb(ditherQ7, streamdata->W_upper, FRAMESAMPLES, in WebRtcIsac_EncodeSpec()
419 GenerateDitherQ7LbUB(ditherQ7, streamdata->W_upper, FRAMESAMPLES); in WebRtcIsac_EncodeSpec()
522 WebRtcIsac_EncodeRc(RCQ15, streamdata); in WebRtcIsac_EncodeSpec()
[all …]
Ddecode_bwe.c20 Bitstr* streamdata, in WebRtcIsac_EstimateBandwidth() argument
37 err = WebRtcIsac_DecodeFrameLen(streamdata, &frame_samples); in WebRtcIsac_EstimateBandwidth()
42 err = WebRtcIsac_DecodeSendBW(streamdata, &index); in WebRtcIsac_EstimateBandwidth()
Disac.c970 Bitstr streamdata; in WebRtcIsac_UpdateBwEstimate() local
990 WebRtcIsac_ResetBitstream(&(streamdata)); in WebRtcIsac_UpdateBwEstimate()
995 streamdata.stream[k] = (uint8_t)((ek >> ((k & 1) << 3)) & 0xff); in WebRtcIsac_UpdateBwEstimate()
998 memcpy(streamdata.stream, encoded, 10); in WebRtcIsac_UpdateBwEstimate()
1001 err = WebRtcIsac_EstimateBandwidth(&instISAC->bwestimator_obj, &streamdata, in WebRtcIsac_UpdateBwEstimate()
1717 Bitstr streamdata; in WebRtcIsac_ReadBwIndex() local
1723 WebRtcIsac_ResetBitstream(&(streamdata)); in WebRtcIsac_ReadBwIndex()
1728 streamdata.stream[k] = (uint8_t)((ek2 >> ((k & 1) << 3)) & 0xff); in WebRtcIsac_ReadBwIndex()
1731 memcpy(streamdata.stream, encoded, 10); in WebRtcIsac_ReadBwIndex()
1735 err = WebRtcIsac_DecodeFrameLen(&streamdata, bweIndex); in WebRtcIsac_ReadBwIndex()
[all …]
Dcodec.h27 int WebRtcIsac_EstimateBandwidth(BwEstimatorstr* bwest_str, Bitstr* streamdata,
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
Dentropy_coding.h25 int WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata,
33 Bitstr_enc *streamdata,
38 int WebRtcIsacfix_DecodeLpcCoef(Bitstr_dec *streamdata,
46 Bitstr_dec *streamdata,
55 Bitstr_enc *streamdata,
60 Bitstr_enc *streamdata,
63 int WebRtcIsacfix_DecodeRcCoef(Bitstr_dec *streamdata,
68 Bitstr_enc *streamdata);
71 int WebRtcIsacfix_DecodeGain2(Bitstr_dec *streamdata,
76 Bitstr_enc *streamdata);
[all …]
Dentropy_coding.c453 int WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata, in WebRtcIsacfix_DecodeSpec() argument
468 …GenerateDitherQ7(data, streamdata->W_upper, FRAMESAMPLES, AvgPitchGain_Q12); /* Dither is output i… in WebRtcIsacfix_DecodeSpec()
471 if (WebRtcIsacfix_DecodeRcCoef(streamdata, RCQ15) < 0) in WebRtcIsacfix_DecodeSpec()
477 if (WebRtcIsacfix_DecodeGain2(streamdata, &gain2_Q10) < 0) in WebRtcIsacfix_DecodeSpec()
485 len = WebRtcIsacfix_DecLogisticMulti2(data, streamdata, invARSpec2_Q16, (int16_t)FRAMESAMPLES); in WebRtcIsacfix_DecodeSpec()
522 Bitstr_enc *streamdata, in WebRtcIsacfix_EncodeSpec() argument
542 GenerateDitherQ7(dataQ7, streamdata->W_upper, FRAMESAMPLES, AvgPitchGain_Q12); in WebRtcIsacfix_EncodeSpec()
587 status = WebRtcIsacfix_EncodeRcCoef(RCQ15, streamdata); in WebRtcIsacfix_EncodeSpec()
617 if (WebRtcIsacfix_EncodeGain2(&gain2_Q10, streamdata)) in WebRtcIsacfix_EncodeSpec()
625 status = WebRtcIsacfix_EncLogisticMulti2(streamdata, dataQ7, invARSpecQ8, (int16_t)FRAMESAMPLES); in WebRtcIsacfix_EncodeSpec()
[all …]
Disacfix.c623 Bitstr_dec streamdata; in WebRtcIsacfix_UpdateBwEstimate1() local
647 InitializeDecoderBitstream(packet_size, &streamdata); in WebRtcIsacfix_UpdateBwEstimate1()
649 read_be16(encoded, kRequiredEncodedLenBytes, streamdata.stream); in WebRtcIsacfix_UpdateBwEstimate1()
652 &streamdata, in WebRtcIsacfix_UpdateBwEstimate1()
696 Bitstr_dec streamdata; in WebRtcIsacfix_UpdateBwEstimate() local
723 InitializeDecoderBitstream(packet_size, &streamdata); in WebRtcIsacfix_UpdateBwEstimate()
725 read_be16(encoded, kRequiredEncodedLenBytes, streamdata.stream); in WebRtcIsacfix_UpdateBwEstimate()
728 &streamdata, in WebRtcIsacfix_UpdateBwEstimate()
1274 Bitstr_dec streamdata; in WebRtcIsacfix_ReadFrameLen() local
1282 InitializeDecoderBitstream(encoded_len_bytes, &streamdata); in WebRtcIsacfix_ReadFrameLen()
[all …]
Ddecode_bwe.c28 Bitstr_dec *streamdata, in WebRtcIsacfix_EstimateBandwidth() argument
39 err = WebRtcIsacfix_DecodeFrameLen(streamdata, &frame_samples); in WebRtcIsacfix_EstimateBandwidth()
46 err = WebRtcIsacfix_DecodeSendBandwidth(streamdata, &index); in WebRtcIsacfix_EstimateBandwidth()
Dcodec.h29 Bitstr_dec* streamdata,
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/test/
Dtest_iSACfixfloat.c107 uint16_t streamdata[600]; in main() local
408 WebRtcIsac_Encode(ISAC_main_inst, shortdata, (uint8_t*)streamdata); in main()
419 (uint8_t*)streamdata); in main()
422 WebRtcIsacfix_EncodeNb(ISACFIX_main_inst, shortdata, streamdata); in main()
456 fwrite(streamdata, 1, stream_len, bitsp); /* NOTE! Writes bytes to file */ in main()
463 err = WebRtcIsac_UpdateBwEstimate(ISAC_main_inst, streamdata, in main()
474 declen = WebRtcIsac_Decode(ISAC_main_inst, streamdata, stream_len, in main()
483 err = WebRtcIsac_UpdateBwEstimate(ISAC_main_inst, streamdata, in main()
486 err = WebRtcIsacfix_UpdateBwEstimate1(ISACFIX_main_inst, streamdata, in main()
496 declen = WebRtcIsac_Decode(ISAC_main_inst, streamdata, stream_len, in main()
[all …]
Dkenny.cc118 uint16_t streamdata[500]; in main() local
567 (uint8_t*)streamdata); in main()
574 reinterpret_cast<const uint8_t*>(streamdata), in main()
581 reinterpret_cast<uint8_t*>(streamdata)); in main()
608 streamdata); in main()
625 if (fwrite(streamdata, sizeof(char), stream_len, outbits) != in main()
668 streamdata[i] = rand(); in main()
698 streamdata[i] = (short) (streamdata[i] + (short) rand()); in main()
705 reinterpret_cast<const uint8_t*>(streamdata), in main()
748 reinterpret_cast<const uint8_t*>(streamdata), stream_len, &FL); in main()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/test/
DtestG711.cc53 uint8_t streamdata[1000]; in main() local
128 stream_len = WebRtcG711_EncodeA(shortdata, framelength, streamdata); in main()
131 if (fwrite(streamdata, sizeof(unsigned char), stream_len, bitp) != in main()
136 WebRtcG711_DecodeA(streamdata, stream_len, decoded, speechType); in main()
139 stream_len = WebRtcG711_EncodeU(shortdata, framelength, streamdata); in main()
142 if (fwrite(streamdata, sizeof(unsigned char), stream_len, bitp) != in main()
147 WebRtcG711_DecodeU(streamdata, stream_len, decoded, speechType); in main()
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/test/
DtestG722.cc60 uint8_t streamdata[80 * 6]; in main() local
126 … stream_len = WebRtcG722_Encode((G722EncInst *)G722enc_inst, shortdata, framelength, streamdata); in main()
127 WebRtcG722_Decode(G722dec_inst, streamdata, stream_len, decoded, in main()
134 if (fwrite(streamdata, sizeof(short), stream_len / 2, outbitp) != in main()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/
DReleaseTest-API.cc64 uint16_t streamdata[500]; in main() local
595 WebRtcIsac_Encode(ISAC_main_inst, shortdata, (uint8_t*)streamdata); in main()
704 ISAC_main_inst, reinterpret_cast<uint8_t*>(streamdata)); in main()
739 streamdata[i] = rand(); in main()
760 streamdata[i] = (short)(streamdata[i]) + (short)rand(); in main()
766 ISAC_main_inst, reinterpret_cast<const uint8_t*>(streamdata), in main()
787 ISAC_main_inst, reinterpret_cast<const uint8_t*>(streamdata), &FL); in main()
805 ISAC_main_inst, reinterpret_cast<const uint8_t*>(streamdata), in main()
815 reinterpret_cast<const uint8_t*>(streamdata), in main()