/third_party/ffmpeg/libavcodec/ |
H A D | mpegaudio.h | 51 #ifndef FRAC_BITS 52 #define FRAC_BITS 23 /* fractional bits for sb_samples and dct */ macro 58 #define FRAC_ONE (1 << FRAC_BITS) 67 #elif FRAC_BITS <= 15
|
H A D | mpegaudiodec_common_tablegen.h | 41 #define FRAC_BITS 23 macro 63 e += FRAC_BITS - 31 + 5 - 100; in mpegaudiodec_common_tableinit() 65 /* normalized to FRAC_BITS */ in mpegaudiodec_common_tableinit()
|
H A D | snow.h | 48 #define FRAC_BITS 4 macro 391 if(FRAC_BITS != 8){ in add_yblock() 392 v >>= 8 - FRAC_BITS; in add_yblock() 396 v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; in add_yblock() 429 int v= buf[x + y*w] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice() 430 v >>= FRAC_BITS; in predict_slice() local 438 buf[x + y*w]-= 128<<FRAC_BITS; in predict_slice() 510 #define QEXPSHIFT (7-FRAC_BITS [all...] |
H A D | g729postfilter.c | 36 #define FRAC_BITS 15 macro 275 tmp = MULL(gain_num_short_square, gain_den, FRAC_BITS); in long_term_filter() 276 tmp2 = MULL(gain_num_square, gain_den_short, FRAC_BITS); in long_term_filter() 347 L_temp0 = MULL(L_temp0, gain_long_den, FRAC_BITS); in long_term_filter() 350 L_temp1 = MULL(L_temp1, gain_den, FRAC_BITS); in long_term_filter()
|
H A D | lsp.c | 26 #define FRAC_BITS 14 macro 117 f[j] -= MULL(f[j-1], lsp[2*i-2], FRAC_BITS) - f[j-2]; in lsp2poly()
|
H A D | mpegaudiodec_template.c | 220 /* compute value^(4/3) * 2^(exponent/4). It normalized to FRAC_BITS */ 249 scale_factor_mult[i][0] = MULLx(norm, FIXR(1.0 * 2.0), FRAC_BITS); in decode_init_static() 250 scale_factor_mult[i][1] = MULLx(norm, FIXR(0.7937005259 * 2.0), FRAC_BITS); in decode_init_static() 251 scale_factor_mult[i][2] = MULLx(norm, FIXR(0.6299605249 * 2.0), FRAC_BITS); in decode_init_static() 987 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo() 988 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo() 998 tab0[j] = MULLx(tmp0 + tmp1, ISQRT2, FRAC_BITS); in compute_stereo() 999 tab1[j] = MULLx(tmp0 - tmp1, ISQRT2, FRAC_BITS); in compute_stereo() 1031 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo() 1032 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo() [all...] |
H A D | mpegaudiodsp_template.c | 54 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15) 206 v *= 1.0 / (1LL<<(16 + FRAC_BITS)); in mpa_synth_init() 326 s3 = MULLx(t3 - t2, icos36 [8 - j], FRAC_BITS); in imdct36()
|
H A D | snowdec.c | 56 // int v= buf[x + y*w] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice_buffered() 57 int v= line[x] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice_buffered() 58 v >>= FRAC_BITS; in predict_slice_buffered() local 68 line[x] -= 128 << FRAC_BITS; in predict_slice_buffered() 69 // buf[x + y*w]-= 128<<FRAC_BITS; in predict_slice_buffered() 596 line[x] *= 1<<FRAC_BITS; in decode_frame()
|
H A D | snowenc.c | 556 d = -dst[index] + (1<<(FRAC_BITS-1)); in get_dc() 558 ab += (src[x2 + y2*ref_stride] - (d>>FRAC_BITS)) * obmc_v; in get_dc() 643 #if FRAC_BITS >= LOG2_OBMC_MAX in get_block_rd() 644 int v = (cur1[x] * obmc1[x]) << (FRAC_BITS - LOG2_OBMC_MAX); in get_block_rd() 646 int v = (cur1[x] * obmc1[x] + (1<<(LOG2_OBMC_MAX - FRAC_BITS-1))) >> (LOG2_OBMC_MAX - FRAC_BITS); in get_block_rd() 648 v = (v + pred1[x]) >> FRAC_BITS; in get_block_rd() 1739 s->spatial_idwt_buffer[y*w + x]= pict->data[plane_index][y*pict->linesize[plane_index] + x]<<FRAC_BITS; in encode_frame() 1759 s->spatial_dwt_buffer[y*w + x]= (s->spatial_idwt_buffer[y*w + x] + (1<<(FRAC_BITS-1))-1)>>FRAC_BITS; in encode_frame() [all...] |
H A D | mpegaudioenc_template.c | 34 #define FRAC_BITS 15 /* fractional bits for sb_samples and dct */ macro 44 #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS) 322 #define WSHIFT (WFRAC_BITS + 15 - FRAC_BITS)
|
H A D | snow.c | 55 if(FRAC_BITS != 8){ in ff_snow_inner_add_yblock() 56 v >>= 8 - FRAC_BITS; in ff_snow_inner_add_yblock() 60 v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; in ff_snow_inner_add_yblock()
|
/third_party/ffmpeg/tests/ |
H A D | audiogen.c | 46 #define FRAC_BITS 16 macro 47 #define FRAC_ONE (1 << FRAC_BITS) 72 #define CSHIFT (FRAC_BITS - COS_TABLE_BITS - 2) 92 v = v << (FRAC_BITS - 15); in int_cos() 186 v = (int_cos(a) * 10000) >> FRAC_BITS; in main() 195 v = (int_cos(a) * 10000) >> FRAC_BITS; in main() 224 v = (int_cos(taba[j]) * 10000) >> FRAC_BITS; in main() 236 amp = ((FRAC_ONE + int_cos(ampa)) * 5000) >> FRAC_BITS; in main() 239 v = (int_cos(a) * amp) >> FRAC_BITS; in main()
|
H A D | videogen.c | 49 #define FRAC_BITS 8 macro 50 #define FRAC_ONE (1 << FRAC_BITS) 103 x1 = (x << FRAC_BITS) + dx; in gen_image() 104 y1 = (y << FRAC_BITS) + dy; in gen_image() 105 r = ((y1 * 7) >> FRAC_BITS) & 0xff; in gen_image() 106 g = (((x1 + y1) * 9) >> FRAC_BITS) & 0xff; in gen_image() 107 b = ((x1 * 5) >> FRAC_BITS) & 0xff; in gen_image()
|
/third_party/ffmpeg/libavformat/ |
H A D | swfenc.c | 156 #define FRAC_BITS 16 macro 306 put_swf_matrix(pb, 1 << FRAC_BITS, 0, in swf_write_header() 307 0, 1 << FRAC_BITS, 0, 0); in swf_write_header() 402 put_swf_matrix(pb, 1 << FRAC_BITS, 0, 0, 1 << FRAC_BITS, 0, 0); in swf_write_video() 458 put_swf_matrix(pb, 20 << FRAC_BITS, 0, 0, 20 << FRAC_BITS, 0, 0); in swf_write_video()
|
/third_party/ffmpeg/libavcodec/aarch64/ |
H A D | mpegaudiodsp_neon.S | 23 #define FRAC_BITS 23 // fractional bits for sb_samples and dct define 25 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
|
/third_party/libcoap/src/ |
H A D | coap_net.c | 79 #define FRAC_BITS 6 macro 87 #if FRAC_BITS > 8 88 #error FRAC_BITS must be less or equal 8 95 /** creates a Qx.FRAC_BITS from session's 'ack_random_factor' */ 97 Q(FRAC_BITS, session->ack_random_factor) 99 /** creates a Qx.FRAC_BITS from session's 'ack_timeout' */ 100 #define ACK_TIMEOUT Q(FRAC_BITS, session->ack_timeout) 878 * Qx.FRAC_BITS fixed point notation, whereas the passed parameter @p r 891 /* The integer 1.0 as a Qx.FRAC_BITS */ in coap_calc_timeout() 892 #define FP1 Q(FRAC_BITS, ((coap_fixed_point_ in coap_calc_timeout() [all...] |