Home
last modified time | relevance | path

Searched refs:yuv1 (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_hqx.c63 static av_always_inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) in yuv_diff() argument
70 return ABSDIFF(yuv1 & YMASK, yuv2 & YMASK) > (48 << 16) || in yuv_diff()
71 ABSDIFF(yuv1 & UMASK, yuv2 & UMASK) > ( 7 << 8) || in yuv_diff()
72 ABSDIFF(yuv1 & VMASK, yuv2 & VMASK) > ( 6 << 0); in yuv_diff()
414 const uint32_t yuv1 = rgb2yuv(r2y, w[4]); in hqx_filter() local
415 const int pattern = (w[4] != w[0] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[0]))) : 0) in hqx_filter()
416 | (w[4] != w[1] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[1]))) : 0) << 1 in hqx_filter()
417 | (w[4] != w[2] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[2]))) : 0) << 2 in hqx_filter()
418 | (w[4] != w[3] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[3]))) : 0) << 3 in hqx_filter()
419 | (w[4] != w[5] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[5]))) : 0) << 4 in hqx_filter()
[all …]
Dcolorspacedsp_template.c60 const pixel *yuv0 = yuv[0], *yuv1 = yuv[1], *yuv2 = yuv[2]; in fn() local
87 int u = yuv1[x] - uv_offset, v = yuv2[x] - uv_offset; in fn()
122 yuv1 += yuv_stride[1] / sizeof(pixel); in fn()
136 pixel *yuv0 = yuv[0], *yuv1 = yuv[1], *yuv2 = yuv[2]; in fn() local
183 yuv1[x] = av_clip_pixel(uv_offset + in fn()
194 yuv1 += yuv_stride[1] / sizeof(pixel); in fn()
215 pixel *yuv0 = yuv[0], *yuv1 = yuv[1], *yuv2 = yuv[2]; in fn() local
302 yuv1[x] = av_clip_pixel(uv_offset + (u >> sh)); in fn()
322 yuv1 += yuv_stride[1] / sizeof(pixel); in fn()
Dvf_xbr.c74 uint32_t yuv1 = r2y[x & 0xffffff]; in pixel_diff() local
77 return (ABSDIFF(yuv1 & YMASK, yuv2 & YMASK) >> 16) + in pixel_diff()
78 (ABSDIFF(yuv1 & UMASK, yuv2 & UMASK) >> 8) + in pixel_diff()
79 ABSDIFF(yuv1 & VMASK, yuv2 & VMASK); in pixel_diff()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dfilter_enc.c112 static double GetMBSSIM(const uint8_t* yuv1, const uint8_t* yuv2) { in GetMBSSIM() argument
119 sum += VP8SSIMGetClipped(yuv1 + Y_OFF_ENC, BPS, yuv2 + Y_OFF_ENC, BPS, in GetMBSSIM()
125 sum += VP8SSIMGetClipped(yuv1 + U_OFF_ENC, BPS, yuv2 + U_OFF_ENC, BPS, in GetMBSSIM()
127 sum += VP8SSIMGetClipped(yuv1 + V_OFF_ENC, BPS, yuv2 + V_OFF_ENC, BPS, in GetMBSSIM()
/third_party/skia/third_party/externals/libwebp/src/enc/
Dfilter_enc.c112 static double GetMBSSIM(const uint8_t* yuv1, const uint8_t* yuv2) { in GetMBSSIM() argument
119 sum += VP8SSIMGetClipped(yuv1 + Y_OFF_ENC, BPS, yuv2 + Y_OFF_ENC, BPS, in GetMBSSIM()
125 sum += VP8SSIMGetClipped(yuv1 + U_OFF_ENC, BPS, yuv2 + U_OFF_ENC, BPS, in GetMBSSIM()
127 sum += VP8SSIMGetClipped(yuv1 + V_OFF_ENC, BPS, yuv2 + V_OFF_ENC, BPS, in GetMBSSIM()
/third_party/gstreamer/gstplugins_bad/ext/vulkan/shaders/
Drgb_to_yuy2.frag46 vec3 yuv1 = color_convert_texel (texel1.rgb, matrices);
49 yuv.x = yuv1.x;
50 yuv.yz = (yuv1.yz + yuv2.yz) * 0.5;
Drgb_to_nv12.frag42 vec3 yuv1 = color_convert_texel (texel.rgb, matrices);
44 vec3 yuv = vec3(yuv1.x, yuv2.y, yuv2.z);