Home
last modified time | relevance | path

Searched refs:av_clip_uint16 (Results 1 – 13 of 13) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_removegrain.c155 const int c1 = av_clip_uint16((FFABS(c - cli1) << 1) + d1); in mode06()
156 const int c2 = av_clip_uint16((FFABS(c - cli2) << 1) + d2); in mode06()
157 const int c3 = av_clip_uint16((FFABS(c - cli3) << 1) + d3); in mode06()
158 const int c4 = av_clip_uint16((FFABS(c - cli4) << 1) + d4); in mode06()
219 const int c1 = av_clip_uint16(FFABS(c - cli1) + (d1 << 1)); in mode08()
220 const int c2 = av_clip_uint16(FFABS(c - cli2) + (d2 << 1)); in mode08()
221 const int c3 = av_clip_uint16(FFABS(c - cli3) + (d3 << 1)); in mode08()
222 const int c4 = av_clip_uint16(FFABS(c - cli4) + (d4 << 1)); in mode08()
Dvf_colorchannelmixer.c537 dst[j + roffset] = av_clip_uint16(rout); in filter_slice_rgba16_packed()
538 dst[j + goffset] = av_clip_uint16(gout); in filter_slice_rgba16_packed()
539 dst[j + boffset] = av_clip_uint16(bout); in filter_slice_rgba16_packed()
542 dst[j + aoffset] = av_clip_uint16(s->lut[A][R][rin] + in filter_slice_rgba16_packed()
Dvf_blend.c337 DEFINE_BLEND16(grainmerge, av_clip_uint16(A + B - 32768), 16) in DEFINE_BLEND8()
341 DEFINE_BLEND16(multiply128, av_clip_uint16((A - 32768) * B / 8192. + 32768), 16) in DEFINE_BLEND8()
345 DEFINE_BLEND16(grainextract, av_clip_uint16(32768 + A - B), 16) in DEFINE_BLEND8()
354 DEFINE_BLEND16(divide, av_clip_uint16(B == 0 ? 65535 : 65535 * A / B), 16) in DEFINE_BLEND8()
367 DEFINE_BLEND16(linearlight,av_clip_uint16((B < 32768) ? B + 2 * A - 65535 : B + 2 * (A - 32768)), 1… in DEFINE_BLEND8()
Dvf_colorlevels.c157 dst[x + offset] = av_clip_uint16((src[x + offset] - imin) * coeff + omin); in colorlevels_slice_16()
Dvf_fade.c489 s->factor = av_clip_uint16(s->factor); in filter_frame()
/third_party/ffmpeg/libavutil/arm/
Dintmath.h49 #define av_clip_uint16 av_clip_uint16_arm macro
/third_party/ffmpeg/libavutil/
Dcommon.h133 #ifndef av_clip_uint16
134 # define av_clip_uint16 av_clip_uint16_c macro
/third_party/ffmpeg/libswscale/
Dinput.c975 dst[i] = av_clip_uint16(lrintf(65535.0f * rdpx(src[3] + i))); in planar_rgbf32_to_a()
989 int g = av_clip_uint16(lrintf(65535.0f * rdpx(src[0] + i))); in planar_rgbf32_to_uv()
990 int b = av_clip_uint16(lrintf(65535.0f * rdpx(src[1] + i))); in planar_rgbf32_to_uv()
991 int r = av_clip_uint16(lrintf(65535.0f * rdpx(src[2] + i))); in planar_rgbf32_to_uv()
1007 int g = av_clip_uint16(lrintf(65535.0f * rdpx(src[0] + i))); in planar_rgbf32_to_y()
1008 int b = av_clip_uint16(lrintf(65535.0f * rdpx(src[1] + i))); in planar_rgbf32_to_y()
1009 int r = av_clip_uint16(lrintf(65535.0f * rdpx(src[2] + i))); in planar_rgbf32_to_y()
1025 dst[i] = av_clip_uint16(lrintf(65535.0f * src[i])); in grayf32ToY16_c()
1037 dst[i] = av_clip_uint16(lrintf(65535.0f * av_int2float(av_bswap32(src[i])))); in grayf32ToY16_bswap_c()
Doutput.c917 Y = av_clip_uint16(Y); in yuv2ya16_X_c_template()
926 A = av_clip_uint16(A); in yuv2ya16_X_c_template()
954 Y = av_clip_uint16(Y); in yuv2ya16_2_c_template()
958 A = av_clip_uint16(A); in yuv2ya16_2_c_template()
979 Y = av_clip_uint16(Y); in yuv2ya16_1_c_template()
984 A = av_clip_uint16(A); in yuv2ya16_1_c_template()
/third_party/ffmpeg/libavformat/
Dgif.c88 gif->duration = av_clip_uint16(new->pts - prev->pts); in gif_get_delay()
Dmxfenc.c1099 return av_clip_uint16(av_rescale(q.num, FF_MXF_MASTERING_CHROMA_DEN, q.den)); in rescale_mastering_chroma()
/third_party/ffmpeg/libavcodec/
Dvorbisdec.c1307 floor1_Y_final[i] = av_clip_uint16(val - lowroom + predicted); in vorbis_floor1_decode()
1309 floor1_Y_final[i] = av_clip_uint16(predicted - val + highroom - 1); in vorbis_floor1_decode()
1313 floor1_Y_final[i] = av_clip_uint16(predicted - (val + 1) / 2); in vorbis_floor1_decode()
1315 floor1_Y_final[i] = av_clip_uint16(predicted + val / 2); in vorbis_floor1_decode()
1320 floor1_Y_final[i] = av_clip_uint16(predicted); in vorbis_floor1_decode()
Dvc1dec.c193 alpha = av_clip_uint16(sd->coefs[1][6]); in vc1_draw_sprites()