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
Dmpegaudiodec_common_tablegen.h41 #define FRAC_BITS 23 macro
63 e += FRAC_BITS - 31 + 5 - 100; in mpegaudiodec_common_tableinit()
Dsnow.h46 #define FRAC_BITS 4 macro
389 if(FRAC_BITS != 8){ in add_yblock()
390 v >>= 8 - FRAC_BITS; in add_yblock()
394 v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; in add_yblock()
427 int v= buf[x + y*w] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); in predict_slice()
428 v >>= FRAC_BITS; in predict_slice()
436 buf[x + y*w]-= 128<<FRAC_BITS; in predict_slice()
508 #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.c55 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15)
207 v *= 1.0 / (1LL<<(16 + FRAC_BITS)); in mpa_synth_init()
327 s3 = MULLx(t3 - t2, icos36 [8 - j], FRAC_BITS); in imdct36()
Dmpegaudiodec_template.c247 scale_factor_mult[i][0] = MULLx(norm, FIXR(1.0 * 2.0), FRAC_BITS); in decode_init_static()
248 scale_factor_mult[i][1] = MULLx(norm, FIXR(0.7937005259 * 2.0), FRAC_BITS); in decode_init_static()
249 scale_factor_mult[i][2] = MULLx(norm, FIXR(0.6299605249 * 2.0), FRAC_BITS); in decode_init_static()
985 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo()
986 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo()
996 tab0[j] = MULLx(tmp0 + tmp1, ISQRT2, FRAC_BITS); in compute_stereo()
997 tab1[j] = MULLx(tmp0 - tmp1, ISQRT2, FRAC_BITS); in compute_stereo()
1029 tab0[j] = MULLx(tmp0, v1, FRAC_BITS); in compute_stereo()
1030 tab1[j] = MULLx(tmp0, v2, FRAC_BITS); in compute_stereo()
1040 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()
600 line[x] *= 1<<FRAC_BITS; in decode_frame()
Dsnow.c55 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()
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()
/third_party/ffmpeg/libavformat/
Dswfenc.c154 #define FRAC_BITS 16 macro
304 put_swf_matrix(pb, 1 << FRAC_BITS, 0, in swf_write_header()
305 0, 1 << FRAC_BITS, 0, 0); in swf_write_header()
394 put_swf_matrix(pb, 1 << FRAC_BITS, 0, 0, 1 << FRAC_BITS, 0, 0); in swf_write_video()
450 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/
Dcoap_net.c79 #define FRAC_BITS 6 macro
87 #if FRAC_BITS > 8
88 #error FRAC_BITS must be less or equal 8
97 Q(FRAC_BITS, session->ack_random_factor)
100 #define ACK_TIMEOUT Q(FRAC_BITS, session->ack_timeout)
892 #define FP1 Q(FRAC_BITS, ((coap_fixed_point_t){1,0})) in coap_calc_timeout()
903 result = SHR_FP(((result + FP1) * ACK_TIMEOUT), FRAC_BITS); in coap_calc_timeout()
907 return SHR_FP((COAP_TICKS_PER_SECOND * result), FRAC_BITS); in coap_calc_timeout()