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 538 libavcodec/aaccoder.c return av_clip_uint8(log2f(coef)*4 - 69 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 543 libavcodec/aaccoder.c return av_clip_uint8(log2f(coef)*4 + 6 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 592 libavcodec/aaccoder.c int qnrg = av_clip_uint8(log2f(sqrtf(qnrgf/qcnt))*4 - 31 + SCALE_ONE_POS - SCALE_DIV_512); av_clip_uint8 986 libavcodec/aaccoder.c scf = av_clip_uint8(scf); av_clip_uint8 105 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) av_clip_uint8 110 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_DBL, av_clip_uint8( lrint(*(const double*)pi * (1<<7)) + 0x80)) av_clip_uint8 86 libavcodec/bit_depth_template.c # define av_clip_pixel(a) av_clip_uint8(a) av_clip_uint8 87 libavcodec/bit_depth_template.c # define CLIP(a) av_clip_uint8(a) av_clip_uint8 71 libavcodec/cavsdsp.c P0 = av_clip_uint8(p0+delta); av_clip_uint8 72 libavcodec/cavsdsp.c Q0 = av_clip_uint8(q0-delta); av_clip_uint8 75 libavcodec/cavsdsp.c P1 = av_clip_uint8(P1+delta); av_clip_uint8 79 libavcodec/cavsdsp.c Q1 = av_clip_uint8(Q1-delta); av_clip_uint8 106 libavcodec/cavsdsp.c P0 = av_clip_uint8(P0+delta); av_clip_uint8 107 libavcodec/cavsdsp.c Q0 = av_clip_uint8(Q0-delta); 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 38 libavcodec/diracdsp.c dstv[x] = av_clip_uint8(FILTER(src+x, stride)); av_clip_uint8 41 libavcodec/diracdsp.c dstc[x] = av_clip_uint8(FILTER(dstv+x, 1)); av_clip_uint8 44 libavcodec/diracdsp.c dsth[x] = av_clip_uint8(FILTER(src+x, 1)); av_clip_uint8 86 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 161 libavcodec/diracdsp.c dst[x ] = av_clip_uint8(((src[x ]+32)>>6) + idwt[x ]); av_clip_uint8 162 libavcodec/diracdsp.c dst[x+1] = av_clip_uint8(((src[x+1]+32)>>6) + idwt[x+1]); av_clip_uint8 302 libavcodec/dpcm.c s->sample[0] = av_clip_uint8(s->sample[0]); av_clip_uint8 306 libavcodec/dpcm.c s->sample[stereo] = av_clip_uint8(s->sample[stereo]); 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 113 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(((int)dest[0*stride + i]) + lrintf(os07 + od07)); av_clip_uint8 114 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(((int)dest[7*stride + i]) + lrintf(os07 - od07)); av_clip_uint8 115 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(((int)dest[1*stride + i]) + lrintf(os16 + od16)); av_clip_uint8 116 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(((int)dest[6*stride + i]) + lrintf(os16 - od16)); av_clip_uint8 117 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(((int)dest[2*stride + i]) + lrintf(os25 + od25)); av_clip_uint8 118 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(((int)dest[5*stride + i]) + lrintf(os25 - od25)); av_clip_uint8 119 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(((int)dest[3*stride + i]) + lrintf(os34 - od34)); av_clip_uint8 120 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(((int)dest[4*stride + i]) + lrintf(os34 + od34)); av_clip_uint8 122 libavcodec/faanidct.c dest[0*stride + i]= av_clip_uint8(lrintf(os07 + od07)); av_clip_uint8 123 libavcodec/faanidct.c dest[7*stride + i]= av_clip_uint8(lrintf(os07 - od07)); av_clip_uint8 124 libavcodec/faanidct.c dest[1*stride + i]= av_clip_uint8(lrintf(os16 + od16)); av_clip_uint8 125 libavcodec/faanidct.c dest[6*stride + i]= av_clip_uint8(lrintf(os16 - od16)); av_clip_uint8 126 libavcodec/faanidct.c dest[2*stride + i]= av_clip_uint8(lrintf(os25 + od25)); av_clip_uint8 127 libavcodec/faanidct.c dest[5*stride + i]= av_clip_uint8(lrintf(os25 - od25)); av_clip_uint8 128 libavcodec/faanidct.c dest[3*stride + i]= av_clip_uint8(lrintf(os34 - od34)); av_clip_uint8 129 libavcodec/faanidct.c dest[4*stride + i]= av_clip_uint8(lrintf(os34 + od34)); av_clip_uint8 927 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip_uint8 938 libavcodec/ffv1enc.c best_state[av_clip(round(p), 1, 255)][av_clip_uint8((a + b) / gob_count)]; av_clip_uint8 127 libavcodec/fic.c dst[i] = av_clip_uint8(ptr[i]); av_clip_uint8 232 libavcodec/g2meet.c out[0] = av_clip_uint8(Y + ( 91881 * V + 32768 >> 16)); av_clip_uint8 233 libavcodec/g2meet.c out[1] = av_clip_uint8(Y + (-22554 * U - 46802 * V + 32768 >> 16)); av_clip_uint8 234 libavcodec/g2meet.c out[2] = av_clip_uint8(Y + (116130 * U + 32768 >> 16)); av_clip_uint8 93 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 94 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 95 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(block[2]); av_clip_uint8 96 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(block[3]); av_clip_uint8 97 libavcodec/idctdsp.c pixels[4] = av_clip_uint8(block[4]); av_clip_uint8 98 libavcodec/idctdsp.c pixels[5] = av_clip_uint8(block[5]); av_clip_uint8 99 libavcodec/idctdsp.c pixels[6] = av_clip_uint8(block[6]); av_clip_uint8 100 libavcodec/idctdsp.c pixels[7] = av_clip_uint8(block[7]); av_clip_uint8 114 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 115 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 116 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(block[2]); av_clip_uint8 117 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(block[3]); av_clip_uint8 131 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(block[0]); av_clip_uint8 132 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(block[1]); av_clip_uint8 167 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 168 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 169 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(pixels[2] + block[2]); av_clip_uint8 170 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(pixels[3] + block[3]); av_clip_uint8 171 libavcodec/idctdsp.c pixels[4] = av_clip_uint8(pixels[4] + block[4]); av_clip_uint8 172 libavcodec/idctdsp.c pixels[5] = av_clip_uint8(pixels[5] + block[5]); av_clip_uint8 173 libavcodec/idctdsp.c pixels[6] = av_clip_uint8(pixels[6] + block[6]); av_clip_uint8 174 libavcodec/idctdsp.c pixels[7] = av_clip_uint8(pixels[7] + block[7]); av_clip_uint8 187 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 188 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 189 libavcodec/idctdsp.c pixels[2] = av_clip_uint8(pixels[2] + block[2]); av_clip_uint8 190 libavcodec/idctdsp.c pixels[3] = av_clip_uint8(pixels[3] + block[3]); av_clip_uint8 203 libavcodec/idctdsp.c pixels[0] = av_clip_uint8(pixels[0] + block[0]); av_clip_uint8 204 libavcodec/idctdsp.c pixels[1] = av_clip_uint8(pixels[1] + block[1]); av_clip_uint8 234 libavcodec/idctdsp.c dest[0] = av_clip_uint8((block[0] + 4)>>3); av_clip_uint8 238 libavcodec/idctdsp.c dest[0] = av_clip_uint8(dest[0] + ((block[0] + 4)>>3)); av_clip_uint8 91 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 95 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 125 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 129 libavcodec/indeo2.c t = av_clip_uint8(t); av_clip_uint8 615 libavcodec/intrax8.c dsp_x8_put_solidcolor( av_clip_uint8((dc_level*dc_quant+4)>>3), av_clip_uint8 915 libavcodec/ivi_common.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 458 libavcodec/jpeglsdec.c src[x+0] = av_clip_uint8(r); av_clip_uint8 459 libavcodec/jpeglsdec.c src[x+1] = av_clip_uint8(g); av_clip_uint8 460 libavcodec/jpeglsdec.c src[x+2] = av_clip_uint8(b); av_clip_uint8 3648 libavcodec/mpegvideo_enc.c s->chroma_intra_matrix[j] = av_clip_uint8((chroma_matrix[i] * s->qscale) >> 3); av_clip_uint8 3649 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 613 libavcodec/mss3.c dst[i * 2] = av_clip_uint8(t1 - t2); av_clip_uint8 614 libavcodec/mss3.c dst[i * 2 + stride] = av_clip_uint8(t1 + t2); av_clip_uint8 615 libavcodec/mss3.c dst[i * 2 + 1] = av_clip_uint8(t3 - t4); av_clip_uint8 616 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 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 619 libavcodec/shorten.c *samples_u8++ = av_clip_uint8(s->decoded[chan][i]); av_clip_uint8 68 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c0 + c1) >> C_SHIFT); av_clip_uint8 70 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c2 + c3) >> C_SHIFT); av_clip_uint8 72 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c2 - c3) >> C_SHIFT); av_clip_uint8 74 libavcodec/simple_idct.c dest[0] = av_clip_uint8((c0 - c1) >> C_SHIFT); av_clip_uint8 147 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c0 + c1) >> C_SHIFT)); av_clip_uint8 149 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c2 + c3) >> C_SHIFT)); av_clip_uint8 151 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c2 - c3) >> C_SHIFT)); av_clip_uint8 153 libavcodec/simple_idct.c dest[0] = av_clip_uint8(dest[0] + ((c0 - c1) >> C_SHIFT)); av_clip_uint8 551 libavcodec/snowenc.c return av_clip_uint8( ROUNDED_DIV(ab<<LOG2_OBMC_MAX, aa) ); //FIXME we should not need clipping av_clip_uint8 233 libavcodec/svq3.c dst[i + stride * 0] = av_clip_uint8(dst[i + stride * 0] + ((z0 + z3) * qmul + rr >> 20)); av_clip_uint8 234 libavcodec/svq3.c dst[i + stride * 1] = av_clip_uint8(dst[i + stride * 1] + ((z1 + z2) * qmul + rr >> 20)); av_clip_uint8 235 libavcodec/svq3.c dst[i + stride * 2] = av_clip_uint8(dst[i + stride * 2] + ((z1 - z2) * qmul + rr >> 20)); av_clip_uint8 236 libavcodec/svq3.c dst[i + stride * 3] = av_clip_uint8(dst[i + stride * 3] + ((z0 - z3) * qmul + rr >> 20)); av_clip_uint8 452 libavcodec/truemotion2.c Y[i] = av_clip_uint8(last[i]); av_clip_uint8 814 libavcodec/truemotion2.c dst[3*i+0] = av_clip_uint8(y + v); av_clip_uint8 815 libavcodec/truemotion2.c dst[3*i+1] = av_clip_uint8(y); av_clip_uint8 816 libavcodec/truemotion2.c dst[3*i+2] = av_clip_uint8(y + u); av_clip_uint8 588 libavcodec/vc1.c luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \ av_clip_uint8 589 libavcodec/vc1.c lutuv[i] = av_clip_uint8((scale * (iu - 128) + 128*64 + 32) >> 6);\ av_clip_uint8 53 libavcodec/vc1dsp.c src[-stride] = av_clip_uint8(b - d2); av_clip_uint8 54 libavcodec/vc1dsp.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 77 libavcodec/vc1dsp.c src[-1] = av_clip_uint8(b - d2); av_clip_uint8 78 libavcodec/vc1dsp.c src[0] = av_clip_uint8(c + d2); av_clip_uint8 175 libavcodec/vc1dsp.c src[-1 * stride] = av_clip_uint8(src[-1 * stride] - d); av_clip_uint8 176 libavcodec/vc1dsp.c src[ 0 * stride] = av_clip_uint8(src[ 0 * stride] + d); av_clip_uint8 251 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 252 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 253 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 254 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 255 libavcodec/vc1dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 256 libavcodec/vc1dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 257 libavcodec/vc1dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 258 libavcodec/vc1dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 342 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 343 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 344 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 345 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 346 libavcodec/vc1dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 347 libavcodec/vc1dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 348 libavcodec/vc1dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 349 libavcodec/vc1dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 399 libavcodec/vc1dsp.c dest[0 * linesize] = av_clip_uint8(dest[0 * linesize] + ((t1 + t3) >> 7)); av_clip_uint8 400 libavcodec/vc1dsp.c dest[1 * linesize] = av_clip_uint8(dest[1 * linesize] + ((t2 - t4) >> 7)); av_clip_uint8 401 libavcodec/vc1dsp.c dest[2 * linesize] = av_clip_uint8(dest[2 * linesize] + ((t2 + t4) >> 7)); av_clip_uint8 402 libavcodec/vc1dsp.c dest[3 * linesize] = av_clip_uint8(dest[3 * linesize] + ((t1 - t3) >> 7)); av_clip_uint8 419 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 420 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 421 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 422 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 468 libavcodec/vc1dsp.c dest[0 * linesize] = av_clip_uint8(dest[0 * linesize] + ((t5 + t1) >> 7)); av_clip_uint8 469 libavcodec/vc1dsp.c dest[1 * linesize] = av_clip_uint8(dest[1 * linesize] + ((t6 + t2) >> 7)); av_clip_uint8 470 libavcodec/vc1dsp.c dest[2 * linesize] = av_clip_uint8(dest[2 * linesize] + ((t7 + t3) >> 7)); av_clip_uint8 471 libavcodec/vc1dsp.c dest[3 * linesize] = av_clip_uint8(dest[3 * linesize] + ((t8 + t4) >> 7)); av_clip_uint8 472 libavcodec/vc1dsp.c dest[4 * linesize] = av_clip_uint8(dest[4 * linesize] + ((t8 - t4 + 1) >> 7)); av_clip_uint8 473 libavcodec/vc1dsp.c dest[5 * linesize] = av_clip_uint8(dest[5 * linesize] + ((t7 - t3 + 1) >> 7)); av_clip_uint8 474 libavcodec/vc1dsp.c dest[6 * linesize] = av_clip_uint8(dest[6 * linesize] + ((t6 - t2 + 1) >> 7)); av_clip_uint8 475 libavcodec/vc1dsp.c dest[7 * linesize] = av_clip_uint8(dest[7 * linesize] + ((t5 - t1 + 1) >> 7)); av_clip_uint8 492 libavcodec/vc1dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 493 libavcodec/vc1dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 494 libavcodec/vc1dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 495 libavcodec/vc1dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 530 libavcodec/vc1dsp.c dest[0 * linesize] = av_clip_uint8(dest[0 * linesize] + ((t1 + t3) >> 7)); av_clip_uint8 531 libavcodec/vc1dsp.c dest[1 * linesize] = av_clip_uint8(dest[1 * linesize] + ((t2 - t4) >> 7)); av_clip_uint8 532 libavcodec/vc1dsp.c dest[2 * linesize] = av_clip_uint8(dest[2 * linesize] + ((t2 + t4) >> 7)); av_clip_uint8 533 libavcodec/vc1dsp.c dest[3 * linesize] = av_clip_uint8(dest[3 * linesize] + ((t1 - t3) >> 7)); av_clip_uint8 726 libavcodec/vc1dsp.c #define op_put(a, b) (a) = av_clip_uint8(b) av_clip_uint8 727 libavcodec/vc1dsp.c #define op_avg(a, b) (a) = ((a) + av_clip_uint8(b) + 1) >> 1 av_clip_uint8 181 libavcodec/vorbis.c buf[x++] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 183 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 188 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 198 libavcodec/vorbis.c buf[x0] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y0)]; av_clip_uint8 214 libavcodec/vorbis.c buf[x] = ff_vorbis_floor1_inverse_db_table[av_clip_uint8(y)]; av_clip_uint8 143 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8((Gd + Cd) >> 4); av_clip_uint8 144 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8((Gd - Cd) >> 4); av_clip_uint8 146 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8((Add + Hd) >> 4); av_clip_uint8 147 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8((Add - Hd) >> 4); av_clip_uint8 149 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8((Ed + Dd) >> 4); av_clip_uint8 150 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8((Ed - Dd) >> 4); av_clip_uint8 152 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8((Fd + Bdd) >> 4); av_clip_uint8 153 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8((Fd - Bdd) >> 4); av_clip_uint8 155 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + ((Gd + Cd) >> 4)); av_clip_uint8 156 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + ((Gd - Cd) >> 4)); av_clip_uint8 158 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + ((Add + Hd) >> 4)); av_clip_uint8 159 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + ((Add - Hd) >> 4)); av_clip_uint8 161 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + ((Ed + Dd) >> 4)); av_clip_uint8 162 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + ((Ed - Dd) >> 4)); av_clip_uint8 164 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + ((Fd + Bdd) >> 4)); av_clip_uint8 165 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + ((Fd - Bdd) >> 4)); av_clip_uint8 176 libavcodec/vp3dsp.c dst[7*stride] = av_clip_uint8(128 + ((xC4S4 * ip[0] + (IdctAdjustBeforeShift << 16)) >> 20)); av_clip_uint8 180 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + v); av_clip_uint8 181 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + v); av_clip_uint8 182 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + v); av_clip_uint8 183 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + v); av_clip_uint8 184 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + v); av_clip_uint8 185 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + v); av_clip_uint8 186 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + v); av_clip_uint8 187 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + v); av_clip_uint8 217 libavcodec/vp3dsp.c dest[0] = av_clip_uint8(dest[0] + dc); av_clip_uint8 218 libavcodec/vp3dsp.c dest[1] = av_clip_uint8(dest[1] + dc); av_clip_uint8 219 libavcodec/vp3dsp.c dest[2] = av_clip_uint8(dest[2] + dc); av_clip_uint8 220 libavcodec/vp3dsp.c dest[3] = av_clip_uint8(dest[3] + dc); av_clip_uint8 221 libavcodec/vp3dsp.c dest[4] = av_clip_uint8(dest[4] + dc); av_clip_uint8 222 libavcodec/vp3dsp.c dest[5] = av_clip_uint8(dest[5] + dc); av_clip_uint8 223 libavcodec/vp3dsp.c dest[6] = av_clip_uint8(dest[6] + dc); av_clip_uint8 224 libavcodec/vp3dsp.c dest[7] = av_clip_uint8(dest[7] + dc); av_clip_uint8 242 libavcodec/vp3dsp.c first_pixel[nstride] = av_clip_uint8(first_pixel[nstride] + filter_value); av_clip_uint8 243 libavcodec/vp3dsp.c first_pixel[0] = av_clip_uint8(first_pixel[0] - filter_value); av_clip_uint8 258 libavcodec/vp3dsp.c first_pixel[-1] = av_clip_uint8(first_pixel[-1] + filter_value); av_clip_uint8 259 libavcodec/vp3dsp.c first_pixel[ 0] = av_clip_uint8(first_pixel[ 0] - filter_value); av_clip_uint8 69 libavcodec/vp56dsp.c yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \ av_clip_uint8 70 libavcodec/vp56dsp.c yuv[0] = av_clip_uint8(yuv[0] - v); \ av_clip_uint8 539 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 445 libavcodec/vp8.c dst[j * dst_linesize + i] = av_clip_uint8(y + ((y * beta) >> 8) + alpha); av_clip_uint8 118 libavcodec/vp8dsp.c dst[0 * stride + i] = av_clip_uint8(dst[0 * stride + i] + av_clip_uint8 120 libavcodec/vp8dsp.c dst[3 * stride + i] = av_clip_uint8(dst[3 * stride + i] + av_clip_uint8 122 libavcodec/vp8dsp.c dst[1 * stride + i] = av_clip_uint8(dst[1 * stride + i] + av_clip_uint8 124 libavcodec/vp8dsp.c dst[2 * stride + i] = av_clip_uint8(dst[2 * stride + i] + av_clip_uint8 135 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + dc); av_clip_uint8 136 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + dc); av_clip_uint8 137 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + dc); av_clip_uint8 138 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + dc); av_clip_uint8 221 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + ((t0 + t3 + 4) >> 3)); av_clip_uint8 222 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + ((t1 + t2 + 4) >> 3)); av_clip_uint8 223 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + ((t1 - t2 + 4) >> 3)); av_clip_uint8 224 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + ((t0 - t3 + 4) >> 3)); av_clip_uint8 235 libavcodec/vp8dsp.c dst[0] = av_clip_uint8(dst[0] + dc); av_clip_uint8 236 libavcodec/vp8dsp.c dst[1] = av_clip_uint8(dst[1] + dc); av_clip_uint8 237 libavcodec/vp8dsp.c dst[2] = av_clip_uint8(dst[2] + dc); av_clip_uint8 238 libavcodec/vp8dsp.c dst[3] = av_clip_uint8(dst[3] + dc); av_clip_uint8 142 libavcodec/vp9dsp.c dst[0] = av_clip_uint8(top[0] + l_m_tl); av_clip_uint8 143 libavcodec/vp9dsp.c dst[1] = av_clip_uint8(top[1] + l_m_tl); av_clip_uint8 144 libavcodec/vp9dsp.c dst[2] = av_clip_uint8(top[2] + l_m_tl); av_clip_uint8 145 libavcodec/vp9dsp.c dst[3] = av_clip_uint8(top[3] + l_m_tl); av_clip_uint8 158 libavcodec/vp9dsp.c dst[0] = av_clip_uint8(top[0] + l_m_tl); av_clip_uint8 159 libavcodec/vp9dsp.c dst[1] = av_clip_uint8(top[1] + l_m_tl); av_clip_uint8 160 libavcodec/vp9dsp.c dst[2] = av_clip_uint8(top[2] + l_m_tl); av_clip_uint8 161 libavcodec/vp9dsp.c dst[3] = av_clip_uint8(top[3] + l_m_tl); av_clip_uint8 162 libavcodec/vp9dsp.c dst[4] = av_clip_uint8(top[4] + l_m_tl); av_clip_uint8 163 libavcodec/vp9dsp.c dst[5] = av_clip_uint8(top[5] + l_m_tl); av_clip_uint8 164 libavcodec/vp9dsp.c dst[6] = av_clip_uint8(top[6] + l_m_tl); av_clip_uint8 165 libavcodec/vp9dsp.c dst[7] = av_clip_uint8(top[7] + l_m_tl); av_clip_uint8 178 libavcodec/vp9dsp.c dst[ 0] = av_clip_uint8(top[ 0] + l_m_tl); av_clip_uint8 179 libavcodec/vp9dsp.c dst[ 1] = av_clip_uint8(top[ 1] + l_m_tl); av_clip_uint8 180 libavcodec/vp9dsp.c dst[ 2] = av_clip_uint8(top[ 2] + l_m_tl); av_clip_uint8 181 libavcodec/vp9dsp.c dst[ 3] = av_clip_uint8(top[ 3] + l_m_tl); av_clip_uint8 182 libavcodec/vp9dsp.c dst[ 4] = av_clip_uint8(top[ 4] + l_m_tl); av_clip_uint8 183 libavcodec/vp9dsp.c dst[ 5] = av_clip_uint8(top[ 5] + l_m_tl); av_clip_uint8 184 libavcodec/vp9dsp.c dst[ 6] = av_clip_uint8(top[ 6] + l_m_tl); av_clip_uint8 185 libavcodec/vp9dsp.c dst[ 7] = av_clip_uint8(top[ 7] + l_m_tl); av_clip_uint8 186 libavcodec/vp9dsp.c dst[ 8] = av_clip_uint8(top[ 8] + l_m_tl); av_clip_uint8 187 libavcodec/vp9dsp.c dst[ 9] = av_clip_uint8(top[ 9] + l_m_tl); av_clip_uint8 188 libavcodec/vp9dsp.c dst[10] = av_clip_uint8(top[10] + l_m_tl); av_clip_uint8 189 libavcodec/vp9dsp.c dst[11] = av_clip_uint8(top[11] + l_m_tl); av_clip_uint8 190 libavcodec/vp9dsp.c dst[12] = av_clip_uint8(top[12] + l_m_tl); av_clip_uint8 191 libavcodec/vp9dsp.c dst[13] = av_clip_uint8(top[13] + l_m_tl); av_clip_uint8 192 libavcodec/vp9dsp.c dst[14] = av_clip_uint8(top[14] + l_m_tl); av_clip_uint8 193 libavcodec/vp9dsp.c dst[15] = av_clip_uint8(top[15] + l_m_tl); av_clip_uint8 206 libavcodec/vp9dsp.c dst[ 0] = av_clip_uint8(top[ 0] + l_m_tl); av_clip_uint8 207 libavcodec/vp9dsp.c dst[ 1] = av_clip_uint8(top[ 1] + l_m_tl); av_clip_uint8 208 libavcodec/vp9dsp.c dst[ 2] = av_clip_uint8(top[ 2] + l_m_tl); av_clip_uint8 209 libavcodec/vp9dsp.c dst[ 3] = av_clip_uint8(top[ 3] + l_m_tl); av_clip_uint8 210 libavcodec/vp9dsp.c dst[ 4] = av_clip_uint8(top[ 4] + l_m_tl); av_clip_uint8 211 libavcodec/vp9dsp.c dst[ 5] = av_clip_uint8(top[ 5] + l_m_tl); av_clip_uint8 212 libavcodec/vp9dsp.c dst[ 6] = av_clip_uint8(top[ 6] + l_m_tl); av_clip_uint8 213 libavcodec/vp9dsp.c dst[ 7] = av_clip_uint8(top[ 7] + l_m_tl); av_clip_uint8 214 libavcodec/vp9dsp.c dst[ 8] = av_clip_uint8(top[ 8] + l_m_tl); av_clip_uint8 215 libavcodec/vp9dsp.c dst[ 9] = av_clip_uint8(top[ 9] + l_m_tl); av_clip_uint8 216 libavcodec/vp9dsp.c dst[10] = av_clip_uint8(top[10] + l_m_tl); av_clip_uint8 217 libavcodec/vp9dsp.c dst[11] = av_clip_uint8(top[11] + l_m_tl); av_clip_uint8 218 libavcodec/vp9dsp.c dst[12] = av_clip_uint8(top[12] + l_m_tl); av_clip_uint8 219 libavcodec/vp9dsp.c dst[13] = av_clip_uint8(top[13] + l_m_tl); av_clip_uint8 220 libavcodec/vp9dsp.c dst[14] = av_clip_uint8(top[14] + l_m_tl); av_clip_uint8 221 libavcodec/vp9dsp.c dst[15] = av_clip_uint8(top[15] + l_m_tl); av_clip_uint8 222 libavcodec/vp9dsp.c dst[16] = av_clip_uint8(top[16] + l_m_tl); av_clip_uint8 223 libavcodec/vp9dsp.c dst[17] = av_clip_uint8(top[17] + l_m_tl); av_clip_uint8 224 libavcodec/vp9dsp.c dst[18] = av_clip_uint8(top[18] + l_m_tl); av_clip_uint8 225 libavcodec/vp9dsp.c dst[19] = av_clip_uint8(top[19] + l_m_tl); av_clip_uint8 226 libavcodec/vp9dsp.c dst[20] = av_clip_uint8(top[20] + l_m_tl); av_clip_uint8 227 libavcodec/vp9dsp.c dst[21] = av_clip_uint8(top[21] + l_m_tl); av_clip_uint8 228 libavcodec/vp9dsp.c dst[22] = av_clip_uint8(top[22] + l_m_tl); av_clip_uint8 229 libavcodec/vp9dsp.c dst[23] = av_clip_uint8(top[23] + l_m_tl); av_clip_uint8 230 libavcodec/vp9dsp.c dst[24] = av_clip_uint8(top[24] + l_m_tl); av_clip_uint8 231 libavcodec/vp9dsp.c dst[25] = av_clip_uint8(top[25] + l_m_tl); av_clip_uint8 232 libavcodec/vp9dsp.c dst[26] = av_clip_uint8(top[26] + l_m_tl); av_clip_uint8 233 libavcodec/vp9dsp.c dst[27] = av_clip_uint8(top[27] + l_m_tl); av_clip_uint8 234 libavcodec/vp9dsp.c dst[28] = av_clip_uint8(top[28] + l_m_tl); av_clip_uint8 235 libavcodec/vp9dsp.c dst[29] = av_clip_uint8(top[29] + l_m_tl); av_clip_uint8 236 libavcodec/vp9dsp.c dst[30] = av_clip_uint8(top[30] + l_m_tl); av_clip_uint8 237 libavcodec/vp9dsp.c dst[31] = av_clip_uint8(top[31] + l_m_tl); av_clip_uint8 870 libavcodec/vp9dsp.c dst[j * stride] = av_clip_uint8(dst[j * stride] + \ av_clip_uint8 885 libavcodec/vp9dsp.c dst[j * stride] = av_clip_uint8(dst[j * stride] + \ av_clip_uint8 1567 libavcodec/vp9dsp.c dst[strideb * -1] = av_clip_uint8(p0 + f2); av_clip_uint8 1568 libavcodec/vp9dsp.c dst[strideb * +0] = av_clip_uint8(q0 - f1); av_clip_uint8 1575 libavcodec/vp9dsp.c dst[strideb * -1] = av_clip_uint8(p0 + f2); av_clip_uint8 1576 libavcodec/vp9dsp.c dst[strideb * +0] = av_clip_uint8(q0 - f1); av_clip_uint8 1579 libavcodec/vp9dsp.c dst[strideb * -2] = av_clip_uint8(p1 + f); av_clip_uint8 1580 libavcodec/vp9dsp.c dst[strideb * +1] = av_clip_uint8(q1 - f); av_clip_uint8 1763 libavcodec/vp9dsp.c av_clip_uint8((F[0] * src[x + -3 * stride] + \ av_clip_uint8 900 libavcodec/webp.c p[0] = av_clip_uint8(p_l[0] + p_t[0] - p_tl[0]); av_clip_uint8 901 libavcodec/webp.c p[1] = av_clip_uint8(p_l[1] + p_t[1] - p_tl[1]); av_clip_uint8 902 libavcodec/webp.c p[2] = av_clip_uint8(p_l[2] + p_t[2] - p_tl[2]); av_clip_uint8 903 libavcodec/webp.c p[3] = av_clip_uint8(p_l[3] + p_t[3] - p_tl[3]); av_clip_uint8 909 libavcodec/webp.c return av_clip_uint8(d + (d - c) / 2); av_clip_uint8 1260 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 180 libavfilter/af_volume.c dst[i] = av_clip_uint8(((((int64_t)src[i] - 128) * volume + 128) >> 8) + 128); av_clip_uint8 188 libavfilter/af_volume.c dst[i] = av_clip_uint8((((src[i] - 128) * volume + 128) >> 8) + 128); av_clip_uint8 200 libavfilter/vf_blend.c DEFINE_BLEND(difference128, av_clip_uint8(128 + A - B)) av_clip_uint8 113 libavfilter/vf_colorbalance.c r = av_clip_uint8(r + s->cyan_red.shadows * shadows[r]); av_clip_uint8 114 libavfilter/vf_colorbalance.c r = av_clip_uint8(r + s->cyan_red.midtones * midtones[r]); av_clip_uint8 115 libavfilter/vf_colorbalance.c r = av_clip_uint8(r + s->cyan_red.highlights * highlights[r]); av_clip_uint8 117 libavfilter/vf_colorbalance.c g = av_clip_uint8(g + s->magenta_green.shadows * shadows[g]); av_clip_uint8 118 libavfilter/vf_colorbalance.c g = av_clip_uint8(g + s->magenta_green.midtones * midtones[g]); av_clip_uint8 119 libavfilter/vf_colorbalance.c g = av_clip_uint8(g + s->magenta_green.highlights * highlights[g]); av_clip_uint8 121 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.shadows * shadows[b]); av_clip_uint8 122 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.midtones * midtones[b]); av_clip_uint8 123 libavfilter/vf_colorbalance.c b = av_clip_uint8(b + s->yellow_blue.highlights * highlights[b]); av_clip_uint8 178 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + av_clip_uint8 181 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + av_clip_uint8 184 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + av_clip_uint8 206 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + av_clip_uint8 209 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + av_clip_uint8 212 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + av_clip_uint8 237 libavfilter/vf_colorchannelmixer.c dst[j + roffset] = av_clip_uint8(s->lut[R][R][rin] + av_clip_uint8 241 libavfilter/vf_colorchannelmixer.c dst[j + goffset] = av_clip_uint8(s->lut[G][R][rin] + av_clip_uint8 245 libavfilter/vf_colorchannelmixer.c dst[j + boffset] = av_clip_uint8(s->lut[B][R][rin] + av_clip_uint8 249 libavfilter/vf_colorchannelmixer.c dst[j + aoffset] = av_clip_uint8(s->lut[A][R][rin] + av_clip_uint8 168 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 450 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 451 libavfilter/vf_dctdnoiz.c dstp[g] = av_clip_uint8(src_r[x] * DCT3X3_0_1 + src_b[x] * DCT3X3_2_1); av_clip_uint8 452 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 225 libavfilter/vf_edgedetect.c dst[i] = av_clip_uint8(src[i]); \ av_clip_uint8 170 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 67 libavfilter/vf_gradfun.c dst[x] = av_clip_uint8(pix >> 7); av_clip_uint8 237 libavfilter/vf_histeq.c oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8); av_clip_uint8 118 libavfilter/vf_hue.c h->lut_l[i] = av_clip_uint8(i + b * 25.5); av_clip_uint8 147 libavfilter/vf_hue.c h->lut_u[i][j] = av_clip_uint8(new_u); av_clip_uint8 148 libavfilter/vf_hue.c h->lut_v[i][j] = av_clip_uint8(new_v); av_clip_uint8 174 libavfilter/vf_noise.c dst[i] = av_clip_uint8(v); av_clip_uint8 151 libavfilter/vf_paletteuse.c return av_clip_uint8((px >> 16 & 0xff) + ((er * scale) / (1<<shift))) << 16 av_clip_uint8 152 libavfilter/vf_paletteuse.c | av_clip_uint8((px >> 8 & 0xff) + ((eg * scale) / (1<<shift))) << 8 av_clip_uint8 153 libavfilter/vf_paletteuse.c | av_clip_uint8((px & 0xff) + ((eb * scale) / (1<<shift))); av_clip_uint8 392 libavfilter/vf_paletteuse.c const uint8_t r = av_clip_uint8(r8 + d); av_clip_uint8 393 libavfilter/vf_paletteuse.c const uint8_t g = av_clip_uint8(g8 + d); av_clip_uint8 394 libavfilter/vf_paletteuse.c const uint8_t b = av_clip_uint8(b8 + d); av_clip_uint8 323 libavfilter/vf_perspective.c sum = av_clip_uint8(sum); av_clip_uint8 398 libavfilter/vf_perspective.c sum = av_clip_uint8(sum); av_clip_uint8 483 libavfilter/vf_stereo3d.c return av_clip_uint8(sum >> 16); av_clip_uint8 95 libavfilter/vf_unsharp.c *dsx = av_clip_uint8(res); av_clip_uint8 236 libavfilter/vf_vignette.c dstp[0] = av_clip_uint8(srcp[0] * f + get_dither_value(s)); av_clip_uint8 237 libavfilter/vf_vignette.c dstp[1] = av_clip_uint8(srcp[1] * f + get_dither_value(s)); av_clip_uint8 238 libavfilter/vf_vignette.c dstp[2] = av_clip_uint8(srcp[2] * f + get_dither_value(s)); av_clip_uint8 266 libavfilter/vf_vignette.c if (chroma) *dstp++ = av_clip_uint8(fmap[x << hsub] * (*srcp++ - 127) + 127 + dv); av_clip_uint8 267 libavfilter/vf_vignette.c else *dstp++ = av_clip_uint8(fmap[x ] * *srcp++ + dv); av_clip_uint8 124 libavfilter/vsrc_mptestsrc.c dst[dst_linesize*i + j] = av_clip_uint8((int)floor(sum+0.5)); av_clip_uint8 1687 libavformat/mov.c b = av_clip_uint8(1.164 * (y - 16) + 2.018 * (cb - 128)); av_clip_uint8 1688 libavformat/mov.c g = av_clip_uint8(1.164 * (y - 16) - 0.813 * (cr - 128) - 0.391 * (cb - 128)); av_clip_uint8 1689 libavformat/mov.c r = av_clip_uint8(1.164 * (y - 16) + 1.596 * (cr - 128)); av_clip_uint8 4744 libavformat/movenc.c y = av_clip_uint8( 16. + 0.257 * r + 0.504 * g + 0.098 * b); av_clip_uint8 4745 libavformat/movenc.c cb = av_clip_uint8(128. - 0.148 * r - 0.291 * g + 0.439 * b); av_clip_uint8 4746 libavformat/movenc.c cr = av_clip_uint8(128. + 0.439 * r - 0.368 * g - 0.071 * b); 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 53 libavresample/avresample-test.c PUT_FUNC(u8, AV_SAMPLE_FMT_U8, uint8_t, av_clip_uint8 ( lrint(v_dbl * (1 << 7)) + 128)) av_clip_uint8 448 libavutil/common.h #ifndef av_clip_uint8 av_clip_uint8 535 libpostproc/postprocess.c src[3*step]= av_clip_uint8(src[3*step] - d); av_clip_uint8 536 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 69 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 74 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 68 libswresample/swresample-test.c case AV_SAMPLE_FMT_U8 : ((uint8_t*)p)[index]= av_clip_uint8 (lrint((v+1.0)*127)); break; av_clip_uint8 264 libswscale/output.c dest[i]= av_clip_uint8(val>>19); av_clip_uint8 274 libswscale/output.c dest[i]= av_clip_uint8(val); av_clip_uint8 296 libswscale/output.c dest[2*i]= av_clip_uint8(u>>19); av_clip_uint8 297 libswscale/output.c dest[2*i+1]= av_clip_uint8(v>>19); av_clip_uint8 309 libswscale/output.c dest[2*i]= av_clip_uint8(v>>19); av_clip_uint8 310 libswscale/output.c dest[2*i+1]= av_clip_uint8(u>>19); av_clip_uint8 349 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 350 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 571 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 572 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 573 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 574 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 601 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 602 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 603 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 604 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 628 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 629 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 630 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 631 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 634 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 635 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 636 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 637 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 650 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 651 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 652 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 653 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 656 libswscale/output.c Y1 = av_clip_uint8(Y1); av_clip_uint8 657 libswscale/output.c Y2 = av_clip_uint8(Y2); av_clip_uint8 658 libswscale/output.c U = av_clip_uint8(U); av_clip_uint8 659 libswscale/output.c V = av_clip_uint8(V); av_clip_uint8 1298 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1299 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1341 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1342 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1374 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1375 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1396 libswscale/output.c A1 = av_clip_uint8(A1); av_clip_uint8 1397 libswscale/output.c A2 = av_clip_uint8(A2); av_clip_uint8 1640 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 1681 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 1718 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 1735 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 1816 libswscale/output.c A = av_clip_uint8(A); av_clip_uint8 141 libswscale/ppc/swscale_altivec.c dest[i] = av_clip_uint8(t >> 19); av_clip_uint8 979 libswscale/swscale.c y = av_clip_uint8((RY * r + GY * g + BY * b + ( 33 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 980 libswscale/swscale.c u = av_clip_uint8((RU * r + GU * g + BU * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 981 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); av_clip_uint8 723 libswscale/yuv2rgb.c int64_t cb = av_clip_uint8(i-YUVRGB_TABLE_HEADROOM)*inc; av_clip_uint8 734 libswscale/yuv2rgb.c int64_t cb = av_clip_uint8(i-YUVRGB_TABLE_HEADROOM)*inc; av_clip_uint8 840 libswscale/yuv2rgb.c y_table[i + 110] = av_clip_uint8((yb + 0x8000) >> 16) >> 7; av_clip_uint8 855 libswscale/yuv2rgb.c int yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 874 libswscale/yuv2rgb.c int yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 893 libswscale/yuv2rgb.c uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 916 libswscale/yuv2rgb.c uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 936 libswscale/yuv2rgb.c y_table[i] = av_clip_uint8((yb + 0x8000) >> 16); av_clip_uint8 958 libswscale/yuv2rgb.c unsigned yval = av_clip_uint8((yb + 0x8000) >> 16);