From 08f4c9bb91fbc3e348322f140e1a0c1f662b7478 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Tue, 26 May 2009 10:07:18 +0200 Subject: libv4l: add gamma correction to video processing From: Hans de Goede add gamma correction to the video processing, and enable it by default (correct for a display gamma of 1.5) for pac207 based cams. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h') diff --git a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h index b848317f7..008d352ff 100644 --- a/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h +++ b/v4l2-apps/libv4l/libv4lconvert/processing/libv4lprocessing-priv.h @@ -39,6 +39,9 @@ struct v4lprocessing_data { unsigned char comp1[256]; unsigned char green[256]; unsigned char comp2[256]; + /* Filter private data for filters which need it */ + int last_gamma; + unsigned char gamma_table[256]; }; struct v4lprocessing_filter { @@ -51,5 +54,6 @@ struct v4lprocessing_filter { extern struct v4lprocessing_filter whitebalance_filter; extern struct v4lprocessing_filter autogain_filter; +extern struct v4lprocessing_filter gamma_filter; #endif -- cgit v1.2.3