/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
D | arith_routines_hist.c | 18 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++ = (WebRtc_UWord8) (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 …]
|
D | entropy_coding.h | 49 int WebRtcIsac_DecodeSpec(Bitstr* streamdata, WebRtc_Word16 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, ISAC_SaveEncData_t* encData); 93 Bitstr* streamdata, 129 WebRtc_Word16 WebRtcIsac_EncodeLpcUB(double* lpcCoeff, Bitstr* streamdata, 162 WebRtc_Word16 WebRtcIsac_DecodeInterpolLpcUb(Bitstr* streamdata, 167 int WebRtcIsac_DecodeRc(Bitstr* streamdata, WebRtc_Word16* RCQ15); [all …]
|
D | arith_routines.c | 19 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++ = (WebRtc_UWord8) (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 …]
|
D | arith_routines_logist.c | 81 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++ = (WebRtc_UWord8) (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 …]
|
D | arith_routines.h | 25 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 */
|
D | entropy_coding.c | 273 int WebRtcIsac_DecodeSpec(Bitstr* streamdata, WebRtc_Word16 AvgPitchGain_Q12, in WebRtcIsac_DecodeSpec() argument 290 GenerateDitherQ7Lb(DitherQ7, streamdata->W_upper, FRAMESAMPLES, in WebRtcIsac_DecodeSpec() 293 GenerateDitherQ7LbUB(DitherQ7, streamdata->W_upper, FRAMESAMPLES); in WebRtcIsac_DecodeSpec() 301 if (WebRtcIsac_DecodeRc(streamdata, RCQ15) < 0) in WebRtcIsac_DecodeSpec() 306 if (WebRtcIsac_DecodeGain2(streamdata, &gain2_Q10) < 0) in WebRtcIsac_DecodeSpec() 332 len = WebRtcIsac_DecLogisticMulti2(data, streamdata, invARSpecQ8, DitherQ7, in WebRtcIsac_DecodeSpec() 396 Bitstr* streamdata) { in WebRtcIsac_EncodeSpec() argument 421 GenerateDitherQ7Lb(ditherQ7, streamdata->W_upper, FRAMESAMPLES, in WebRtcIsac_EncodeSpec() 424 GenerateDitherQ7LbUB(ditherQ7, streamdata->W_upper, FRAMESAMPLES); in WebRtcIsac_EncodeSpec() 527 WebRtcIsac_EncodeRc(RCQ15, streamdata); in WebRtcIsac_EncodeSpec() [all …]
|
D | decode_bwe.c | 20 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()
|
D | isac.c | 967 Bitstr streamdata; in WebRtcIsac_UpdateBwEstimate() local 985 WebRtcIsac_ResetBitstream(&(streamdata)); in WebRtcIsac_UpdateBwEstimate() 989 streamdata.stream[k] = (WebRtc_UWord8)((encoded[k >> 1] >> in WebRtcIsac_UpdateBwEstimate() 993 memcpy(streamdata.stream, encoded, 10); in WebRtcIsac_UpdateBwEstimate() 996 err = WebRtcIsac_EstimateBandwidth(&instISAC->bwestimator_obj, &streamdata, in WebRtcIsac_UpdateBwEstimate() 1698 Bitstr streamdata; in WebRtcIsac_ReadBwIndex() local 1704 WebRtcIsac_ResetBitstream(&(streamdata)); in WebRtcIsac_ReadBwIndex() 1708 streamdata.stream[k] = (WebRtc_UWord8)((encoded[k >> 1] >> in WebRtcIsac_ReadBwIndex() 1712 memcpy(streamdata.stream, encoded, 10); in WebRtcIsac_ReadBwIndex() 1716 err = WebRtcIsac_DecodeFrameLen(&streamdata, bweIndex); in WebRtcIsac_ReadBwIndex() [all …]
|
D | codec.h | 27 int WebRtcIsac_EstimateBandwidth(BwEstimatorstr* bwest_str, Bitstr* streamdata,
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
D | entropy_coding.h | 25 WebRtc_Word16 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 …]
|
D | isacfix.c | 571 Bitstr_dec streamdata; in WebRtcIsacfix_UpdateBwEstimate1() local 579 streamdata.stream = (WebRtc_UWord16 *)partOfStream; in WebRtcIsacfix_UpdateBwEstimate1() 601 streamdata.W_upper = 0xFFFFFFFF; in WebRtcIsacfix_UpdateBwEstimate1() 602 streamdata.streamval = 0; in WebRtcIsacfix_UpdateBwEstimate1() 603 streamdata.stream_index = 0; in WebRtcIsacfix_UpdateBwEstimate1() 604 streamdata.full = 1; in WebRtcIsacfix_UpdateBwEstimate1() 608 …streamdata.stream[k] = (WebRtc_UWord16) (((WebRtc_UWord16)encoded[k] >> 8)|((encoded[k] & 0xFF)<<8… in WebRtcIsacfix_UpdateBwEstimate1() 611 memcpy(streamdata.stream, encoded, 5); in WebRtcIsacfix_UpdateBwEstimate1() 622 &streamdata, in WebRtcIsacfix_UpdateBwEstimate1() 666 Bitstr_dec streamdata; in WebRtcIsacfix_UpdateBwEstimate() local [all …]
|
D | entropy_coding.c | 426 WebRtc_Word16 WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata, in WebRtcIsacfix_DecodeSpec() argument 441 …GenerateDitherQ7(data, streamdata->W_upper, FRAMESAMPLES, AvgPitchGain_Q12); /* Dither is output i… in WebRtcIsacfix_DecodeSpec() 444 if (WebRtcIsacfix_DecodeRcCoef(streamdata, RCQ15) < 0) in WebRtcIsacfix_DecodeSpec() 450 if (WebRtcIsacfix_DecodeGain2(streamdata, &gain2_Q10) < 0) in WebRtcIsacfix_DecodeSpec() 458 …len = WebRtcIsacfix_DecLogisticMulti2(data, streamdata, invARSpec2_Q16, (WebRtc_Word16)FRAMESAMPLE… in WebRtcIsacfix_DecodeSpec() 495 Bitstr_enc *streamdata, in WebRtcIsacfix_EncodeSpec() argument 515 GenerateDitherQ7(dataQ7, streamdata->W_upper, FRAMESAMPLES, AvgPitchGain_Q12); in WebRtcIsacfix_EncodeSpec() 560 status = WebRtcIsacfix_EncodeRcCoef(RCQ15, streamdata); in WebRtcIsacfix_EncodeSpec() 588 if (WebRtcIsacfix_EncodeGain2(&gain2_Q10, streamdata)) in WebRtcIsacfix_EncodeSpec() 596 …status = WebRtcIsacfix_EncLogisticMulti2(streamdata, dataQ7, invARSpecQ8, (WebRtc_Word16)FRAMESAMP… in WebRtcIsacfix_EncodeSpec() [all …]
|
D | decode_bwe.c | 28 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()
|
D | codec.h | 26 Bitstr_dec *streamdata,
|
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/ |
D | test_iSACfixfloat.c | 117 WebRtc_UWord16 streamdata[600]; in main() local 442 stream_len = WebRtcIsac_Encode(ISAC_main_inst, shortdata, streamdata); in main() 452 stream_len = WebRtcIsacfix_Encode(ISACFIX_main_inst, shortdata, streamdata); in main() 454 stream_len = WebRtcIsacfix_EncodeNb(ISACFIX_main_inst, shortdata, streamdata); in main() 485 fwrite(streamdata, 1, stream_len, bitsp); /* NOTE! Writes bytes to file */ in main() 494 streamdata, in main() 507 streamdata, in main() 520 streamdata, in main() 525 streamdata, in main() 537 streamdata, in main() [all …]
|
D | kenny.c | 113 WebRtc_UWord16 streamdata[500]; in main() local 577 (WebRtc_Word16*)streamdata); in main() 583 err = WebRtcIsacfix_ReadBwIndex((WebRtc_Word16*)streamdata, &bwe); in main() 588 (WebRtc_Word16*)streamdata); in main() 615 streamdata); in main() 631 if (fwrite(streamdata, sizeof(char), in main() 674 streamdata[i] = rand(); in main() 704 streamdata[i] = (short) (streamdata[i] + (short) rand()); in main() 710 streamdata, in main() 755 err = WebRtcIsacfix_ReadFrameLen((WebRtc_Word16*)streamdata, &FL); in main() [all …]
|