summaryrefslogtreecommitdiff
path: root/src/video_out/yuv2rgb.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-10-09 22:20:11 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-10-09 22:20:11 +0000
commit100128821d754526f85f5edd6c7469fff900e592 (patch)
treef380dd175e1f135414dfa356c6a2e2db3ba200d7 /src/video_out/yuv2rgb.h
parent64805b8b96462567deb2ee107b064e9833f4a4c1 (diff)
downloadxine-lib-100128821d754526f85f5edd6c7469fff900e592.tar.gz
xine-lib-100128821d754526f85f5edd6c7469fff900e592.tar.bz2
overlay clut colorspace conversion
CVS patchset: 783 CVS date: 2001/10/09 22:20:11
Diffstat (limited to 'src/video_out/yuv2rgb.h')
-rw-r--r--src/video_out/yuv2rgb.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/video_out/yuv2rgb.h b/src/video_out/yuv2rgb.h
index fc662aaf3..9502f100d 100644
--- a/src/video_out/yuv2rgb.h
+++ b/src/video_out/yuv2rgb.h
@@ -31,17 +31,24 @@ typedef struct yuv2rgb_s yuv2rgb_t;
struct yuv2rgb_s {
- /*
+ /*
* this is the function to call for the yuv2rgb and scaling process
*/
void (*yuv2rgb_fun) (yuv2rgb_t *this, uint8_t * image, uint8_t * py,
uint8_t * pu, uint8_t * pv) ;
- /*
+ /*
* this is the function to call for the yuy2->rgb and scaling process
*/
void (*yuy22rgb_fun) (yuv2rgb_t *this, uint8_t * image, uint8_t * p);
+ /*
+ * this is the function to call for the yuv2rgb for a single pixel
+ * (used for converting clut colors)
+ */
+ uint32_t (*yuv2rgb_single_pixel_fun) (yuv2rgb_t *this, uint8_t y,
+ uint8_t u, uint8_t v);
+
/* private stuff below */
uint32_t matrix_coefficients;
@@ -75,7 +82,7 @@ yuv2rgb_t *yuv2rgb_init (int mode, int swapped, uint8_t *colormap);
* set up yuv2rgb function, determine scaling parameters if necessary
* returns 0 on failure, 1 otherwise
*/
-int yuv2rgb_setup (yuv2rgb_t *this,
+int yuv2rgb_setup (yuv2rgb_t *this,
int source_width, int source_height,
int y_stride, int uv_stride,
int dest_width, int dest_height,