/third_party/ffmpeg/libavcodec/ |
H A D | aptxenc.c | 100 static void aptx_quantize_difference(Quantize *quantize, in aptx_quantize_difference() argument 127 quantize->error = FFABS(rshift64(error, 23)); in aptx_quantize_difference() 136 quantize->quantized_sample = quantized_sample ^ inv; in aptx_quantize_difference() 137 quantize->quantized_sample_parity_change = parity_change ^ inv; in aptx_quantize_difference() 148 aptx_quantize_difference(&channel->quantize[subband], diff, in aptx_encode_channel() 161 Quantize *min = &channels[NB_CHANNELS-1].quantize[map[0]]; in aptx_insert_sync() 164 if (c->quantize[map[i]].error < min->error) in aptx_insert_sync() 165 min = &c->quantize[map[i]]; in aptx_insert_sync() 176 return (((channel->quantize[3].quantized_sample & 0x06) | parity) << 13) in aptx_pack_codeword() 177 | (((channel->quantize[ in aptx_pack_codeword() [all...] |
H A D | aptxdec.c | 96 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 7); in aptx_unpack_codeword() 97 channel->quantize[1].quantized_sample = sign_extend(codeword >> 7, 4); in aptx_unpack_codeword() 98 channel->quantize[2].quantized_sample = sign_extend(codeword >> 11, 2); in aptx_unpack_codeword() 99 channel->quantize[3].quantized_sample = sign_extend(codeword >> 13, 3); in aptx_unpack_codeword() 100 channel->quantize[3].quantized_sample = (channel->quantize[3].quantized_sample & ~1) in aptx_unpack_codeword() 106 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 9); in aptxhd_unpack_codeword() 107 channel->quantize[1].quantized_sample = sign_extend(codeword >> 9, 6); in aptxhd_unpack_codeword() 108 channel->quantize[2].quantized_sample = sign_extend(codeword >> 15, 4); in aptxhd_unpack_codeword() 109 channel->quantize[ in aptxhd_unpack_codeword() [all...] |
H A D | aptx.c | 379 int32_t cw = ((channel->quantize[0].quantized_sample & 3) << 0) + in aptx_update_codeword_history() 380 ((channel->quantize[1].quantized_sample & 2) << 1) + in aptx_update_codeword_history() 381 ((channel->quantize[2].quantized_sample & 1) << 3); in aptx_update_codeword_history() 503 channel->quantize[subband].quantized_sample, in ff_aptx_invert_quantize_and_prediction()
|
H A D | aptx.h | 88 Quantize quantize[NB_SUBBANDS]; member 196 parity ^= channel->quantize[subband].quantized_sample; in aptx_quantized_parity()
|
H A D | ra144enc.c | 77 * @param value value to quantize 83 static int quantize(int value, const int16_t *table, unsigned int size) in quantize() function 467 energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab, in ra144_encode_frame() 494 idx = quantize(lpc_refl[i], ff_lpc_refl_cb[i], sizes[i]); in ra144_encode_frame() 507 put_bits(&pb, 5, quantize(energy, ff_energy_tab, 32)); in ra144_encode_frame()
|
H A D | cinepakenc.c | 699 static int quantize(CinepakEncContext *s, int h, uint8_t *data[4], in quantize() function 895 if ((new_v1_size = quantize(s, h, data, linesize, 1, in rd_strip() 911 new_v4_size = quantize(s, h, data, linesize, 0, in rd_strip() 932 new_v1_size = quantize(s, h, data, linesize, 1, &info, ENC_V1); in rd_strip() 939 new_v4_size = quantize(s, h, data, linesize, 0, &info, ENC_V4); in rd_strip() 957 new_v1_size = quantize(s, h, data, linesize, 1, &info, ENC_V1); in rd_strip() 965 new_v4_size = quantize(s, h, data, linesize, 0, &info, ENC_V4); in rd_strip() 1059 scratch_data[1][0] = rr + 128; // quantize needs unsigned in rd_frame() 1067 scratch_data[2][0] = rr + 128; // quantize needs unsigned in rd_frame()
|
H A D | snowenc.c | 1244 static void quantize(SnowContext *s, SubBand *b, IDWTELEM *dst, DWTELEM *src, int stride, int bias){ in quantize() function 1790 quantize(s, b, b->ibuf, b->buf, b->stride, s->qbias); in encode_frame()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jcdctmgr.c | 44 METHODDEF(void) quantize(JCOEFPTR, DCTELEM *, DCTELEM *); 52 quantize_method_ptr quantize; member 269 fdct->quantize == jsimd_quantize) in start_pass_fdctmgr() 270 fdct->quantize = quantize; in start_pass_fdctmgr() 312 fdct->quantize == jsimd_quantize) in start_pass_fdctmgr() 313 fdct->quantize = quantize; in start_pass_fdctmgr() 408 quantize(JCOEFPTR coef_block, DCTELEM *divisors, DCTELEM *workspace) in quantize() function 504 quantize_method_ptr do_quantize = fdct->quantize; in forward_DCT() [all...] |
/third_party/ffmpeg/libavresample/ |
H A D | dither.c | 73 void (*quantize)(int16_t *dst, const float *src, float *dither, int len); member 231 c->quantize(dst[ch], src[ch], in convert_samples() 285 c->quantize = c->ddsp.quantize; in ff_convert_dither() 288 c->quantize = quantize_c; in ff_convert_dither() 332 ddsp->quantize = quantize_c; in dither_init()
|
H A D | dither.h | 38 void (*quantize)(int16_t *dst, const float *src, float *dither, int len); member 40 int ptr_align; ///< src and dst constraints for quantize() 41 int samples_align; ///< len constraints for quantize()
|
/third_party/ffmpeg/libavresample/x86/ |
H A D | dither_init.c | 40 ddsp->quantize = ff_quantize_sse2; in ff_dither_init_x86()
|
H A D | dither.asm | 38 cglobal quantize, 4,4,3, dst, src, dither, len
|
/third_party/libsnd/src/G72x/ |
H A D | g72x_priv.h | 89 int quantize (int d, int y, short *table, int size) ;
|
H A D | g723_40.c | 106 /* quantize prediction difference */ in g723_40_encoder() 108 i = quantize (d, y, qtab_723_40, 15) ; /* i = ADPCM code */ in g723_40_encoder()
|
H A D | g723_16.c | 104 /* quantize prediction difference d */ in g723_16_encoder() 106 i = quantize (d, y, qtab_723_16, 1) ; /* i = ADPCM code */ in g723_16_encoder() 108 /* Since quantize () only produces a three level output in g723_16_encoder()
|
H A D | g721.c | 101 /* quantize the prediction difference */ in g721_encoder() 103 i = quantize (d, y, qtab_721, 7) ; /* i = ADPCM code */ in g721_encoder()
|
H A D | g723_24.c | 90 /* quantize prediction difference d */ in g723_24_encoder() 92 i = quantize (d, y, qtab_723_24, 3) ; /* i = ADPCM code */ in g723_24_encoder()
|
H A D | g72x.c | 319 * quantize () 327 int quantize ( in quantize() function
|
/third_party/python/Lib/test/ |
H A D | test_decimal.py | 2047 #to quantize, which is already extensively tested 2455 ans = str(Decimal('1.50001').quantize(exp=Decimal('1e-3'), rounding=None, context=None)) 2458 ans = str(Decimal('1.50001').quantize(exp=Decimal('1e-3'), rounding=None, context=None)) 2460 ans = str(Decimal('1.50001').quantize(exp=Decimal('1e-3'), rounding=ROUND_UP, context=None)) 2463 self.assertRaises(InvalidOperation, y.quantize, Decimal('1e-10'), rounding=ROUND_UP, context=None) 2504 self.assertEqual(Decimal(1234).quantize(100), 2505 Decimal(1234).quantize(Decimal(100))) 2702 Decimal('7.335').quantize(Decimal('.01')), 2706 Decimal('7.335').quantize(Decimal('.01'), rounding=ROUND_DOWN), 2711 Decimal("10e99999").quantize, Decima [all...] |
H A D | test_time.py | 888 d = d.quantize(1)
|
/third_party/python/Lib/ |
H A D | _pydecimal.py | 1873 self.quantize(Decimal('1En')). 1888 # two-argument form: use the equivalent quantize call 1892 return self.quantize(exp) 2546 def quantize(self, exp, rounding=None, context=None): member in Decimal 2567 'quantize with one INF') 2572 'target exponent out of bounds in quantize') 2581 'exponent of quantize result too large for current context') 2584 'quantize result has too many digits for current context') 2589 'exponent of quantize result too large for current context') 2592 'quantize resul 5235 def quantize(self, a, b): global() member in Context [all...] |