/third_party/ffmpeg/libswscale/ |
H A D | output.c | 316 AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ 318 AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ 463 AV_WB16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ 465 AV_WL16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ 1087 output_pixel(&dest[0], av_clip_uintp2(((R_B + Y1) >> 14) + (1<<15), 16)); in yuv2rgba64_X_c_template() 1088 output_pixel(&dest[1], av_clip_uintp2((( G + Y1) >> 14) + (1<<15), 16)); in yuv2rgba64_X_c_template() 1089 output_pixel(&dest[2], av_clip_uintp2(((B_R + Y1) >> 14) + (1<<15), 16)); in yuv2rgba64_X_c_template() 1091 output_pixel(&dest[3], av_clip_uintp2(A1 , 30) >> 14); in yuv2rgba64_X_c_template() 1092 output_pixel(&dest[4], av_clip_uintp2(((R_B + Y2) >> 14) + (1<<15), 16)); in yuv2rgba64_X_c_template() 1093 output_pixel(&dest[5], av_clip_uintp2((( in yuv2rgba64_X_c_template() [all...] |
H A D | swscale.c | 669 r = av_clip_uintp2(r, 12); in xyz12Torgb48() 670 g = av_clip_uintp2(g, 12); in xyz12Torgb48() 671 b = av_clip_uintp2(b, 12); in xyz12Torgb48() 725 x = av_clip_uintp2(x, 12); in rgb48Toxyz12() 726 y = av_clip_uintp2(y, 12); in rgb48Toxyz12() 727 z = av_clip_uintp2(z, 12); in rgb48Toxyz12()
|
/third_party/ffmpeg/libavcodec/ |
H A D | vaapi_vp8.c | 94 pp.loop_filter_level[i] = av_clip_uintp2(pp.loop_filter_level[i], 6); in vaapi_vp8_start_frame() 156 quant.quantization_index[i][0] = av_clip_uintp2(base_qi, 7); in vaapi_vp8_start_frame() 157 quant.quantization_index[i][1] = av_clip_uintp2(base_qi + s->quant.ydc_delta, 7); in vaapi_vp8_start_frame() 158 quant.quantization_index[i][2] = av_clip_uintp2(base_qi + s->quant.y2dc_delta, 7); in vaapi_vp8_start_frame() 159 quant.quantization_index[i][3] = av_clip_uintp2(base_qi + s->quant.y2ac_delta, 7); in vaapi_vp8_start_frame() 160 quant.quantization_index[i][4] = av_clip_uintp2(base_qi + s->quant.uvdc_delta, 7); in vaapi_vp8_start_frame() 161 quant.quantization_index[i][5] = av_clip_uintp2(base_qi + s->quant.uvac_delta, 7); in vaapi_vp8_start_frame()
|
H A D | bitpacked_enc.c | 60 put_bits(&pb, 10, av_clip_uintp2(*u++, 10)); in encode_yuv422p10() 61 put_bits(&pb, 10, av_clip_uintp2(*y++, 10)); in encode_yuv422p10() 62 put_bits(&pb, 10, av_clip_uintp2(*v++, 10)); in encode_yuv422p10() 63 put_bits(&pb, 10, av_clip_uintp2(*y++, 10)); in encode_yuv422p10()
|
H A D | texturedspenc.c | 425 max16 = av_clip_uintp2((at1_r * yy - at2_r * xy) * fr + 0.5f, 5) << 11; in refine_colors() 426 max16 |= av_clip_uintp2((at1_g * yy - at2_g * xy) * fg + 0.5f, 6) << 5; in refine_colors() 427 max16 |= av_clip_uintp2((at1_b * yy - at2_b * xy) * fb + 0.5f, 5) << 0; in refine_colors() 429 min16 = av_clip_uintp2((at2_r * xx - at1_r * xy) * fr + 0.5f, 5) << 11; in refine_colors() 430 min16 |= av_clip_uintp2((at2_g * xx - at1_g * xy) * fg + 0.5f, 6) << 5; in refine_colors() 431 min16 |= av_clip_uintp2((at2_b * xx - at1_b * xy) * fb + 0.5f, 5) << 0; in refine_colors()
|
H A D | diracdsp.c | 164 dst[x ] = av_clip_uintp2(src[x ] + (1U << (PX - 1)), PX); \ 165 dst[x+1] = av_clip_uintp2(src[x+1] + (1U << (PX - 1)), PX); \ 166 dst[x+2] = av_clip_uintp2(src[x+2] + (1U << (PX - 1)), PX); \ 167 dst[x+3] = av_clip_uintp2(src[x+3] + (1U << (PX - 1)), PX); \
|
H A D | bit_depth_template.c | 78 # define av_clip_pixel(a) av_clip_uintp2(a, BIT_DEPTH) 79 # define CLIP(a) av_clip_uintp2(a, BIT_DEPTH)
|
H A D | notchlc.c | 264 dsty[x + i * ylinesize + 0] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 12); in decode_blocks() 265 dsty[x + i * ylinesize + 1] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 12); in decode_blocks() 266 dsty[x + i * ylinesize + 2] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 12); in decode_blocks() 267 dsty[x + i * ylinesize + 3] = av_clip_uintp2(y_min + ((y_diff * get_bits(&bit, nb_bits) + add) / div), 12); in decode_blocks()
|
H A D | aacenc_quantization.h | 107 int c = av_clip_uintp2(quant(t, Q, ROUNDING), 13); in quantize_and_encode_band_cost_template() 144 int coef = av_clip_uintp2(quant(fabsf(in[i+j]), Q, ROUNDING), 13); in quantize_and_encode_band_cost_template()
|
H A D | cngenc.c | 84 qdbov = av_clip_uintp2(-floor(dbov), 7); in cng_encode_frame()
|
H A D | hqxdsp.c | 121 int v = av_clip_uintp2(block[j + i * 8] + 0x800, 12); in hqx_idct_put()
|
H A D | motionpixels.c | 233 p.y = av_clip_uintp2(p.y, 5); in mp_decode_line() 265 p.y = av_clip_uintp2(p.y, 5); in mp_decode_frame_helper()
|
H A D | vp9.c | 723 qyac = av_clip_uintp2(s->s.h.segmentation.feat[i].q_val, 8); in decode_frame_header() 725 qyac = av_clip_uintp2(s->s.h.yac_qi + s->s.h.segmentation.feat[i].q_val, 8); in decode_frame_header() 729 qydc = av_clip_uintp2(qyac + s->s.h.ydc_qdelta, 8); in decode_frame_header() 730 quvdc = av_clip_uintp2(qyac + s->s.h.uvdc_qdelta, 8); in decode_frame_header() 731 quvac = av_clip_uintp2(qyac + s->s.h.uvac_qdelta, 8); in decode_frame_header() 732 qyac = av_clip_uintp2(qyac, 8); in decode_frame_header() 742 lflvl = av_clip_uintp2(s->s.h.segmentation.feat[i].lf_val, 6); in decode_frame_header() 744 lflvl = av_clip_uintp2(s->s.h.filter.level + s->s.h.segmentation.feat[i].lf_val, 6); in decode_frame_header() 751 av_clip_uintp2(lflvl + (s->s.h.lf_delta.ref[0] * (1 << sh)), 6); in decode_frame_header() 754 av_clip_uintp2(lflv in decode_frame_header() [all...] |
H A D | cfhd.c | 147 channel = av_clip_uintp2(channel, 12); in process_alpha() 178 R = av_clip_uintp2(R * factor, 16); in process_bayer() 179 G1 = av_clip_uintp2(G1 * factor, 16); in process_bayer() 180 G2 = av_clip_uintp2(G2 * factor, 16); in process_bayer() 181 B = av_clip_uintp2(B * factor, 16); in process_bayer() 204 output[i] = av_clip_uintp2(even, 10); in interlaced_vertical_filter() 205 output[i + linesize] = av_clip_uintp2(odd, 10); in interlaced_vertical_filter()
|
H A D | siren.c | 484 i = av_clip_uintp2(i, 3); in categorize_regions() 496 i = av_clip_uintp2(i, 3); in categorize_regions()
|
H A D | aacenc_ltp.c | 94 ltp->lag = FFMAX(av_clip_uintp2(lag, 11), 0); in get_lag()
|
H A D | cavs.c | 92 alpha = alpha_tab[av_clip_uintp2(qp_avg + h->alpha_offset, 6)]; \ 93 beta = beta_tab[av_clip_uintp2(qp_avg + h->beta_offset, 6)]; \ 94 tc = tc_tab[av_clip_uintp2(qp_avg + h->alpha_offset, 6)];
|
H A D | opusenc_psy.c | 49 b = av_clip_uintp2(FFMIN(f->remaining2 + 1, f->pulses[band] + curr_balance), 14); in pvq_band_cost() 352 f_out->spread = av_clip_uintp2(lrintf(tonal), 2); in celt_gauge_psy_weight()
|
H A D | vp8.c | 384 s->qmat[i].luma_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.ydc_delta, 7)]; in vp8_get_quants() 385 s->qmat[i].luma_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi, 7)]; in vp8_get_quants() 386 s->qmat[i].luma_dc_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.y2dc_delta, 7)] * 2; in vp8_get_quants() 388 s->qmat[i].luma_dc_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi + s->quant.y2ac_delta, 7)] * 101581 >> 16; in vp8_get_quants() 389 s->qmat[i].chroma_qmul[0] = vp8_dc_qlookup[av_clip_uintp2(base_qi + s->quant.uvdc_delta, 7)]; in vp8_get_quants() 390 s->qmat[i].chroma_qmul[1] = vp8_ac_qlookup[av_clip_uintp2(base_qi + s->quant.uvac_delta, 7)]; in vp8_get_quants() 2145 filter_level = av_clip_uintp2(filter_level, 6); in filter_level_for_mb()
|
/third_party/ffmpeg/libavfilter/ |
H A D | colorchannelmixer_template.c | 127 dstr[j] = av_clip_uintp2(rout, depth); in filter_slice_rgba_planar() 128 dstg[j] = av_clip_uintp2(gout, depth); in filter_slice_rgba_planar() 129 dstb[j] = av_clip_uintp2(bout, depth); in filter_slice_rgba_planar() 138 dsta[j] = av_clip_uintp2(s->lut[A][R][rin] + in filter_slice_rgba_planar() 224 dst[j + roffset] = av_clip_uintp2(rout, depth); in filter_slice_rgba_packed() 225 dst[j + goffset] = av_clip_uintp2(gout, depth); in filter_slice_rgba_packed() 226 dst[j + boffset] = av_clip_uintp2(bout, depth); in filter_slice_rgba_packed() 229 dst[j + aoffset] = av_clip_uintp2(s->lut[A][R][rin] + in filter_slice_rgba_packed()
|
H A D | vf_colorlevels.c | 223 DO_COMMON(uint16_t, av_clip_uintp2, 0, 1) in colorlevels_slice_9_planar() 231 DO_COMMON(uint16_t, av_clip_uintp2, 0, 1) in colorlevels_slice_10_planar() 239 DO_COMMON(uint16_t, av_clip_uintp2, 0, 1) in colorlevels_slice_12_planar() 247 DO_COMMON(uint16_t, av_clip_uintp2, 0, 1) in colorlevels_slice_14_planar() 269 DO_COMMON(uint16_t, av_clip_uintp2, 1, 1) in colorlevels_preserve_slice_9_planar() 277 DO_COMMON(uint16_t, av_clip_uintp2, 1, 1) in colorlevels_preserve_slice_10_planar() 285 DO_COMMON(uint16_t, av_clip_uintp2, 1, 1) in colorlevels_preserve_slice_12_planar() 293 DO_COMMON(uint16_t, av_clip_uintp2, 1, 1) in colorlevels_preserve_slice_14_planar()
|
H A D | vf_hue.c | 124 h->lut_l16[i] = av_clip_uintp2(i + b * 102.4, 10); in create_luma_lut() 172 h->lut_u10[i][j] = av_clip_uintp2(new_u, 10); in create_chrominance_lut() 173 h->lut_v10[i][j] = av_clip_uintp2(new_v, 10); in create_chrominance_lut() 345 const int u = av_clip_uintp2(usrc[i], 10); in apply_lut10() 346 const int v = av_clip_uintp2(vsrc[i], 10); in apply_lut10()
|
H A D | blend_modes.c | 48 #define CLIP(x) ((int)av_clip_uintp2(x, DEPTH))
|
/third_party/ffmpeg/libavutil/arm/ |
H A D | intmath.h | 73 #define av_clip_uintp2 av_clip_uintp2_arm macro
|
/third_party/ffmpeg/libavutil/ |
H A D | common.h | 118 #ifndef av_clip_uintp2 119 # define av_clip_uintp2 av_clip_uintp2_c macro
|