Home
last modified time | relevance | path

Searched refs:av_clip_uint8 (Results 1 – 25 of 123) sorted by relevance

12345

/third_party/ffmpeg/libavcodec/
Dvp3dsp.c144 dst[0 * stride] = av_clip_uint8((Gd + Cd) >> 4); in idct()
145 dst[7 * stride] = av_clip_uint8((Gd - Cd) >> 4); in idct()
147 dst[1 * stride] = av_clip_uint8((Add + Hd) >> 4); in idct()
148 dst[2 * stride] = av_clip_uint8((Add - Hd) >> 4); in idct()
150 dst[3 * stride] = av_clip_uint8((Ed + Dd) >> 4); in idct()
151 dst[4 * stride] = av_clip_uint8((Ed - Dd) >> 4); in idct()
153 dst[5 * stride] = av_clip_uint8((Fd + Bdd) >> 4); in idct()
154 dst[6 * stride] = av_clip_uint8((Fd - Bdd) >> 4); in idct()
156 dst[0 * stride] = av_clip_uint8(dst[0 * stride] + ((Gd + Cd) >> 4)); in idct()
157 dst[7 * stride] = av_clip_uint8(dst[7 * stride] + ((Gd - Cd) >> 4)); in idct()
[all …]
Didctdsp.c90 pixels[0] = av_clip_uint8(block[0]); in ff_put_pixels_clamped_c()
91 pixels[1] = av_clip_uint8(block[1]); in ff_put_pixels_clamped_c()
92 pixels[2] = av_clip_uint8(block[2]); in ff_put_pixels_clamped_c()
93 pixels[3] = av_clip_uint8(block[3]); in ff_put_pixels_clamped_c()
94 pixels[4] = av_clip_uint8(block[4]); in ff_put_pixels_clamped_c()
95 pixels[5] = av_clip_uint8(block[5]); in ff_put_pixels_clamped_c()
96 pixels[6] = av_clip_uint8(block[6]); in ff_put_pixels_clamped_c()
97 pixels[7] = av_clip_uint8(block[7]); in ff_put_pixels_clamped_c()
111 pixels[0] = av_clip_uint8(block[0]); in put_pixels_clamped4_c()
112 pixels[1] = av_clip_uint8(block[1]); in put_pixels_clamped4_c()
[all …]
Dvc1dsp.c52 src[-stride] = av_clip_uint8(b - d2); in vc1_v_overlap_c()
53 src[0] = av_clip_uint8(c + d2); in vc1_v_overlap_c()
76 src[-1] = av_clip_uint8(b - d2); in vc1_h_overlap_c()
77 src[0] = av_clip_uint8(c + d2); in vc1_h_overlap_c()
177 src[-1 * stride] = av_clip_uint8(src[-1 * stride] - d); in vc1_filter_line()
178 src[ 0 * stride] = av_clip_uint8(src[ 0 * stride] + d); in vc1_filter_line()
253 dest[0] = av_clip_uint8(dest[0] + dc); in vc1_inv_trans_8x8_dc_c()
254 dest[1] = av_clip_uint8(dest[1] + dc); in vc1_inv_trans_8x8_dc_c()
255 dest[2] = av_clip_uint8(dest[2] + dc); in vc1_inv_trans_8x8_dc_c()
256 dest[3] = av_clip_uint8(dest[3] + dc); in vc1_inv_trans_8x8_dc_c()
[all …]
Dfaanidct.c106 dest[0*stride + i]= av_clip_uint8(((int)dest[0*stride + i]) + lrintf(os07 + od07)); in p8idct()
107 dest[7*stride + i]= av_clip_uint8(((int)dest[7*stride + i]) + lrintf(os07 - od07)); in p8idct()
108 dest[1*stride + i]= av_clip_uint8(((int)dest[1*stride + i]) + lrintf(os16 + od16)); in p8idct()
109 dest[6*stride + i]= av_clip_uint8(((int)dest[6*stride + i]) + lrintf(os16 - od16)); in p8idct()
110 dest[2*stride + i]= av_clip_uint8(((int)dest[2*stride + i]) + lrintf(os25 + od25)); in p8idct()
111 dest[5*stride + i]= av_clip_uint8(((int)dest[5*stride + i]) + lrintf(os25 - od25)); in p8idct()
112 dest[3*stride + i]= av_clip_uint8(((int)dest[3*stride + i]) + lrintf(os34 - od34)); in p8idct()
113 dest[4*stride + i]= av_clip_uint8(((int)dest[4*stride + i]) + lrintf(os34 + od34)); in p8idct()
115 dest[0*stride + i]= av_clip_uint8(lrintf(os07 + od07)); in p8idct()
116 dest[7*stride + i]= av_clip_uint8(lrintf(os07 - od07)); in p8idct()
[all …]
Dwmv2dsp.c106 dest[0] = av_clip_uint8(dest[0] + block[0]); in wmv2_idct_add_c()
107 dest[1] = av_clip_uint8(dest[1] + block[1]); in wmv2_idct_add_c()
108 dest[2] = av_clip_uint8(dest[2] + block[2]); in wmv2_idct_add_c()
109 dest[3] = av_clip_uint8(dest[3] + block[3]); in wmv2_idct_add_c()
110 dest[4] = av_clip_uint8(dest[4] + block[4]); in wmv2_idct_add_c()
111 dest[5] = av_clip_uint8(dest[5] + block[5]); in wmv2_idct_add_c()
112 dest[6] = av_clip_uint8(dest[6] + block[6]); in wmv2_idct_add_c()
113 dest[7] = av_clip_uint8(dest[7] + block[7]); in wmv2_idct_add_c()
129 dest[0] = av_clip_uint8(block[0]); in wmv2_idct_put_c()
130 dest[1] = av_clip_uint8(block[1]); in wmv2_idct_put_c()
[all …]
Dws-snd1.c122 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
125 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
128 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
131 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
139 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
142 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
152 sample = av_clip_uint8(sample); in ws_snd_decode_frame()
Ddiracdsp.c37 dstv[x] = av_clip_uint8(FILTER(src+x, stride)); in dirac_hpel_filter()
40 dstc[x] = av_clip_uint8(FILTER(dstv+x, 1)); in dirac_hpel_filter()
43 dsth[x] = av_clip_uint8(FILTER(src+x, 1)); in dirac_hpel_filter()
85 #define op_scale1(x) block[x] = av_clip_uint8( (block[x]*weight + (1<<(log2_denom-1))) >> log2_den…
86 #define op_scale2(x) dst[x] = av_clip_uint8( (src[x]*weights + dst[x]*weightd + (1<<(log2_denom-1)…
143 dst[x ] = av_clip_uint8(src[x ] + 128); in put_signed_rect_clamped_8bit_c()
144 dst[x+1] = av_clip_uint8(src[x+1] + 128); in put_signed_rect_clamped_8bit_c()
145 dst[x+2] = av_clip_uint8(src[x+2] + 128); in put_signed_rect_clamped_8bit_c()
146 dst[x+3] = av_clip_uint8(src[x+3] + 128); in put_signed_rect_clamped_8bit_c()
183 dst[x ] = av_clip_uint8(((src[x ]+32)>>6) + idwt[x ]); in add_rect_clamped_c()
[all …]
Dsimple_idct.c82 dest[0] = av_clip_uint8((c0 + c1) >> C_SHIFT); in idct4col_put()
84 dest[0] = av_clip_uint8((c2 + c3) >> C_SHIFT); in idct4col_put()
86 dest[0] = av_clip_uint8((c2 - c3) >> C_SHIFT); in idct4col_put()
88 dest[0] = av_clip_uint8((c0 - c1) >> C_SHIFT); in idct4col_put()
161 dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >> C_SHIFT)); in idct4col_add()
163 dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >> C_SHIFT)); in idct4col_add()
165 dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >> C_SHIFT)); in idct4col_add()
167 dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >> C_SHIFT)); in idct4col_add()
Drv34dsp.c70 dst[0] = av_clip_uint8( dst[0] + ( (z0 + z3) >> 10 ) ); in rv34_idct_add_c()
71 dst[1] = av_clip_uint8( dst[1] + ( (z1 + z2) >> 10 ) ); in rv34_idct_add_c()
72 dst[2] = av_clip_uint8( dst[2] + ( (z1 - z2) >> 10 ) ); in rv34_idct_add_c()
73 dst[3] = av_clip_uint8( dst[3] + ( (z0 - z3) >> 10 ) ); in rv34_idct_add_c()
112 dst[j] = av_clip_uint8( dst[j] + dc ); in rv34_idct_dc_add_c()
Dvorbis.c158 buf[x++] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; in render_line_unrolled()
160 buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; in render_line_unrolled()
165 buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; in render_line_unrolled()
175 buf[x0] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y0)]; in render_line()
191 buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; in render_line()
Dvp8dsp.c120 dst[0 * stride + i] = av_clip_uint8(dst[0 * stride + i] + in vp7_idct_add_c()
122 dst[3 * stride + i] = av_clip_uint8(dst[3 * stride + i] + in vp7_idct_add_c()
124 dst[1 * stride + i] = av_clip_uint8(dst[1 * stride + i] + in vp7_idct_add_c()
126 dst[2 * stride + i] = av_clip_uint8(dst[2 * stride + i] + in vp7_idct_add_c()
137 dst[0] = av_clip_uint8(dst[0] + dc); in vp7_idct_dc_add_c()
138 dst[1] = av_clip_uint8(dst[1] + dc); in vp7_idct_dc_add_c()
139 dst[2] = av_clip_uint8(dst[2] + dc); in vp7_idct_dc_add_c()
140 dst[3] = av_clip_uint8(dst[3] + dc); in vp7_idct_dc_add_c()
223 dst[0] = av_clip_uint8(dst[0] + ((t0 + t3 + 4) >> 3)); in vp8_idct_add_c()
224 dst[1] = av_clip_uint8(dst[1] + ((t1 + t2 + 4) >> 3)); in vp8_idct_add_c()
[all …]
Dvp6dsp.c41 t[x] = av_clip_uint8(( src[x-1] * h_weights[0] in ff_vp6_filter_diag4_c()
53 dst[x] = av_clip_uint8(( t[x-8 ] * v_weights[0] in ff_vp6_filter_diag4_c()
Dindeo2.c101 t = av_clip_uint8(t); in ir2_decode_plane()
105 t = av_clip_uint8(t); in ir2_decode_plane()
139 t = av_clip_uint8(t); in ir2_decode_plane_inter()
143 t = av_clip_uint8(t); in ir2_decode_plane_inter()
Dcavsdsp.c73 P0 = av_clip_uint8(p0+delta); in loop_filter_l1()
74 Q0 = av_clip_uint8(q0-delta); in loop_filter_l1()
77 P1 = av_clip_uint8(P1+delta); in loop_filter_l1()
81 Q1 = av_clip_uint8(Q1-delta); in loop_filter_l1()
110 P0 = av_clip_uint8(P0+delta); in loop_filter_c1()
111 Q0 = av_clip_uint8(Q0-delta); in loop_filter_c1()
254 dst[i + 0*stride] = av_clip_uint8( dst[i + 0*stride] + ((b0 + b4) >> 7)); in cavs_idct8_add_c()
255 dst[i + 1*stride] = av_clip_uint8( dst[i + 1*stride] + ((b1 + b5) >> 7)); in cavs_idct8_add_c()
256 dst[i + 2*stride] = av_clip_uint8( dst[i + 2*stride] + ((b2 + b6) >> 7)); in cavs_idct8_add_c()
257 dst[i + 3*stride] = av_clip_uint8( dst[i + 3*stride] + ((b3 + b7) >> 7)); in cavs_idct8_add_c()
[all …]
Dtruemotion2rt.c137 dst[x] = av_clip_uint8((y ? dst[x - p->linesize[0]] : 0) + diff); in truemotion2rt_decode_frame()
154 dst[x] = av_clip_uint8(dst[x] + (dst[x] - 128) / 3); in truemotion2rt_decode_frame()
163 dst[x] = av_clip_uint8((y ? dst[x - p->linesize[1]] : 128) + diff); in truemotion2rt_decode_frame()
189 dst[x] = av_clip_uint8((y ? dst[x - p->linesize[2]] : 128) + diff); in truemotion2rt_decode_frame()
Dvp56dsp.c39 yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \
40 yuv[0] = av_clip_uint8(yuv[0] - v); \
Dmss2dsp.c53 dst[k] = av_clip_uint8(y + ( 91881 * v + 32768 >> 16)); in mss2_blit_wmv9_template()
54 dst[k + 1] = av_clip_uint8(y + (-22554 * u - 46802 * v + 32768 >> 16)); in mss2_blit_wmv9_template()
55 dst[k + 2] = av_clip_uint8(y + (116130 * u + 32768 >> 16)); in mss2_blit_wmv9_template()
Dbit_depth_template.c98 # define av_clip_pixel(a) av_clip_uint8(a)
99 # define CLIP(a) av_clip_uint8(a)
/third_party/ffmpeg/libavfilter/
Dvf_despill.c79 dst[x * 4 + ro] = av_clip_uint8(red * 255); in do_despill_slice()
80 dst[x * 4 + go] = av_clip_uint8(green * 255); in do_despill_slice()
81 dst[x * 4 + bo] = av_clip_uint8(blue * 255); in do_despill_slice()
84 dst[x * 4 + ao] = av_clip_uint8(spillmap * 255); in do_despill_slice()
Dvf_colortemperature.c132 gptr[x] = av_clip_uint8(ng); in temperature_slice8()
133 bptr[x] = av_clip_uint8(nb); in temperature_slice8()
134 rptr[x] = av_clip_uint8(nr); in temperature_slice8()
215 ptr[x * step + goffset] = av_clip_uint8(ng); in temperature_slice8p()
216 ptr[x * step + boffset] = av_clip_uint8(nb); in temperature_slice8p()
217 ptr[x * step + roffset] = av_clip_uint8(nr); in temperature_slice8p()
Dvf_vignette.c246 dstp[0] = av_clip_uint8(srcp[0] * f + get_dither_value(s)); in filter_frame()
247 dstp[1] = av_clip_uint8(srcp[1] * f + get_dither_value(s)); in filter_frame()
248 dstp[2] = av_clip_uint8(srcp[2] * f + get_dither_value(s)); in filter_frame()
276 … if (chroma) *dstp++ = av_clip_uint8(fmap[x << hsub] * (*srcp++ - 127) + 127 + dv); in filter_frame()
277 … else *dstp++ = av_clip_uint8(fmap[x ] * *srcp++ + dv); in filter_frame()
Dvf_vibrance.c98 gptr[x] = av_clip_uint8(g * 255.f); in vibrance_slice8()
99 bptr[x] = av_clip_uint8(b * 255.f); in vibrance_slice8()
100 rptr[x] = av_clip_uint8(r * 255.f); in vibrance_slice8()
214 ptr[x * step + goffset] = av_clip_uint8(g * 255.f); in vibrance_slice8p()
215 ptr[x * step + boffset] = av_clip_uint8(b * 255.f); in vibrance_slice8p()
216 ptr[x * step + roffset] = av_clip_uint8(r * 255.f); in vibrance_slice8p()
Dvf_colorcontrast.c131 gptr[x] = av_clip_uint8(ng); in colorcontrast_slice8()
132 bptr[x] = av_clip_uint8(nb); in colorcontrast_slice8()
133 rptr[x] = av_clip_uint8(nr); in colorcontrast_slice8()
237 ptr[x * step + goffset] = av_clip_uint8(ng); in colorcontrast_slice8p()
238 ptr[x * step + boffset] = av_clip_uint8(nb); in colorcontrast_slice8p()
239 ptr[x * step + roffset] = av_clip_uint8(nr); in colorcontrast_slice8p()
Dvf_colorcorrect.c80 yptr[x] = av_clip_uint8( ny * max); in colorcorrect_slice8()
81 uptr[x] = av_clip_uint8((nu + 0.5f) * max); in colorcorrect_slice8()
82 vptr[x] = av_clip_uint8((nv + 0.5f) * max); in colorcorrect_slice8()
/third_party/ffmpeg/libswscale/
Doutput.c393 dest[i]= av_clip_uint8(val>>19); in yuv2planeX_8_c()
403 dest[i]= av_clip_uint8(val); in yuv2plane1_8_c()
425 dest[2*i]= av_clip_uint8(u>>19); in yuv2nv12cX_c()
426 dest[2*i+1]= av_clip_uint8(v>>19); in yuv2nv12cX_c()
438 dest[2*i]= av_clip_uint8(v>>19); in yuv2nv12cX_c()
439 dest[2*i+1]= av_clip_uint8(u>>19); in yuv2nv12cX_c()
571 Y1 = av_clip_uint8(Y1); in yuv2mono_X_c_template()
572 Y2 = av_clip_uint8(Y2); in yuv2mono_X_c_template()
794 Y1 = av_clip_uint8(Y1); in yuv2422_X_c_template()
795 Y2 = av_clip_uint8(Y2); in yuv2422_X_c_template()
[all …]

12345