| FFmpeg
    | 
Various defines for YUV<->RGB conversion. More...

Go to the source code of this file.
| Macros | |
| #define | SCALEBITS 10 | 
| #define | ONE_HALF (1 << (SCALEBITS - 1)) | 
| #define | FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) | 
| #define | YUV_TO_RGB1_CCIR(cb1, cr1) | 
| #define | YUV_TO_RGB2_CCIR(r, g, b, y1) | 
| #define | YUV_TO_RGB1(cb1, cr1) | 
| #define | YUV_TO_RGB2(r, g, b, y1) | 
| #define | Y_CCIR_TO_JPEG(y) cm[((y) * FIX(255.0/219.0) + (ONE_HALF - 16 * FIX(255.0/219.0))) >> SCALEBITS] | 
| #define | Y_JPEG_TO_CCIR(y) (((y) * FIX(219.0/255.0) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) | 
| #define | C_CCIR_TO_JPEG(y) cm[(((y) - 128) * FIX(127.0/112.0) + (ONE_HALF + (128 << SCALEBITS))) >> SCALEBITS] | 
| #define | RGB_TO_Y(r, g, b) | 
| #define | RGB_TO_U(r1, g1, b1, shift) | 
| #define | RGB_TO_V(r1, g1, b1, shift) | 
| #define | RGB_TO_Y_CCIR(r, g, b) | 
| #define | RGB_TO_U_CCIR(r1, g1, b1, shift) | 
| #define | RGB_TO_V_CCIR(r1, g1, b1, shift) | 
| Functions | |
| static int | C_JPEG_TO_CCIR (int y) | 
Detailed Description
Various defines for YUV<->RGB conversion.
Definition in file colorspace.h.
Macro Definition Documentation
| #define C_CCIR_TO_JPEG | ( | y | ) | cm[(((y) - 128) * FIX(127.0/112.0) + (ONE_HALF + (128 << SCALEBITS))) >> SCALEBITS] | 
Definition at line 75 of file colorspace.h.
Definition at line 32 of file colorspace.h.
Referenced by C_JPEG_TO_CCIR().
| #define ONE_HALF (1 << (SCALEBITS - 1)) | 
Definition at line 31 of file colorspace.h.
Referenced by C_JPEG_TO_CCIR().
| #define RGB_TO_U | ( | r1, | |
| g1, | |||
| b1, | |||
| shift | |||
| ) | 
Definition at line 91 of file colorspace.h.
| #define RGB_TO_U_CCIR | ( | r1, | |
| g1, | |||
| b1, | |||
| shift | |||
| ) | 
Definition at line 103 of file colorspace.h.
Referenced by encode_dvb_subtitles(), ff_draw_color(), ff_fill_line_with_color(), init(), and subtitle_thread().
| #define RGB_TO_V | ( | r1, | |
| g1, | |||
| b1, | |||
| shift | |||
| ) | 
Definition at line 95 of file colorspace.h.
| #define RGB_TO_V_CCIR | ( | r1, | |
| g1, | |||
| b1, | |||
| shift | |||
| ) | 
Definition at line 107 of file colorspace.h.
Referenced by encode_dvb_subtitles(), ff_draw_color(), ff_fill_line_with_color(), init(), and subtitle_thread().
Definition at line 87 of file colorspace.h.
Definition at line 99 of file colorspace.h.
Referenced by encode_dvb_subtitles(), ff_draw_color(), ff_fill_line_with_color(), init(), and subtitle_thread().
| #define SCALEBITS 10 | 
Definition at line 30 of file colorspace.h.
Referenced by C_JPEG_TO_CCIR().
| #define Y_CCIR_TO_JPEG | ( | y | ) | cm[((y) * FIX(255.0/219.0) + (ONE_HALF - 16 * FIX(255.0/219.0))) >> SCALEBITS] | 
Definition at line 69 of file colorspace.h.
| #define Y_JPEG_TO_CCIR | ( | y | ) | (((y) * FIX(219.0/255.0) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) | 
Definition at line 72 of file colorspace.h.
| #define YUV_TO_RGB1 | ( | cb1, | |
| cr1 | |||
| ) | 
Definition at line 52 of file colorspace.h.
Referenced by parse_palette_segment().
| #define YUV_TO_RGB1_CCIR | ( | cb1, | |
| cr1 | |||
| ) | 
Definition at line 34 of file colorspace.h.
Referenced by dvbsub_parse_clut_segment(), and yuv_a_to_rgba().
Definition at line 44 of file colorspace.h.
Referenced by dvbsub_parse_clut_segment(), and yuv_a_to_rgba().
Function Documentation
| 
 | inlinestatic | 
Definition at line 79 of file colorspace.h.
Generated on Fri Oct 31 2025 06:56:19 for FFmpeg by
 1.8.11
 1.8.11