Home
last modified time | relevance | path

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

/third_party/ffmpeg/libswscale/
Dinput.c45 enum AVPixelFormat origin, int32_t *rgb2yuv) in rgb64ToY_c_template() argument
47 int32_t ry = rgb2yuv[RY_IDX], gy = rgb2yuv[GY_IDX], by = rgb2yuv[BY_IDX]; in rgb64ToY_c_template()
61 int width, enum AVPixelFormat origin, int32_t *rgb2yuv) in rgb64ToUV_c_template() argument
64 int32_t ru = rgb2yuv[RU_IDX], gu = rgb2yuv[GU_IDX], bu = rgb2yuv[BU_IDX]; in rgb64ToUV_c_template()
65 int32_t rv = rgb2yuv[RV_IDX], gv = rgb2yuv[GV_IDX], bv = rgb2yuv[BV_IDX]; in rgb64ToUV_c_template()
80 int width, enum AVPixelFormat origin, int32_t *rgb2yuv) in rgb64ToUV_half_c_template() argument
83 int32_t ru = rgb2yuv[RU_IDX], gu = rgb2yuv[GU_IDX], bu = rgb2yuv[BU_IDX]; in rgb64ToUV_half_c_template()
84 int32_t rv = rgb2yuv[RV_IDX], gv = rgb2yuv[GV_IDX], bv = rgb2yuv[BV_IDX]; in rgb64ToUV_half_c_template()
98 int width, uint32_t *rgb2yuv) \
102 rgb64ToY_c_template(dst, src, width, origin, rgb2yuv); \
[all …]
Dbayer_template.c190 #define rgb24toyv12_2x2(src, dstY, dstU, dstV, luma_stride, src_stride, rgb2yuv) \ argument
191 ff_rgb24toyv12(src, dstY, dstV, dstU, 2, 2, luma_stride, 0, src_stride, rgb2yuv)
256 …_stride, uint8_t *dstY, uint8_t *dstU, uint8_t *dstV, int luma_stride, int width, int32_t *rgb2yuv) in BAYER_RENAME()
263 rgb24toyv12_2x2(dst, dstY, dstU, dstV, luma_stride, dst_stride, rgb2yuv); in BAYER_RENAME()
271 …_stride, uint8_t *dstY, uint8_t *dstU, uint8_t *dstV, int luma_stride, int width, int32_t *rgb2yuv) in BAYER_RENAME()
278 rgb24toyv12_2x2(dst, dstY, dstU, dstV, luma_stride, dst_stride, rgb2yuv); in BAYER_RENAME()
286 rgb24toyv12_2x2(dst, dstY, dstU, dstV, luma_stride, dst_stride, rgb2yuv); in BAYER_RENAME()
295 rgb24toyv12_2x2(dst, dstY, dstU, dstV, luma_stride, dst_stride, rgb2yuv); in BAYER_RENAME()
Drgb2rgb_template.c651 int chromStride, int srcStride, int32_t *rgb2yuv) in ff_rgb24toyv12_c() argument
653 int32_t ry = rgb2yuv[RY_IDX], gy = rgb2yuv[GY_IDX], by = rgb2yuv[BY_IDX]; in ff_rgb24toyv12_c()
654 int32_t ru = rgb2yuv[RU_IDX], gu = rgb2yuv[GU_IDX], bu = rgb2yuv[BU_IDX]; in ff_rgb24toyv12_c()
655 int32_t rv = rgb2yuv[RV_IDX], gv = rgb2yuv[GV_IDX], bv = rgb2yuv[BV_IDX]; in ff_rgb24toyv12_c()
Drgb2rgb.h84 int chromStride, int srcStride, int32_t *rgb2yuv);
133 int32_t *rgb2yuv);
Dswscale_internal.h546 void (*readLumPlanar)(uint8_t *dst, const uint8_t *src[4], int width, int32_t *rgb2yuv);
548 int width, int32_t *rgb2yuv);
549 void (*readAlpPlanar)(uint8_t *dst, const uint8_t *src[4], int width, int32_t *rgb2yuv);
Drgb2rgb.c85 int32_t *rgb2yuv);
Dswscale_unscaled.c1387 …stride, uint8_t *dstY, uint8_t *dstU, uint8_t *dstV, int luma_stride, int width, int32_t *rgb2yuv); in bayer_to_yv12_wrapper()
1388 …stride, uint8_t *dstY, uint8_t *dstU, uint8_t *dstV, int luma_stride, int width, int32_t *rgb2yuv); in bayer_to_yv12_wrapper()
/third_party/ffmpeg/libavfilter/
Dcolorspace.c142 double rgb2yuv[3][3]) in ff_fill_rgb2yuv_table()
148 memcpy(rgb2yuv, ycgco_matrix, sizeof(double) * 9); in ff_fill_rgb2yuv_table()
151 memcpy(rgb2yuv, gbr_matrix, sizeof(double) * 9); in ff_fill_rgb2yuv_table()
155 rgb2yuv[0][0] = coeffs->cr; in ff_fill_rgb2yuv_table()
156 rgb2yuv[0][1] = coeffs->cg; in ff_fill_rgb2yuv_table()
157 rgb2yuv[0][2] = coeffs->cb; in ff_fill_rgb2yuv_table()
160 rgb2yuv[1][0] = bscale * coeffs->cr; in ff_fill_rgb2yuv_table()
161 rgb2yuv[1][1] = bscale * coeffs->cg; in ff_fill_rgb2yuv_table()
162 rgb2yuv[1][2] = 0.5; in ff_fill_rgb2yuv_table()
163 rgb2yuv[2][0] = 0.5; in ff_fill_rgb2yuv_table()
[all …]
Dvf_hqx.c58 static av_always_inline uint32_t rgb2yuv(const uint32_t *r2y, uint32_t c) in rgb2yuv() function
102 #define WDIFF(c1, c2) yuv_diff(rgb2yuv(r2y, c1), rgb2yuv(r2y, c2))
414 const uint32_t yuv1 = rgb2yuv(r2y, w[4]); in hqx_filter()
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()
420 | (w[4] != w[6] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[6]))) : 0) << 5 in hqx_filter()
421 | (w[4] != w[7] ? (yuv_diff(yuv1, rgb2yuv(r2y, w[7]))) : 0) << 6 in hqx_filter()
[all …]
Dcolorspacedsp.c113 dsp->rgb2yuv[BPP_##bit][SS_444] = rgb2yuv_444p##bit##_c; \ in ff_colorspacedsp_init()
114 dsp->rgb2yuv[BPP_##bit][SS_422] = rgb2yuv_422p##bit##_c; \ in ff_colorspacedsp_init()
115 dsp->rgb2yuv[BPP_##bit][SS_420] = rgb2yuv_420p##bit##_c in ff_colorspacedsp_init()
Dvf_colorspace.c157 rgb2yuv_fn rgb2yuv; member
404 s->rgb2yuv(out_data, td->out_linesize, rgb, s->rgb_stride, w, h, in convert()
644 double rgb2yuv[3][3], (*yuv2rgb)[3] = s->yuv2rgb_dbl_coeffs; in create_filtergraph() local
657 ff_fill_rgb2yuv_table(s->in_lumacoef, rgb2yuv); in create_filtergraph()
658 ff_matrix_invert_3x3(rgb2yuv, yuv2rgb); in create_filtergraph()
677 double (*rgb2yuv)[3] = s->rgb2yuv_dbl_coeffs; in create_filtergraph() local
690 ff_fill_rgb2yuv_table(s->out_lumacoef, rgb2yuv); in create_filtergraph()
694 s->rgb2yuv_coeffs[n][m][0] = lrint(bits * out_rng * rgb2yuv[n][m] / 28672); in create_filtergraph()
700 s->rgb2yuv = s->dsp.rgb2yuv[(out_desc->comp[0].depth - 8) >> 1] in create_filtergraph()
709 double (*rgb2yuv)[3] = s->rgb2yuv_dbl_coeffs; in create_filtergraph() local
[all …]
Dvf_tonemap_opencl.c123 double rgb2rgb[3][3], rgb2yuv[3][3], yuv2rgb[3][3]; in tonemap_opencl_init() local
221 ff_fill_rgb2yuv_table(luma_dst, rgb2yuv); in tonemap_opencl_init()
222 ff_opencl_print_const_matrix_3x3(&header, "yuv_matrix", rgb2yuv); in tonemap_opencl_init()
224 ff_fill_rgb2yuv_table(luma_src, rgb2yuv); in tonemap_opencl_init()
225 ff_matrix_invert_3x3(rgb2yuv, yuv2rgb); in tonemap_opencl_init()
Dcolorspace.h49 double rgb2yuv[3][3]);
Dvf_scale_vulkan.c65 static const char rgb2yuv[] = {
66 C(0, vec4 rgb2yuv(vec4 src, int fullrange) )
187 GLSLD( rgb2yuv );
221 GLSLF(1, res = rgb2yuv(res, %i); ,s->out_range == AVCOL_RANGE_JPEG);
Dcolorspacedsp.h65 rgb2yuv_fn rgb2yuv[NB_BPP][NB_SS]; member
Dvf_colorize.c187 static void rgb2yuv(float r, float g, float b, int *y, int *u, int *v, int depth) in rgb2yuv() function
204 rgb2yuv(c[0], c[1], c[2], &s->c[0], &s->c[1], &s->c[2], s->depth); in filter_frame()
Dcolorspacedsp_template.c130 static void fn(rgb2yuv)(uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], in fn() argument
/third_party/ffmpeg/libavfilter/x86/
Dcolorspacedsp_init.c109 dsp->rgb2yuv[BPP_8 ][SS_##ss] = ff_rgb2yuv_##ss##p8_sse2; \ in ff_colorspacedsp_x86_init()
110 dsp->rgb2yuv[BPP_10][SS_##ss] = ff_rgb2yuv_##ss##p10_sse2; \ in ff_colorspacedsp_x86_init()
111 dsp->rgb2yuv[BPP_12][SS_##ss] = ff_rgb2yuv_##ss##p12_sse2 in ff_colorspacedsp_x86_init()
/third_party/skia/src/core/
DSkYUVMath.cpp292 static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv) { in dump() argument
308 SkDebugf("const float %s_%s[] = {\n", names[cs], dirnames[rgb2yuv]); in dump()
/third_party/ffmpeg/libavfilter/opencl/
Dcolorspace_common.cl137 float3 rgb2yuv(float r, float g, float b) {
162 return rgb2yuv(r, g, b);
164 return rgb2yuv(c.x, c.y, c.z);
/third_party/ffmpeg/libswscale/x86/
Drgb2rgb_template.c1575 int32_t *rgb2yuv) in RENAME()
1584 … ff_rgb24toyv12_c(src, ydst, udst, vdst, width, 2, lumStride, chromStride, srcStride, rgb2yuv); in RENAME()
1657 : : "r" (src+width*3), "r" (ydst+width), "g" ((x86_reg)-width), "r"(rgb2yuv) in RENAME()
1806 …Stride+chromWidth*6), "r" (udst+chromWidth), "r" (vdst+chromWidth), "g" (-chromWidth), "r"(rgb2yuv) in RENAME()
1820 …_rgb24toyv12_c(src, ydst, udst, vdst, width, height-y, lumStride, chromStride, srcStride, rgb2yuv); in RENAME()
/third_party/ffmpeg/tests/checkasm/
Dvf_colorspace.c239 if (check_func(dsp.rgb2yuv[odepth][fmt], in check_rgb2yuv()
/third_party/gstreamer/gstplugins_base/docs/random/
DChangeLog-0.814248 * ext/hermes/rgb2yuv.c:
/third_party/gstreamer/gstplugins_bad/docs/random/
DChangeLog-0.816419 * ext/hermes/rgb2yuv.c:
/third_party/gstreamer/gstplugins_base/
DChangeLog102855 * ext/hermes/rgb2yuv.c: