av_clip_uint8 76 libavcodec/8svx.c val = av_clip_uint8(val + table[d & 0xF]); av_clip_uint8 78 libavcodec/8svx.c val = av_clip_uint8(val + table[d >> 4]); av_clip_uint8 273 libavcodec/aaccoder.c int qnrg = av_clip_uint8(log2f(sqrtf(qnrgf/qcnt))*4 - 31 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 159 libavcodec/aacenc_utils.h return av_clip_uint8(log2f(coef)*4 - 69 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 165 libavcodec/aacenc_utils.h return av_clip_uint8(log2f(coef)*4 + 6 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 98 libavcodec/bit_depth_template.c # define av_clip_pixel(a) av_clip_uint8(a) av_clip_uint8 99 libavcodec/bit_depth_template.c # define CLIP(a) av_clip_uint8(a) av_clip_uint8 73 libavcodec/cavsdsp.c P0 = av_clip_uint8(p0+delta); av_clip_uint8 74 libavcodec/cavsdsp.c Q0 = av_clip_uint8(q0-delta); av_clip_uint8 77 libavcodec/cavsdsp.c P1 = av_clip_uint8(P1+delta); av_clip_uint8 81 libavcodec/cavsdsp.c Q1 = av_clip_uint8(Q1-delta); av_clip_uint8 110 libavcodec/cavsdsp.c P0 = av_clip_uint8(P0+delta); av_clip_uint8 111 libavcodec/cavsdsp.c Q0 = av_clip_uint8(Q0-delta); av_clip_uint8 254 libavcodec/cavsdsp.c dst[i + 0*stride] = av_clip_uint8( dst[i + 0*stride] + ((b0 + b4) >> 7)); av_clip_uint8 255 libavcodec/cavsdsp.c dst[i + 1*stride] = av_clip_uint8( dst[i + 1*stride] + ((b1 + b5) >> 7)); av_clip_uint8 256 libavcodec/cavsdsp.c dst[i + 2*stride] = av_clip_uint8( dst[i + 2*stride] + ((b2 + b6) >> 7)); av_clip_uint8 257 libavcodec/cavsdsp.c dst[i + 3*stride] = av_clip_uint8( dst[i + 3*stride] + ((b3 + b7) >> 7)); av_clip_uint8 258 libavcodec/cavsdsp.c dst[i + 4*stride] = av_clip_uint8( dst[i + 4*stride] + ((b3 - b7) >> 7)); av_clip_uint8 259 libavcodec/cavsdsp.c dst[i + 5*stride] = av_clip_uint8( dst[i + 5*stride] + ((b2 - b6) >> 7)); av_clip_uint8 260 libavcodec/cavsdsp.c dst[i + 6*stride] = av_clip_uint8( dst[i + 6*stride] + ((b1 - b5) >> 7)); av_clip_uint8 261 libavcodec/cavsdsp.c dst[i + 7*stride] = av_clip_uint8( dst[i + 7*stride] + ((b0 - b4) >> 7)); av_clip_uint8 121 libavcodec/cinepak.c *p++ = av_clip_uint8(r); av_clip_uint8 122 libavcodec/cinepak.c *p++ = av_clip_uint8(g); av_clip_uint8 123 libavcodec/cinepak.c *p++ = av_clip_uint8(b); av_clip_uint8 286 libavcodec/clearvideo.c dptr[i] = av_clip_uint8(val); av_clip_uint8 544 libavcodec/dds.c src[0] = av_clip_uint8(y + co - cg); av_clip_uint8 545 libavcodec/dds.c src[1] = av_clip_uint8(y + cg); av_clip_uint8 546 libavcodec/dds.c src[2] = av_clip_uint8(y - co - cg); av_clip_uint8 37 libavcodec/diracdsp.c dstv[x] = av_clip_uint8(FILTER(src+x, stride)); av_clip_uint8 40 libavcodec/diracdsp.c dstc[x] = av_clip_uint8(FILTER(dstv+x, 1)); av_clip_uint8 43 libavcodec/diracdsp.c dsth[x] = av_clip_uint8(FILTER(src+x, 1)); av_clip_uint8 85 libavcodec/diracdsp.c #define op_scale1(x) block[x] = av_clip_uint8( (block[x]*weight + (1<<(log2_denom-1))) >> log2_denom) av_clip_uint8 143 libavcodec/diracdsp.c dst[x ] = av_clip_uint8(src[x ] + 128); av_clip_uint8 144 libavcodec/diracdsp.c dst[x+1] = av_clip_uint8(src[x+1] + 128); av_clip_uint8 145 libavcodec/diracdsp.c dst[x+2] = av_clip_uint8(src[x+2] + 128); av_clip_uint8 146 libavcodec/diracdsp.c dst[x+3] = av_clip_uint8(src[x+3] + 128); av_clip_uint8 183 libavcodec/diracdsp.c dst[x ] = av_clip_uint8(((src[x ]+32)>>6) + idwt[x ]); av_clip_uint8 184 libavcodec/diracdsp.c dst[x+1] = av_clip_uint8(((src[x+1]+32)>>6) + idwt[x+1]); av_clip_uint8 346 libavcodec/dpcm.c s->sample[0] = av_clip_uint8(s->sample[0]); av_clip_uint8 350 libavcodec/dpcm.c s->sample[stereo] = av_clip_uint8(s->sample[stereo]); av_clip_uint8 278 libavcodec/dvdec.c p[j] = av_clip_uint8(block[j]); av_clip_uint8 63 libavcodec/eaidct.c #define MUNGE_8BIT(x) av_clip_uint8((x)>>4) av_clip_uint8 89 libavcodec/eamad.c dst[j*dst_stride + i] = av_clip_uint8(src[j*src_stride + i] + add); av_clip_uint8 128 libavcodec/eatgq.c int level = av_clip_uint8((dc*s->qtable[0] + 2056) >> 4); av_clip_uint8 106 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(((int)dest[0*stride + i]) + lrintf(os07 + od07)); av_clip_uint8 107 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(((int)dest[7*stride + i]) + lrintf(os07 - od07)); av_clip_uint8 108 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(((int)dest[1*stride + i]) + lrintf(os16 + od16)); av_clip_uint8 109 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(((int)dest[6*stride + i]) + lrintf(os16 - od16)); av_clip_uint8 110 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(((int)dest[2*stride + i]) + lrintf(os25 + od25)); av_clip_uint8 111 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(((int)dest[5*stride + i]) + lrintf(os25 - od25)); av_clip_uint8 112 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(((int)dest[3*stride + i]) + lrintf(os34 - od34)); av_clip_uint8 113 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(((int)dest[4*stride + i]) + lrintf(os34 + od34)); av_clip_uint8 115 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(lrintf(os07 + od07)); av_clip_uint8 116 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(lrintf(os07 - od07)); av_clip_uint8 117 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(lrintf(os16 + od16)); av_clip_uint8 118 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(lrintf(os16 - od16)); av_clip_uint8 119 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(lrintf(os25 + od25)); av_clip_uint8 120 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(lrintf(os25 - od25)); av_clip_uint8 121 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(lrintf(os34 - od34)); av_clip_uint8 122 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(lrintf(os34 + od34)); av_clip_uint8 854 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip_uint8 865 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip_uint8 132 libavcodec/fic.c dst[i] = av_clip_uint8(ptr[i]); av_clip_uint8 282 libavcodec/g2meet.c out[ridx] = av_clip_uint8(Y + (91881 * V + 32768 >> 16)); av_clip_uint8 283 libavcodec/g2meet.c out[1] = av_clip_uint8(Y + (-22554 * U - 46802 * V + 32768 >> 16)); av_clip_uint8 284 libavcodec/g2meet.c out[2 - ridx] = av_clip_uint8(Y + (116130 * U + 32768 >> 16)); av_clip_uint8 122 libavcodec/hq_hqadsp.c dst[j] = av_clip_uint8(block[j + i * 8]); av_clip_uint8 90 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 91 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 92 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(block[2]); av_clip_uint8 93 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(block[3]); av_clip_uint8 94 libavcodec/idctdsp.c pixels[4] = av_clip_uint8(block[4]); av_clip_uint8 95 libavcodec/idctdsp.c pixels[5] = av_clip_uint8(block[5]); av_clip_uint8 96 libavcodec/idctdsp.c pixels[6] = av_clip_uint8(block[6]); av_clip_uint8 97 libavcodec/idctdsp.c pixels[7] = av_clip_uint8(block[7]); av_clip_uint8 111 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 112 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 113 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(block[2]); av_clip_uint8 114 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(block[3]); av_clip_uint8 128 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 129 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 164 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 165 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 166 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(pixels[2] + block[2]); av_clip_uint8 167 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(pixels[3] + block[3]); av_clip_uint8 168 libavcodec/idctdsp.c pixels[4] = av_clip_uint8(pixels[4] + block[4]); av_clip_uint8 169 libavcodec/idctdsp.c pixels[5] = av_clip_uint8(pixels[5] + block[5]); av_clip_uint8 170 libavcodec/idctdsp.c pixels[6] = av_clip_uint8(pixels[6] + block[6]); av_clip_uint8 171 libavcodec/idctdsp.c pixels[7] = av_clip_uint8(pixels[7] + block[7]); av_clip_uint8 184 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 185 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 186 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(pixels[2] + block[2]); av_clip_uint8 187 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(pixels[3] + block[3]); av_clip_uint8 200 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 201 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 231 libavcodec/idctdsp.c dest[0] = av_clip_uint8((block[0] + 4)>>3); av_clip_uint8 235 libavcodec/idctdsp.c dest[0] = av_clip_uint8(dest[0] + ((block[0] + 4)>>3)); av_clip_uint8 100 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 104 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 138 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 142 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 655 libavcodec/intrax8.c dsp_x8_put_solidcolor(av_clip_uint8((dc_level * dc_quant + 4) >> 3), av_clip_uint8 929 libavcodec/ivi.c dst[x] = av_clip_uint8(src[x] + 128); av_clip_uint8 173 libavcodec/ivi_dsp.c dst[x] = av_clip_uint8((p0 >> 6) + 128); av_clip_uint8 174 libavcodec/ivi_dsp.c dst[x+1] = av_clip_uint8((p1 >> 6) + 128); av_clip_uint8 175 libavcodec/ivi_dsp.c dst[dst_pitch+x] = av_clip_uint8((p2 >> 6) + 128); av_clip_uint8 176 libavcodec/ivi_dsp.c dst[dst_pitch+x+1] = av_clip_uint8((p3 >> 6) + 128); av_clip_uint8 221 libavcodec/ivi_dsp.c dst[x] = av_clip_uint8(p0 + 128); av_clip_uint8 222 libavcodec/ivi_dsp.c dst[x + 1] = av_clip_uint8(p1 + 128); av_clip_uint8 223 libavcodec/ivi_dsp.c dst[dst_pitch + x] = av_clip_uint8(p2 + 128); av_clip_uint8 224 libavcodec/ivi_dsp.c dst[dst_pitch + x + 1] = av_clip_uint8(p3 + 128); av_clip_uint8 503 libavcodec/jpeglsdec.c src[x+0] = av_clip_uint8(r); av_clip_uint8 504 libavcodec/jpeglsdec.c src[x+1] = av_clip_uint8(g); av_clip_uint8 505 libavcodec/jpeglsdec.c src[x+2] = av_clip_uint8(b); av_clip_uint8 1392 libavcodec/mips/vc1dsp_mmi.c src[-1] = av_clip_uint8(b - d2); av_clip_uint8 1393 libavcodec/mips/vc1dsp_mmi.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 1445 libavcodec/mips/vc1dsp_mmi.c src[-stride] = av_clip_uint8(b - d2); av_clip_uint8 1446 libavcodec/mips/vc1dsp_mmi.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 1517 libavcodec/mips/vc1dsp_mmi.c src[-1 * stride] = av_clip_uint8(src[-1 * stride] - d); av_clip_uint8 1518 libavcodec/mips/vc1dsp_mmi.c src[ 0 * stride] = av_clip_uint8(src[ 0 * stride] + d); av_clip_uint8 194 libavcodec/mips/vp3dsp_idct_mmi.c temp_value[i] = av_clip_uint8(128 + ((46341 * input[i << 3] + (8 << 16)) >> 20)); av_clip_uint8 1284 libavcodec/mips/vp8dsp_mmi.c dst[0] = av_clip_uint8(dst[0] + ((t0 + t3 + 4) >> 3)); av_clip_uint8 1285 libavcodec/mips/vp8dsp_mmi.c dst[1] = av_clip_uint8(dst[1] + ((t1 + t2 + 4) >> 3)); av_clip_uint8 1286 libavcodec/mips/vp8dsp_mmi.c dst[2] = av_clip_uint8(dst[2] + ((t1 - t2 + 4) >> 3)); av_clip_uint8 1287 libavcodec/mips/vp8dsp_mmi.c dst[3] = av_clip_uint8(dst[3] + ((t0 - t3 + 4) >> 3)); av_clip_uint8 1342 libavcodec/mips/vp8dsp_mmi.c dst[0] = av_clip_uint8(dst[0] + dc); av_clip_uint8 1343 libavcodec/mips/vp8dsp_mmi.c dst[1] = av_clip_uint8(dst[1] + dc); av_clip_uint8 1344 libavcodec/mips/vp8dsp_mmi.c dst[2] = av_clip_uint8(dst[2] + dc); av_clip_uint8 1345 libavcodec/mips/vp8dsp_mmi.c dst[3] = av_clip_uint8(dst[3] + dc); av_clip_uint8 3830 libavcodec/mpegvideo_enc.c s->chroma_intra_matrix[j] = av_clip_uint8((chroma_matrix[i] * s->qscale) >> 3); av_clip_uint8 3831 libavcodec/mpegvideo_enc.c s-> intra_matrix[j] = av_clip_uint8(( luma_matrix[i] * s->qscale) >> 3); av_clip_uint8 53 libavcodec/mss2dsp.c dst[k] = av_clip_uint8(y + ( 91881 * v + 32768 >> 16)); av_clip_uint8 54 libavcodec/mss2dsp.c dst[k + 1] = av_clip_uint8(y + (-22554 * u - 46802 * v + 32768 >> 16)); av_clip_uint8 55 libavcodec/mss2dsp.c dst[k + 2] = av_clip_uint8(y + (116130 * u + 32768 >> 16)); av_clip_uint8 619 libavcodec/mss3.c dst[i * 2] = av_clip_uint8(t1 - t2); av_clip_uint8 620 libavcodec/mss3.c dst[i * 2 + stride] = av_clip_uint8(t1 + t2); av_clip_uint8 621 libavcodec/mss3.c dst[i * 2 + 1] = av_clip_uint8(t3 - t4); av_clip_uint8 622 libavcodec/mss3.c dst[i * 2 + 1 + stride] = av_clip_uint8(t3 + t4); av_clip_uint8 110 libavcodec/mss34dsp.c dst[i] = av_clip_uint8(ptr[i] + 128); av_clip_uint8 160 libavcodec/mv30.c dst[j] = av_clip_uint8((block[j] >> 5) + 128); av_clip_uint8 192 libavcodec/mv30.c dst[j] = av_clip_uint8((block[j] >> 5) + src[j]); av_clip_uint8 237 libavcodec/mv30.c dst[j] = av_clip_uint8((block[0] >> 5) + 128); av_clip_uint8 241 libavcodec/mv30.c dst[j] = av_clip_uint8((block[j] >> 5) + 128); av_clip_uint8 269 libavcodec/mv30.c dst[j] = av_clip_uint8((block[0] >> 5) + src[j]); av_clip_uint8 273 libavcodec/mv30.c dst[j] = av_clip_uint8((block[j] >> 5) + src[j]); av_clip_uint8 287 libavcodec/mv30.c dst[j] = av_clip_uint8(block + src[j]); av_clip_uint8 70 libavcodec/rv34dsp.c dst[0] = av_clip_uint8( dst[0] + ( (z0 + z3) >> 10 ) ); av_clip_uint8 71 libavcodec/rv34dsp.c dst[1] = av_clip_uint8( dst[1] + ( (z1 + z2) >> 10 ) ); av_clip_uint8 72 libavcodec/rv34dsp.c dst[2] = av_clip_uint8( dst[2] + ( (z1 - z2) >> 10 ) ); av_clip_uint8 73 libavcodec/rv34dsp.c dst[3] = av_clip_uint8( dst[3] + ( (z0 - z3) >> 10 ) ); av_clip_uint8 112 libavcodec/rv34dsp.c dst[j] = av_clip_uint8( dst[j] + dc ); av_clip_uint8 1437 libavcodec/sanm.c tmp[j] = av_clip_uint8((t * 129 + ctx->delta_pal[i * 3 + j]) >> 7); av_clip_uint8 747 libavcodec/shorten.c *samples_u8++ = av_clip_uint8(s->decoded[chan][i]); av_clip_uint8 82 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c0 + c1) >> C_SHIFT); av_clip_uint8 84 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c2 + c3) >> C_SHIFT); av_clip_uint8 86 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c2 - c3) >> C_SHIFT); av_clip_uint8 88 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c0 - c1) >> C_SHIFT); av_clip_uint8 161 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >> C_SHIFT)); av_clip_uint8 163 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >> C_SHIFT)); av_clip_uint8 165 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >> C_SHIFT)); av_clip_uint8 167 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >> C_SHIFT)); av_clip_uint8 568 libavcodec/snowenc.c return av_clip_uint8( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa) ); //FIXME we should not need clipping av_clip_uint8 292 libavcodec/svq3.c dst[i + stride * 0] = av_clip_uint8(dst[i + stride * 0] + ((int)((z0 + z3) * qmul + rr) >> 20)); av_clip_uint8 293 libavcodec/svq3.c dst[i + stride * 1] = av_clip_uint8(dst[i + stride * 1] + ((int)((z1 + z2) * qmul + rr) >> 20)); av_clip_uint8 294 libavcodec/svq3.c dst[i + stride * 2] = av_clip_uint8(dst[i + stride * 2] + ((int)((z1 - z2) * qmul + rr) >> 20)); av_clip_uint8 295 libavcodec/svq3.c dst[i + stride * 3] = av_clip_uint8(dst[i + stride * 3] + ((int)((z0 - z3) * qmul + rr) >> 20)); av_clip_uint8 316 libavcodec/tdsc.c out[0] = av_clip_uint8(Y + ( 91881 * V + 32768 >> 16)); av_clip_uint8 317 libavcodec/tdsc.c out[1] = av_clip_uint8(Y + (-22554 * U - 46802 * V + 32768 >> 16)); av_clip_uint8 318 libavcodec/tdsc.c out[2] = av_clip_uint8(Y + (116130 * U + 32768 >> 16)); av_clip_uint8 360 libavcodec/texturedsp.c src[0] = av_clip_uint8(y + co - cg); av_clip_uint8 361 libavcodec/texturedsp.c src[1] = av_clip_uint8(y + cg); av_clip_uint8 362 libavcodec/texturedsp.c src[2] = av_clip_uint8(y - co - cg); av_clip_uint8 586 libavcodec/texturedspenc.c dst[0] = av_clip_uint8(128 + ((r - b + 1) >> 1)); /* Co */ av_clip_uint8 587 libavcodec/texturedspenc.c dst[1] = av_clip_uint8(128 + g - t); /* Cg */ av_clip_uint8 589 libavcodec/texturedspenc.c dst[3] = av_clip_uint8(g + t); /* Y */ av_clip_uint8 476 libavcodec/truemotion2.c Y[i] = av_clip_uint8(last[i]); av_clip_uint8 841 libavcodec/truemotion2.c dst[3*i+0] = av_clip_uint8(y + v); av_clip_uint8 842 libavcodec/truemotion2.c dst[3*i+1] = av_clip_uint8(y); av_clip_uint8 843 libavcodec/truemotion2.c dst[3*i+2] = av_clip_uint8(y + u); av_clip_uint8 137 libavcodec/truemotion2rt.c dst[x] = av_clip_uint8((y ? dst[x - p->linesize[0]] : 0) + diff); av_clip_uint8 154 libavcodec/truemotion2rt.c dst[x] = av_clip_uint8(dst[x] + (dst[x] - 128) / 3); av_clip_uint8 163 libavcodec/truemotion2rt.c dst[x] = av_clip_uint8((y ? dst[x - p->linesize[1]] : 128) + diff); av_clip_uint8 189 libavcodec/truemotion2rt.c dst[x] = av_clip_uint8((y ? dst[x - p->linesize[2]] : 128) + diff); av_clip_uint8 586 libavcodec/vc1.c luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \ av_clip_uint8 587 libavcodec/vc1.c lutuv[i] = av_clip_uint8((scale * (iu - 128) + 128*64 + 32) >> 6);\ av_clip_uint8 52 libavcodec/vc1dsp.c src[-stride] = av_clip_uint8(b - d2); av_clip_uint8 53 libavcodec/vc1dsp.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 76 libavcodec/vc1dsp.c src[-1] = av_clip_uint8(b - d2); av_clip_uint8 77 libavcodec/vc1dsp.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 177 libavcodec/vc1dsp.c src[-1 * stride] = av_clip_uint8(src[-1 * stride] - d); av_clip_uint8 178 libavcodec/vc1dsp.c src[ 0 * stride] = av_clip_uint8(src[ 0 * stride] + d); av_clip_uint8 253 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 254 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 255 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 256 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 257 libavcodec/vc1dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 258 libavcodec/vc1dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 259 libavcodec/vc1dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 260 libavcodec/vc1dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 344 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 345 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 346 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 347 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 348 libavcodec/vc1dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 349 libavcodec/vc1dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 350 libavcodec/vc1dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 351 libavcodec/vc1dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 401 libavcodec/vc1dsp.c dest[0 * stride] = av_clip_uint8(dest[0 * stride] + ((t1 + t3) >> 7)); av_clip_uint8 402 libavcodec/vc1dsp.c dest[1 * stride] = av_clip_uint8(dest[1 * stride] + ((t2 - t4) >> 7)); av_clip_uint8 403 libavcodec/vc1dsp.c dest[2 * stride] = av_clip_uint8(dest[2 * stride] + ((t2 + t4) >> 7)); av_clip_uint8 404 libavcodec/vc1dsp.c dest[3 * stride] = av_clip_uint8(dest[3 * stride] + ((t1 - t3) >> 7)); av_clip_uint8 421 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 422 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 423 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 424 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 470 libavcodec/vc1dsp.c dest[0 * stride] = av_clip_uint8(dest[0 * stride] + ((t5 + t1) >> 7)); av_clip_uint8 471 libavcodec/vc1dsp.c dest[1 * stride] = av_clip_uint8(dest[1 * stride] + ((t6 + t2) >> 7)); av_clip_uint8 472 libavcodec/vc1dsp.c dest[2 * stride] = av_clip_uint8(dest[2 * stride] + ((t7 + t3) >> 7)); av_clip_uint8 473 libavcodec/vc1dsp.c dest[3 * stride] = av_clip_uint8(dest[3 * stride] + ((t8 + t4) >> 7)); av_clip_uint8 474 libavcodec/vc1dsp.c dest[4 * stride] = av_clip_uint8(dest[4 * stride] + ((t8 - t4 + 1) >> 7)); av_clip_uint8 475 libavcodec/vc1dsp.c dest[5 * stride] = av_clip_uint8(dest[5 * stride] + ((t7 - t3 + 1) >> 7)); av_clip_uint8 476 libavcodec/vc1dsp.c dest[6 * stride] = av_clip_uint8(dest[6 * stride] + ((t6 - t2 + 1) >> 7)); av_clip_uint8 477 libavcodec/vc1dsp.c dest[7 * stride] = av_clip_uint8(dest[7 * stride] + ((t5 - t1 + 1) >> 7)); av_clip_uint8 494 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 495 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 496 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 497 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 532 libavcodec/vc1dsp.c dest[0 * stride] = av_clip_uint8(dest[0 * stride] + ((t1 + t3) >> 7)); av_clip_uint8 533 libavcodec/vc1dsp.c dest[1 * stride] = av_clip_uint8(dest[1 * stride] + ((t2 - t4) >> 7)); av_clip_uint8 534 libavcodec/vc1dsp.c dest[2 * stride] = av_clip_uint8(dest[2 * stride] + ((t2 + t4) >> 7)); av_clip_uint8 535 libavcodec/vc1dsp.c dest[3 * stride] = av_clip_uint8(dest[3 * stride] + ((t1 - t3) >> 7)); av_clip_uint8 728 libavcodec/vc1dsp.c #define op_put(a, b) (a) = av_clip_uint8(b) av_clip_uint8 729 libavcodec/vc1dsp.c #define op_avg(a, b) (a) = ((a) + av_clip_uint8(b) + 1) >> 1 av_clip_uint8 158 libavcodec/vorbis.c buf[x++] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 160 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 165 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 175 libavcodec/vorbis.c buf[x0] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y0)]; av_clip_uint8 191 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 144 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8((Gd + Cd) >> 4); av_clip_uint8 145 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8((Gd - Cd) >> 4); av_clip_uint8 147 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8((Add + Hd) >> 4); av_clip_uint8 148 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8((Add - Hd) >> 4); av_clip_uint8 150 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8((Ed + Dd) >> 4); av_clip_uint8 151 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8((Ed - Dd) >> 4); av_clip_uint8 153 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8((Fd + Bdd) >> 4); av_clip_uint8 154 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8((Fd - Bdd) >> 4); av_clip_uint8 156 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + ((Gd + Cd) >> 4)); av_clip_uint8 157 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + ((Gd - Cd) >> 4)); av_clip_uint8 159 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + ((Add + Hd) >> 4)); av_clip_uint8 160 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + ((Add - Hd) >> 4)); av_clip_uint8 162 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + ((Ed + Dd) >> 4)); av_clip_uint8 163 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + ((Ed - Dd) >> 4)); av_clip_uint8 165 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + ((Fd + Bdd) >> 4)); av_clip_uint8 166 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + ((Fd - Bdd) >> 4)); av_clip_uint8 177 libavcodec/vp3dsp.c dst[7*stride] = av_clip_uint8(128 + ((xC4S4 * ip[0] + (IdctAdjustBeforeShift << 16)) >> 20)); av_clip_uint8 181 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + v); av_clip_uint8 182 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + v); av_clip_uint8 183 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + v); av_clip_uint8 184 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + v); av_clip_uint8 185 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + v); av_clip_uint8 186 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + v); av_clip_uint8 187 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + v); av_clip_uint8 188 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + v); av_clip_uint8 296 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8((Gd + Cd) >> 4); av_clip_uint8 297 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8((Gd - Cd) >> 4); av_clip_uint8 299 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8((Add + Hd) >> 4); av_clip_uint8 300 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8((Add - Hd) >> 4); av_clip_uint8 302 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8((Ed + Dd) >> 4); av_clip_uint8 303 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8((Ed - Dd) >> 4); av_clip_uint8 305 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8((Fd + Bdd) >> 4); av_clip_uint8 306 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8((Fd - Bdd) >> 4); av_clip_uint8 308 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + ((Gd + Cd) >> 4)); av_clip_uint8 309 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + ((Gd - Cd) >> 4)); av_clip_uint8 311 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + ((Add + Hd) >> 4)); av_clip_uint8 312 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + ((Add - Hd) >> 4)); av_clip_uint8 314 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + ((Ed + Dd) >> 4)); av_clip_uint8 315 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + ((Ed - Dd) >> 4)); av_clip_uint8 317 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + ((Fd + Bdd) >> 4)); av_clip_uint8 318 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + ((Fd - Bdd) >> 4)); av_clip_uint8 370 libavcodec/vp3dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 371 libavcodec/vp3dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 372 libavcodec/vp3dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 373 libavcodec/vp3dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 374 libavcodec/vp3dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 375 libavcodec/vp3dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 376 libavcodec/vp3dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 377 libavcodec/vp3dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 395 libavcodec/vp3dsp.c first_pixel[nstride] = av_clip_uint8(first_pixel[nstride] + filter_value); av_clip_uint8 396 libavcodec/vp3dsp.c first_pixel[0] = av_clip_uint8(first_pixel[0] - filter_value); av_clip_uint8 411 libavcodec/vp3dsp.c first_pixel[-1] = av_clip_uint8(first_pixel[-1] + filter_value); av_clip_uint8 412 libavcodec/vp3dsp.c first_pixel[ 0] = av_clip_uint8(first_pixel[ 0] - filter_value); av_clip_uint8 39 libavcodec/vp56dsp.c yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \ av_clip_uint8 40 libavcodec/vp56dsp.c yuv[0] = av_clip_uint8(yuv[0] - v); \ av_clip_uint8 570 libavcodec/vp6.c dst[x] = av_clip_uint8(( src[x-delta ] * weights[0] av_clip_uint8 41 libavcodec/vp6dsp.c t[x] = av_clip_uint8(( src[x-1] * h_weights[0] av_clip_uint8 53 libavcodec/vp6dsp.c dst[x] = av_clip_uint8(( t[x-8 ] * v_weights[0] av_clip_uint8 499 libavcodec/vp8.c dst2[i] = av_clip_uint8(y + ((y * beta) >> 8) + alpha); av_clip_uint8 120 libavcodec/vp8dsp.c dst[0 * stride + i] = av_clip_uint8(dst[0 * stride + i] + av_clip_uint8 122 libavcodec/vp8dsp.c dst[3 * stride + i] = av_clip_uint8(dst[3 * stride + i] + av_clip_uint8 124 libavcodec/vp8dsp.c dst[1 * stride + i] = av_clip_uint8(dst[1 * stride + i] + av_clip_uint8 126 libavcodec/vp8dsp.c dst[2 * stride + i] = av_clip_uint8(dst[2 * stride + i] + av_clip_uint8 137 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + dc); av_clip_uint8 138 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + dc); av_clip_uint8 139 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + dc); av_clip_uint8 140 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + dc); av_clip_uint8 223 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + ((t0 + t3 + 4) >> 3)); av_clip_uint8 224 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + ((t1 + t2 + 4) >> 3)); av_clip_uint8 225 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + ((t1 - t2 + 4) >> 3)); av_clip_uint8 226 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + ((t0 - t3 + 4) >> 3)); av_clip_uint8 237 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + dc); av_clip_uint8 238 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + dc); av_clip_uint8 239 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + dc); av_clip_uint8 240 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + dc); av_clip_uint8 901 libavcodec/webp.c p[0] = av_clip_uint8(p_l[0] + p_t[0] - p_tl[0]); av_clip_uint8 902 libavcodec/webp.c p[1] = av_clip_uint8(p_l[1] + p_t[1] - p_tl[1]); av_clip_uint8 903 libavcodec/webp.c p[2] = av_clip_uint8(p_l[2] + p_t[2] - p_tl[2]); av_clip_uint8 904 libavcodec/webp.c p[3] = av_clip_uint8(p_l[3] + p_t[3] - p_tl[3]); av_clip_uint8 910 libavcodec/webp.c return av_clip_uint8(d + (d - c) / 2); av_clip_uint8 1268 libavcodec/webp.c dec[0] += av_clip_uint8(*(dec - 1) + *(dec - ls) - *(dec - ls - 1)); av_clip_uint8 106 libavcodec/wmv2dsp.c dest[0] = av_clip_uint8(dest[0] + block[0]); av_clip_uint8 107 libavcodec/wmv2dsp.c dest[1] = av_clip_uint8(dest[1] + block[1]); av_clip_uint8 108 libavcodec/wmv2dsp.c dest[2] = av_clip_uint8(dest[2] + block[2]); av_clip_uint8 109 libavcodec/wmv2dsp.c dest[3] = av_clip_uint8(dest[3] + block[3]); av_clip_uint8 110 libavcodec/wmv2dsp.c dest[4] = av_clip_uint8(dest[4] + block[4]); av_clip_uint8 111 libavcodec/wmv2dsp.c dest[5] = av_clip_uint8(dest[5] + block[5]); av_clip_uint8 112 libavcodec/wmv2dsp.c dest[6] = av_clip_uint8(dest[6] + block[6]); av_clip_uint8 113 libavcodec/wmv2dsp.c dest[7] = av_clip_uint8(dest[7] + block[7]); av_clip_uint8 129 libavcodec/wmv2dsp.c dest[0] = av_clip_uint8(block[0]); av_clip_uint8 130 libavcodec/wmv2dsp.c dest[1] = av_clip_uint8(block[1]); av_clip_uint8 131 libavcodec/wmv2dsp.c dest[2] = av_clip_uint8(block[2]); av_clip_uint8 132 libavcodec/wmv2dsp.c dest[3] = av_clip_uint8(block[3]); av_clip_uint8 133 libavcodec/wmv2dsp.c dest[4] = av_clip_uint8(block[4]); av_clip_uint8 134 libavcodec/wmv2dsp.c dest[5] = av_clip_uint8(block[5]); av_clip_uint8 135 libavcodec/wmv2dsp.c dest[6] = av_clip_uint8(block[6]); av_clip_uint8 136 libavcodec/wmv2dsp.c dest[7] = av_clip_uint8(block[7]); av_clip_uint8 122 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 125 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 128 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 131 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 139 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 142 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 152 libavcodec/ws-snd1.c sample = av_clip_uint8(sample); av_clip_uint8 185 libavfilter/af_volume.c dst[i] = av_clip_uint8(((((int64_t)src[i] - 128) * volume + 128) >> 8) + 128); av_clip_uint8 193 libavfilter/af_volume.c dst[i] = av_clip_uint8((((src[i] - 128) * volume + 128) >> 8) + 128); av_clip_uint8 858 libavfilter/avf_showspectrum.c memset(s->outpicref->data[0]+(s->start_y + h * (ch + 1) - y - 1) * s->outpicref->linesize[0] + s->w + s->start_x + 20, av_clip_uint8(out[0]), 10); av_clip_uint8 859 libavfilter/avf_showspectrum.c memset(s->outpicref->data[1]+(s->start_y + h * (ch + 1) - y - 1) * s->outpicref->linesize[1] + s->w + s->start_x + 20, av_clip_uint8(out[1]), 10); av_clip_uint8 860 libavfilter/avf_showspectrum.c memset(s->outpicref->data[2]+(s->start_y + h * (ch + 1) - y - 1) * s->outpicref->linesize[2] + s->w + s->start_x + 20, av_clip_uint8(out[2]), 10); av_clip_uint8 48 libavfilter/colorspacedsp_template.c #define av_clip_pixel(x) av_clip_uint8(x) av_clip_uint8 153 libavfilter/vf_amplify.c dst[x] = av_clip_uint8(src + amp); av_clip_uint8 297 libavfilter/vf_blend.c DEFINE_BLEND8(grainmerge, av_clip_uint8(A + B - 128)) av_clip_uint8 301 libavfilter/vf_blend.c DEFINE_BLEND8(multiply128,av_clip_uint8((A - 128) * B / 32. + 128)) av_clip_uint8 305 libavfilter/vf_blend.c DEFINE_BLEND8(grainextract, av_clip_uint8(128 + A - B)) av_clip_uint8 314 libavfilter/vf_blend.c DEFINE_BLEND8(divide, av_clip_uint8(B == 0 ? 255 : 255 * A / B)) av_clip_uint8 327 libavfilter/vf_blend.c DEFINE_BLEND8(linearlight,av_clip_uint8((B < 128) ? B + 2 * A - 255 : B + 2 * (A - 128))) av_clip_uint8 667 libavfilter/vf_bm3d.c dstp[j] = av_clip_uint8(lrintf(sum_num / sum_den)); av_clip_uint8 105 libavfilter/vf_cas.c dst[x] = av_clip_uint8(((b + d + f + h) * weight + e) / (1.f + 4.f * weight)); av_clip_uint8 191 libavfilter/vf_colorbalance.c dstr[j] = av_clip_uint8(r * max); av_clip_uint8 192 libavfilter/vf_colorbalance.c dstg[j] = av_clip_uint8(g * max); av_clip_uint8 193 libavfilter/vf_colorbalance.c dstb[j] = av_clip_uint8(b * max); av_clip_uint8 302 libavfilter/vf_colorbalance.c dst[j + roffset] = av_clip_uint8(r * max); av_clip_uint8 303 libavfilter/vf_colorbalance.c dst[j + goffset] = av_clip_uint8(g * max); av_clip_uint8 304 libavfilter/vf_colorbalance.c dst[j + boffset] = av_clip_uint8(b * max); av_clip_uint8 130 libavfilter/vf_colorchannelmixer.c dstr[j] = av_clip_uint8(s->lut[R][R][rin] + av_clip_uint8 134 libavfilter/vf_colorchannelmixer.c dstg[j] = av_clip_uint8(s->lut[G][R][rin] + av_clip_uint8 138 libavfilter/vf_colorchannelmixer.c dstb[j] = av_clip_uint8(s->lut[B][R][rin] + av_clip_uint8 143 libavfilter/vf_colorchannelmixer.c dsta[j] = av_clip_uint8(s->lut[A][R][rin] + av_clip_uint8 299 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + av_clip_uint8 303 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + av_clip_uint8 307 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + av_clip_uint8 312 libavfilter/vf_colorchannelmixer.c dst[j + aoffset] = av_clip_uint8(s->lut[A][R][rin] + av_clip_uint8 612 libavfilter/vf_colorconstancy.c dst[i] = av_clip_uint8((int)(temp + 0.5)); av_clip_uint8 149 libavfilter/vf_colorlevels.c dst[x + offset] = av_clip_uint8((src[x + offset] - imin) * coeff + omin); av_clip_uint8 41 libavfilter/vf_colormatrix.c #define CB(n) av_clip_uint8(n) av_clip_uint8 178 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sqrtf(suma*suma + sumb*sumb) * scale + delta); av_clip_uint8 193 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sqrtf(suma*suma + sumb*sumb) * scale + delta); av_clip_uint8 213 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sqrtf(suma*suma + sumb*sumb) * scale + delta); av_clip_uint8 331 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sum); av_clip_uint8 349 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sum); av_clip_uint8 368 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sum); av_clip_uint8 386 libavfilter/vf_convolution.c dst[x] = av_clip_uint8(sum); av_clip_uint8 404 libavfilter/vf_convolution.c dst[0] = av_clip_uint8(sum); av_clip_uint8 341 libavfilter/vf_convolve.c dst[x] = av_clip_uint8(input[y * n + x].re * scale); av_clip_uint8 346 libavfilter/vf_convolve.c dst[x] = av_clip_uint8(input[y * n + n - hw + x].re * scale); av_clip_uint8 351 libavfilter/vf_convolve.c dst[x] = av_clip_uint8(input[(n - hh + y) * n + x].re * scale); av_clip_uint8 356 libavfilter/vf_convolve.c dst[x] = av_clip_uint8(input[(n - hh + y) * n + n - hw + x].re * scale); av_clip_uint8 215 libavfilter/vf_curves.c #define CLIP(v) (nbits == 8 ? av_clip_uint8(v) : av_clip_uintp2_c(v, nbits)) av_clip_uint8 448 libavfilter/vf_dctdnoiz.c dstp[r] = av_clip_uint8(src_r[x] * DCT3X3_0_0 + src_g[x] * DCT3X3_1_0 + src_b[x] * DCT3X3_2_0); av_clip_uint8 449 libavfilter/vf_dctdnoiz.c dstp[g] = av_clip_uint8(src_r[x] * DCT3X3_0_1 + src_b[x] * DCT3X3_2_1); av_clip_uint8 450 libavfilter/vf_dctdnoiz.c dstp[b] = av_clip_uint8(src_r[x] * DCT3X3_0_2 + src_g[x] * DCT3X3_1_2 + src_b[x] * DCT3X3_2_2); av_clip_uint8 519 libavfilter/vf_dctdnoiz.c dstp_r[x] = av_clip_uint8(src_r[x] * DCT3X3_0_0 + src_g[x] * DCT3X3_1_0 + src_b[x] * DCT3X3_2_0); av_clip_uint8 520 libavfilter/vf_dctdnoiz.c dstp_g[x] = av_clip_uint8(src_r[x] * DCT3X3_0_1 + src_b[x] * DCT3X3_2_1); av_clip_uint8 521 libavfilter/vf_dctdnoiz.c dstp_b[x] = av_clip_uint8(src_r[x] * DCT3X3_0_2 + src_g[x] * DCT3X3_1_2 + src_b[x] * DCT3X3_2_2); av_clip_uint8 133 libavfilter/vf_deflicker.c dst[x] = av_clip_uint8(src[x] * f); av_clip_uint8 79 libavfilter/vf_despill.c dst[x * 4 + ro] = av_clip_uint8(red * 255); av_clip_uint8 80 libavfilter/vf_despill.c dst[x * 4 + go] = av_clip_uint8(green * 255); av_clip_uint8 81 libavfilter/vf_despill.c dst[x * 4 + bo] = av_clip_uint8(blue * 255); av_clip_uint8 84 libavfilter/vf_despill.c dst[x * 4 + ao] = av_clip_uint8(spillmap * 255); av_clip_uint8 266 libavfilter/vf_edgedetect.c dst[i] = av_clip_uint8(src[i]); \ av_clip_uint8 199 libavfilter/vf_fade.c #define INTERP(c_name, c_idx) av_clip_uint8(((c[c_idx]<<16) + ((int)p[c_name] - (int)c[c_idx]) * s->factor + (1<<15)) >> 16) av_clip_uint8 223 libavfilter/vf_fade.c #define INTERPP(c_name, c_idx) av_clip_uint8(((c[c_idx]<<16) + ((int)c_name - (int)c[c_idx]) * s->factor + (1<<15)) >> 16) av_clip_uint8 164 libavfilter/vf_fftdnoiz.c dst[j] = av_clip_uint8(src[j].re * scale + 0.5f); av_clip_uint8 67 libavfilter/vf_gradfun.c dst[x] = av_clip_uint8(pix >> 7); av_clip_uint8 239 libavfilter/vf_histeq.c oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8); av_clip_uint8 121 libavfilter/vf_hue.c h->lut_l[i] = av_clip_uint8(i + b * 25.5); av_clip_uint8 153 libavfilter/vf_hue.c h->lut_u[i][j] = av_clip_uint8(new_u); av_clip_uint8 154 libavfilter/vf_hue.c h->lut_v[i][j] = av_clip_uint8(new_v); av_clip_uint8 117 libavfilter/vf_lumakey.c s->white = av_clip_uint8((s->threshold + s->tolerance) * 255); av_clip_uint8 118 libavfilter/vf_lumakey.c s->black = av_clip_uint8((s->threshold - s->tolerance) * 255); av_clip_uint8 210 libavfilter/vf_midequalizer.c dst[x] = av_clip_uint8(cchange[in0[x]]); av_clip_uint8 159 libavfilter/vf_mix.c dst[x] = av_clip_uint8(val * s->wfactor); av_clip_uint8 422 libavfilter/vf_nlmeans.c dst[x] = av_clip_uint8(wa[x].sum / wa[x].total_weight + 0.5f); av_clip_uint8 174 libavfilter/vf_noise.c dst[i] = av_clip_uint8(v); av_clip_uint8 163 libavfilter/vf_paletteuse.c return av_clip_uint8( px >> 24 ) << 24 av_clip_uint8 164 libavfilter/vf_paletteuse.c | av_clip_uint8((px >> 16 & 0xff) + ((er * scale) / (1<<shift))) << 16 av_clip_uint8 165 libavfilter/vf_paletteuse.c | av_clip_uint8((px >> 8 & 0xff) + ((eg * scale) / (1<<shift))) << 8 av_clip_uint8 166 libavfilter/vf_paletteuse.c | av_clip_uint8((px & 0xff) + ((eb * scale) / (1<<shift))); av_clip_uint8 418 libavfilter/vf_paletteuse.c const uint8_t r = av_clip_uint8(r8 + d); av_clip_uint8 419 libavfilter/vf_paletteuse.c const uint8_t g = av_clip_uint8(g8 + d); av_clip_uint8 420 libavfilter/vf_paletteuse.c const uint8_t b = av_clip_uint8(b8 + d); av_clip_uint8 354 libavfilter/vf_perspective.c sum = av_clip_uint8(sum); av_clip_uint8 429 libavfilter/vf_perspective.c sum = av_clip_uint8(sum); av_clip_uint8 323 libavfilter/vf_stereo3d.c return av_clip_uint8(sum >> 16); av_clip_uint8 158 libavfilter/vf_tinterlace.c dstp[i] = av_clip_uint8((4 + ((srcp[i] + src_x + src_ab) << 1) av_clip_uint8 125 libavfilter/vf_unsharp.c *dsx = av_clip_uint8(res); av_clip_uint8 522 libavfilter/vf_vaguedenoiser.c dstp8[x] = av_clip_uint8(input[x] + 0.5f); av_clip_uint8 785 libavfilter/vf_vectorscope.c dpx[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[0]); av_clip_uint8 786 libavfilter/vf_vectorscope.c dpy[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[1]); av_clip_uint8 91 libavfilter/vf_vibrance.c gptr[x] = av_clip_uint8(g * 255.f); av_clip_uint8 92 libavfilter/vf_vibrance.c bptr[x] = av_clip_uint8(b * 255.f); av_clip_uint8 93 libavfilter/vf_vibrance.c rptr[x] = av_clip_uint8(r * 255.f); av_clip_uint8 249 libavfilter/vf_vignette.c dstp[0] = av_clip_uint8(srcp[0] * f + get_dither_value(s)); av_clip_uint8 250 libavfilter/vf_vignette.c dstp[1] = av_clip_uint8(srcp[1] * f + get_dither_value(s)); av_clip_uint8 251 libavfilter/vf_vignette.c dstp[2] = av_clip_uint8(srcp[2] * f + get_dither_value(s)); av_clip_uint8 279 libavfilter/vf_vignette.c if (chroma) *dstp++ = av_clip_uint8(fmap[x << hsub] * (*srcp++ - 127) + 127 + dv); av_clip_uint8 280 libavfilter/vf_vignette.c else *dstp++ = av_clip_uint8(fmap[x ] * *srcp++ + dv); av_clip_uint8 129 libavfilter/vsrc_mptestsrc.c dst[dst_linesize*i + j] = av_clip_uint8(lrint(sum)); av_clip_uint8 2263 libavformat/mov.c b = av_clip_uint8((1164 * (y - 16) + 2018 * (cb - 128)) / 1000); av_clip_uint8 2264 libavformat/mov.c g = av_clip_uint8((1164 * (y - 16) - 813 * (cr - 128) - 391 * (cb - 128)) / 1000); av_clip_uint8 2265 libavformat/mov.c r = av_clip_uint8((1164 * (y - 16) + 1596 * (cr - 128) ) / 1000); av_clip_uint8 6191 libavformat/movenc.c y = av_clip_uint8(( 16000 + 257 * r + 504 * g + 98 * b)/1000); av_clip_uint8 6192 libavformat/movenc.c cb = av_clip_uint8((128000 - 148 * r - 291 * g + 439 * b)/1000); av_clip_uint8 6193 libavformat/movenc.c cr = av_clip_uint8((128000 + 439 * r - 368 * g - 71 * b)/1000); av_clip_uint8 207 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) av_clip_uint8 212 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8( lrint(*(const double *)pi * (1 << 7)) + 0x80)) av_clip_uint8 54 libavresample/tests/avresample.c PUT_FUNC(u8, AV_SAMPLE_FMT_U8, uint8_t, av_clip_uint8 ( lrint(v_dbl * (1 << 7)) + 128)) av_clip_uint8 552 libavutil/common.h #ifndef av_clip_uint8 av_clip_uint8 502 libpostproc/postprocess.c src[3*step]= av_clip_uint8(src[3*step] - d); av_clip_uint8 503 libpostproc/postprocess.c src[4*step]= av_clip_uint8(src[4*step] + d); av_clip_uint8 1574 libpostproc/postprocess_template.c src[stride*3] = av_clip_uint8((-src[0] + 9*src[stride*2] + 9*src[stride*4] - src[stride*6])>>4); av_clip_uint8 1575 libpostproc/postprocess_template.c src[stride*5] = av_clip_uint8((-src[stride*2] + 9*src[stride*4] + 9*src[stride*6] - src[stride*8])>>4); av_clip_uint8 1576 libpostproc/postprocess_template.c src[stride*7] = av_clip_uint8((-src[stride*4] + 9*src[stride*6] + 9*src[stride*8] - src[stride*10])>>4); av_clip_uint8 1577 libpostproc/postprocess_template.c src[stride*9] = av_clip_uint8((-src[stride*6] + 9*src[stride*8] + 9*src[stride*10] - src[stride*12])>>4); av_clip_uint8 1648 libpostproc/postprocess_template.c src[stride*1]= av_clip_uint8((-t1 + 4*src[stride*0] + 2*t2 + 4*src[stride*2] - src[stride*3] + 4)>>3); av_clip_uint8 1650 libpostproc/postprocess_template.c src[stride*3]= av_clip_uint8((-t2 + 4*src[stride*2] + 2*t1 + 4*src[stride*4] - src[stride*5] + 4)>>3); av_clip_uint8 1652 libpostproc/postprocess_template.c src[stride*5]= av_clip_uint8((-t1 + 4*src[stride*4] + 2*t2 + 4*src[stride*6] - src[stride*7] + 4)>>3); av_clip_uint8 1654 libpostproc/postprocess_template.c src[stride*7]= av_clip_uint8((-t2 + 4*src[stride*6] + 2*t1 + 4*src[stride*8] - src[stride*9] + 4)>>3); av_clip_uint8 1739 libpostproc/postprocess_template.c src[stride*0]= av_clip_uint8((-(t1 + src[stride*2]) + 2*(t2 + src[stride*1]) + 6*t3 + 4)>>3); av_clip_uint8 1741 libpostproc/postprocess_template.c src[stride*1]= av_clip_uint8((-(t2 + src[stride*3]) + 2*(t3 + src[stride*2]) + 6*t1 + 4)>>3); av_clip_uint8 1743 libpostproc/postprocess_template.c src[stride*2]= av_clip_uint8((-(t3 + src[stride*4]) + 2*(t1 + src[stride*3]) + 6*t2 + 4)>>3); av_clip_uint8 1745 libpostproc/postprocess_template.c src[stride*3]= av_clip_uint8((-(t1 + src[stride*5]) + 2*(t2 + src[stride*4]) + 6*t3 + 4)>>3); av_clip_uint8 1747 libpostproc/postprocess_template.c src[stride*4]= av_clip_uint8((-(t2 + src[stride*6]) + 2*(t3 + src[stride*5]) + 6*t1 + 4)>>3); av_clip_uint8 1749 libpostproc/postprocess_template.c src[stride*5]= av_clip_uint8((-(t3 + src[stride*7]) + 2*(t1 + src[stride*6]) + 6*t2 + 4)>>3); av_clip_uint8 1751 libpostproc/postprocess_template.c src[stride*6]= av_clip_uint8((-(t1 + src[stride*8]) + 2*(t2 + src[stride*7]) + 6*t3 + 4)>>3); av_clip_uint8 1753 libpostproc/postprocess_template.c src[stride*7]= av_clip_uint8((-(t2 + src[stride*9]) + 2*(t3 + src[stride*8]) + 6*t1 + 4)>>3); av_clip_uint8 78 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) av_clip_uint8 84 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_DBL, av_clip_uint8( lrint(*(const double*)pi * (1<<7)) + 0x80)) av_clip_uint8 69 libswresample/tests/swresample.c case AV_SAMPLE_FMT_U8 : ((uint8_t*)p)[index]= av_clip_uint8 (lrint((v+1.0)*127)); break; av_clip_uint8 391 libswscale/output.c dest[i]= av_clip_uint8(val>>19); av_clip_uint8 401 libswscale/output.c dest[i]= av_clip_uint8(val); av_clip_uint8 424 libswscale/output.c dest[2*i]= av_clip_uint8(u>>19); av_clip_uint8 425 libswscale/output.c dest[2*i+1]= av_clip_uint8(v>>19); av_clip_uint8 437 libswscale/output.c dest[2*i]= av_clip_uint8(v>>19); av_clip_uint8 438 libswscale/output.c dest[2*i+1]= av_clip_uint8(u>>19); av_clip_uint8 569 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 570 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 792 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 793 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 794 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 795 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 824 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 825 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 826 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 827 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 851 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 852 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 853 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 854 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 868 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 869 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 870 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 871 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 1678 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1679 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1723 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1724 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1756 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1757 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1778 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1779 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 2022 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2066 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2103 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2120 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2404 libswscale/output.c Y = av_clip_uint8(Y); av_clip_uint8 2409 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2436 libswscale/output.c Y = av_clip_uint8(Y); av_clip_uint8 2440 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 2467 libswscale/output.c Y = av_clip_uint8(Y); av_clip_uint8 2476 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 77 libswscale/ppc/swscale_ppc_template.c dest[i] = av_clip_uint8(t >> 19); av_clip_uint8 96 libswscale/ppc/swscale_vsx.c dest[i] = av_clip_uint8(val); av_clip_uint8 877 libswscale/swscale.c y = av_clip_uint8((RY * r + GY * g + BY * b + ( 33 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 878 libswscale/swscale.c u = av_clip_uint8((RU * r + GU * g + BU * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 879 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 1655 libswscale/swscale_unscaled.c dstPtr[x] = av_clip_uint8(lrintf(255.0f * srcPtr[x])); av_clip_uint8 746 libswscale/yuv2rgb.c int64_t cb = av_clip_uint8(i-YUVRGB_TABLE_HEADROOM)*inc; av_clip_uint8 757 libswscale/yuv2rgb.c int64_t cb = av_clip_uint8(i-YUVRGB_TABLE_HEADROOM)*inc; av_clip_uint8 864 libswscale/yuv2rgb.c y_table[i + 110] = av_clip_uint8((yb + 0x8000) >> 16) >> 7; av_clip_uint8 879 libswscale/yuv2rgb.c int yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 898 libswscale/yuv2rgb.c int yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 917 libswscale/yuv2rgb.c uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 940 libswscale/yuv2rgb.c uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 960 libswscale/yuv2rgb.c y_table[i] = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 982 libswscale/yuv2rgb.c unsigned yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 328 tests/checkasm/vp8dsp.c #define setpx(a, b, c) buf[(a) + (b) * jstride] = av_clip_uint8(c) av_clip_uint8 382 tests/checkasm/vp9dsp.c buf0[(a) + (b) * jstride] = av_clip_uint8(c); \