Home
last modified time | relevance | path

Searched refs:FRAC_BITS (Results 1 – 16 of 16) sorted by relevance

/third_party/ffmpeg/tests/
Daudiogen.c46 #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()
Dvideogen.c49 #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/libavcodec/
Dmpegaudio.h51 #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
Dmpegaudio_tablegen.h42 #define FRAC_BITS 23 macro
70 e += FRAC_BITS - 31 + 5 - 100; in mpegaudio_tableinit()
Dsnow.h46 #define FRAC_BITS 4 macro
388 if(FRAC_BITS != 8){ in add_yblock()
389 v >>= 8 - FRAC_BITS; in add_yblock()
393 v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; in add_yblock()
426 int v= buf[x + y*w] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice()
427 v >>= FRAC_BITS; in predict_slice()
435 buf[x + y*w]-= 128<<FRAC_BITS; in predict_slice()
507 #define QEXPSHIFT (7-FRAC_BITS+8) //FIXME try to change this to 0
Dg729postfilter.c33 #define FRAC_BITS 15 macro
272 tmp = MULL(gain_num_short_square, gain_den, FRAC_BITS); in long_term_filter()
273 tmp2 = MULL(gain_num_square, gain_den_short, FRAC_BITS); in long_term_filter()
344 L_temp0 = MULL(L_temp0, gain_long_den, FRAC_BITS); in long_term_filter()
347 L_temp1 = MULL(L_temp1, gain_den, FRAC_BITS); in long_term_filter()
Dlsp.c27 #define FRAC_BITS 14 macro
117 f[j] -= MULL(f[j-1], lsp[2*i-2], FRAC_BITS) - f[j-2]; in lsp2poly()
Dmpegaudiodsp_template.c52 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
204 v *= 1.0 / (1LL<<(16 + FRAC_BITS)); in RENAME()
355 s3 = MULLx(t3 - t2, icos36 [8 - j], FRAC_BITS); in imdct36()
Dmpegaudiodec_template.c281 scale_factor_mult[i][0] = MULLx(norm, FIXR(1.0 * 2.0), FRAC_BITS); in decode_init_static()
282 scale_factor_mult[i][1] = MULLx(norm, FIXR(0.7937005259 * 2.0), FRAC_BITS); in decode_init_static()
283 scale_factor_mult[i][2] = MULLx(norm, FIXR(0.6299605249 * 2.0), FRAC_BITS); in decode_init_static()
1088 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo()
1089 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo()
1099 tab0[j] = MULLx(tmp0 + tmp1, ISQRT2, FRAC_BITS); in compute_stereo()
1100 tab1[j] = MULLx(tmp0 - tmp1, ISQRT2, FRAC_BITS); in compute_stereo()
1132 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo()
1133 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo()
1143 tab0[j] = MULLx(tmp0 + tmp1, ISQRT2, FRAC_BITS); in compute_stereo()
[all …]
Dsnowdec.c60 int v= line[x] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice_buffered()
61 v >>= FRAC_BITS; in predict_slice_buffered()
71 line[x] -= 128 << FRAC_BITS; in predict_slice_buffered()
603 line[x] *= 1<<FRAC_BITS; in decode_frame()
Dmpegaudioenc_template.c33 #define FRAC_BITS 15 /* fractional bits for sb_samples and dct */ macro
43 #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
321 #define WSHIFT (WFRAC_BITS + 15 - FRAC_BITS)
Dsnowenc.c559 d = -dst[index] + (1<<(FRAC_BITS-1)); in get_dc()
561 ab += (src[x2 + y2*ref_stride] - (d>>FRAC_BITS)) * obmc_v; in get_dc()
646 #if FRAC_BITS >= LOG2_OBMC_MAX in get_block_rd()
647 int v = (cur1[x] * obmc1[x]) << (FRAC_BITS - LOG2_OBMC_MAX); in get_block_rd()
649 … int v = (cur1[x] * obmc1[x] + (1<<(LOG2_OBMC_MAX - FRAC_BITS-1))) >> (LOG2_OBMC_MAX - FRAC_BITS); in get_block_rd()
651 v = (v + pred1[x]) >> FRAC_BITS; in get_block_rd()
1757 …patial_idwt_buffer[y*w + x]= pict->data[plane_index][y*pict->linesize[plane_index] + x]<<FRAC_BITS; in encode_frame()
1784 …->spatial_dwt_buffer[y*w + x]= (s->spatial_idwt_buffer[y*w + x] + (1<<(FRAC_BITS-1))-1)>>FRAC_BITS; in encode_frame()
1838 s->spatial_idwt_buffer[y*w + x]<<=FRAC_BITS; in encode_frame()
Dsnow.c54 if(FRAC_BITS != 8){ in ff_snow_inner_add_yblock()
55 v >>= 8 - FRAC_BITS; in ff_snow_inner_add_yblock()
59 v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; in ff_snow_inner_add_yblock()
/third_party/ffmpeg/libavformat/
Dswfenc.c136 #define FRAC_BITS 16 macro
282 put_swf_matrix(pb, 1 << FRAC_BITS, 0, in swf_write_header()
283 0, 1 << FRAC_BITS, 0, 0); in swf_write_header()
372 put_swf_matrix(pb, 1 << FRAC_BITS, 0, 0, 1 << FRAC_BITS, 0, 0); in swf_write_video()
422 put_swf_matrix(pb, 20 << FRAC_BITS, 0, 0, 20 << FRAC_BITS, 0, 0); in swf_write_video()
/third_party/ffmpeg/libavcodec/aarch64/
Dmpegaudiodsp_neon.S23 #define FRAC_BITS 23 // fractional bits for sb_samples and dct macro
25 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
/third_party/libcoap/src/
Dnet.c74 #define FRAC_BITS 6 macro
82 #if FRAC_BITS > 8
83 #error FRAC_BITS must be less or equal 8
92 Q(FRAC_BITS, session->ack_random_factor)
95 #define ACK_TIMEOUT Q(FRAC_BITS, session->ack_timeout)
951 #define FP1 Q(FRAC_BITS, ((coap_fixed_point_t){1,0})) in coap_calc_timeout()
962 result = SHR_FP(((result + FP1) * ACK_TIMEOUT), FRAC_BITS); in coap_calc_timeout()
966 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS); in coap_calc_timeout()