Searched refs:quantized_sample (Results 1 – 4 of 4) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | aptxenc.c | 102 int32_t quantized_sample, dithered_sample, parity_change; in aptx_quantize_difference() local 109 quantized_sample = aptx_bin_search(sample_difference_abs >> 4, in aptx_quantize_difference() 114 d = rshift64(MUL64(d, tables->quantize_dither_factors[quantized_sample]), 23); in aptx_quantize_difference() 116 intervals += quantized_sample; in aptx_quantize_difference() 124 parity_change = quantized_sample; in aptx_quantize_difference() 126 quantized_sample--; in aptx_quantize_difference() 131 quantize->quantized_sample = quantized_sample ^ inv; in aptx_quantize_difference() 164 min->quantized_sample = min->quantized_sample_parity_change; in aptx_insert_sync() 171 return (((channel->quantize[3].quantized_sample & 0x06) | parity) << 13) in aptx_pack_codeword() 172 | (((channel->quantize[2].quantized_sample & 0x03) ) << 11) in aptx_pack_codeword() [all …]
|
D | aptxdec.c | 91 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 7); in aptx_unpack_codeword() 92 channel->quantize[1].quantized_sample = sign_extend(codeword >> 7, 4); in aptx_unpack_codeword() 93 channel->quantize[2].quantized_sample = sign_extend(codeword >> 11, 2); in aptx_unpack_codeword() 94 channel->quantize[3].quantized_sample = sign_extend(codeword >> 13, 3); in aptx_unpack_codeword() 95 channel->quantize[3].quantized_sample = (channel->quantize[3].quantized_sample & ~1) in aptx_unpack_codeword() 101 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 9); in aptxhd_unpack_codeword() 102 channel->quantize[1].quantized_sample = sign_extend(codeword >> 9, 6); in aptxhd_unpack_codeword() 103 channel->quantize[2].quantized_sample = sign_extend(codeword >> 15, 4); in aptxhd_unpack_codeword() 104 channel->quantize[3].quantized_sample = sign_extend(codeword >> 19, 5); in aptxhd_unpack_codeword() 105 channel->quantize[3].quantized_sample = (channel->quantize[3].quantized_sample & ~1) in aptxhd_unpack_codeword()
|
D | aptx.c | 378 int32_t cw = ((channel->quantize[0].quantized_sample & 3) << 0) + in aptx_update_codeword_history() 379 ((channel->quantize[1].quantized_sample & 2) << 1) + in aptx_update_codeword_history() 380 ((channel->quantize[2].quantized_sample & 1) << 3); in aptx_update_codeword_history() 400 int32_t quantized_sample, int32_t dither, in aptx_invert_quantization() argument 405 idx = (quantized_sample ^ -(quantized_sample < 0)) + 1; in aptx_invert_quantization() 407 if (quantized_sample < 0) in aptx_invert_quantization() 465 int32_t quantized_sample, int32_t dither, in aptx_process_subband() argument 470 aptx_invert_quantization(invert_quantize, quantized_sample, dither, tables); in aptx_process_subband() 502 channel->quantize[subband].quantized_sample, in ff_aptx_invert_quantize_and_prediction()
|
D | aptx.h | 61 int32_t quantized_sample; member 197 parity ^= channel->quantize[subband].quantized_sample; in aptx_quantized_parity()
|