From 1ff753619b7732db28e76b4ae1e3c06ee00f0ef4 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 29 Oct 2001 02:15:22 +0000 Subject: XShm gamma adjusting (brightness) CVS patchset: 906 CVS date: 2001/10/29 02:15:22 --- src/video_out/yuv2rgb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/video_out/yuv2rgb.h') diff --git a/src/video_out/yuv2rgb.h b/src/video_out/yuv2rgb.h index 9502f100d..493481260 100644 --- a/src/video_out/yuv2rgb.h +++ b/src/video_out/yuv2rgb.h @@ -72,6 +72,9 @@ struct yuv2rgb_s { uint8_t *fast_rgb; scale_line_func_t scale_line; + + int gamma; + int entry_size; } ; @@ -88,10 +91,18 @@ int yuv2rgb_setup (yuv2rgb_t *this, int dest_width, int dest_height, int rgb_stride); +/* adjust gamma (-100 to 100 looks fine) */ +void yuv2rgb_set_gamma (yuv2rgb_t *this, int gamma); + +/* get gamma value */ +int yuv2rgb_get_gamma (yuv2rgb_t *this); + + /* * internal stuff below this line */ +void mmx_yuv2rgb_set_gamma(int gamma); void yuv2rgb_init_mmxext (yuv2rgb_t *this, int mode, int swapped); void yuv2rgb_init_mmx (yuv2rgb_t *this, int mode, int swapped); void yuv2rgb_init_mlib (yuv2rgb_t *this, int mode, int swapped); -- cgit v1.2.3