Home
last modified time | relevance | path

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

/third_party/ffmpeg/libswscale/
Dinput.c47 dst[i] = (ry*r + gy*g + by*b + (0x2001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; in rgb64ToY_c_template()
65 dstU[i] = (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; in rgb64ToUV_c_template()
66 dstV[i] = (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; in rgb64ToUV_c_template()
84 dstU[i]= (ru*r + gu*g + bu*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; in rgb64ToUV_half_c_template()
85 dstV[i]= (rv*r + gv*g + bv*b + (0x10001<<(RGB2YUV_SHIFT-1))) >> RGB2YUV_SHIFT; in rgb64ToUV_half_c_template()
135 dst[i] = (ry*r + gy*g + by*b + (0x2001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; in rgb64funcs()
156 dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; in rgb48ToUV_c_template()
157 dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; in rgb48ToUV_c_template()
181 dstU[i] = (ru*r + gu*g + bu*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; in rgb48ToUV_half_c_template()
182 dstV[i] = (rv*r + gv*g + bv*b + (0x10001 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT; in rgb48ToUV_half_c_template()
[all …]
Drgb2rgb.c117 #define BY ((int)( 0.098 * (1 << RGB2YUV_SHIFT) + 0.5))
118 #define BV ((int)(-0.071 * (1 << RGB2YUV_SHIFT) + 0.5))
119 #define BU ((int)( 0.439 * (1 << RGB2YUV_SHIFT) + 0.5))
120 #define GY ((int)( 0.504 * (1 << RGB2YUV_SHIFT) + 0.5))
121 #define GV ((int)(-0.368 * (1 << RGB2YUV_SHIFT) + 0.5))
122 #define GU ((int)(-0.291 * (1 << RGB2YUV_SHIFT) + 0.5))
123 #define RY ((int)( 0.257 * (1 << RGB2YUV_SHIFT) + 0.5))
124 #define RV ((int)( 0.439 * (1 << RGB2YUV_SHIFT) + 0.5))
125 #define RU ((int)(-0.148 * (1 << RGB2YUV_SHIFT) + 0.5))
Dswscale.c775 #define RGB2YUV_SHIFT 15 in update_palette() macro
776 #define BY ( (int) (0.114 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
777 #define BV (-(int) (0.081 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
778 #define BU ( (int) (0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
779 #define GY ( (int) (0.587 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
780 #define GV (-(int) (0.419 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
781 #define GU (-(int) (0.331 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
782 #define RY ( (int) (0.299 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
783 #define RV ( (int) (0.500 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
784 #define RU (-(int) (0.169 * 224 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)) in update_palette()
[all …]
Dutils.c833 c->input_rgb2yuv_table[RY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*V , Cy); in fill_rgb2yuv_table()
834 c->input_rgb2yuv_table[GY_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*ONE*ONE , Cy); in fill_rgb2yuv_table()
835 c->input_rgb2yuv_table[BY_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*W , Cy); in fill_rgb2yuv_table()
837 c->input_rgb2yuv_table[RU_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*V , Cu); in fill_rgb2yuv_table()
838 c->input_rgb2yuv_table[GU_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*ONE*ONE , Cu); in fill_rgb2yuv_table()
839 c->input_rgb2yuv_table[BU_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*(Z+W) , Cu); in fill_rgb2yuv_table()
841 c->input_rgb2yuv_table[RV_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*(V+Z) , Cv); in fill_rgb2yuv_table()
842 c->input_rgb2yuv_table[GV_IDX] = -ROUNDED_DIV((1 << RGB2YUV_SHIFT)*ONE*ONE , Cv); in fill_rgb2yuv_table()
843 c->input_rgb2yuv_table[BV_IDX] = ROUNDED_DIV((1 << RGB2YUV_SHIFT)*W , Cv); in fill_rgb2yuv_table()
846 c->input_rgb2yuv_table[BY_IDX] = ((int)(0.114 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5)); in fill_rgb2yuv_table()
[all …]
Drgb2rgb_template.c666 unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; in ff_rgb24toyv12_c()
667 unsigned int V = ((rv * r + gv * g + bv * b) >> RGB2YUV_SHIFT) + 128; in ff_rgb24toyv12_c()
668 unsigned int U = ((ru * r + gu * g + bu * b) >> RGB2YUV_SHIFT) + 128; in ff_rgb24toyv12_c()
678 Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; in ff_rgb24toyv12_c()
692 unsigned int Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; in ff_rgb24toyv12_c()
700 Y = ((ry * r + gy * g + by * b) >> RGB2YUV_SHIFT) + 16; in ff_rgb24toyv12_c()
Dswscale_internal.h448 #define RGB2YUV_SHIFT 15 macro
/third_party/ffmpeg/libswscale/x86/
Drgb2rgb.c76 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
77 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
78 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
79 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
80 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
81 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
82 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
83 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
84 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))