From fa59c01eadd849ed2e5b0cf1406347bf632c80ed Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Mon, 13 Apr 2009 20:02:34 +0200 Subject: libv4l: add video processing: whitebalance and normalize From: Hans de Goede As the version number shows this work is the basis for a beta release of the 0.6.x series, the big change here is the addition of video processing to libv4l currently this only does whitebalance and normalizing (which turns out to be useless for most cams) but the basic framework for doing video processing, and being able to control it through fake v4l2 controls using for example v4l2ucp is there. The initial version of this code was written by 3 of my computer science students: Elmar Kleijn, Sjoerd Piepenbrink and Radjnies Bhansingh. This initial hg commit is a cleaned up and somewhat bug fixed version of their code. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 3 +++ 1 file changed, 3 insertions(+) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index debb9c78c..2bd2fc992 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -8,3 +8,6 @@ necessary to implement CGMBUF in the kernel for each driver. -take the possibility of pitch != width into account everywhere + +-only report faked formats in list formats and only allow setting fake + formats when processing or flipping. -- cgit v1.2.3 From 10a09b9ec6e08fb95c36f26d7f69834b0387386b Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Tue, 14 Apr 2009 09:51:35 +0200 Subject: libv4l: Enable whitebalancing algorithm based on USB id's From: Hans de Goede * Determine wether or not to do whitebalance and/or normalize at all based on USB-ID's. * Add rotate90 hack to flags based on usb-id. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index 2bd2fc992..f1aac5a95 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -9,5 +9,12 @@ -take the possibility of pitch != width into account everywhere + -only report faked formats in list formats and only allow setting fake formats when processing or flipping. + +-make updating of parameters happen based on time elapsed rather then + frames + +-add fake flip controls on devices where we are already limiting the + formats which can be set -- cgit v1.2.3 From 58d3334b54c207b8e04e7035969e0c2acfa1ce73 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Tue, 14 Apr 2009 15:03:07 +0200 Subject: libv4l: Only allow supported destination formats when doing processing From: Hans de Goede Only report / allow supported destination formats in enum_fmt / try_fmt / g_fmt / s_fmt when processing, rotating or flipping. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index f1aac5a95..94c40b84e 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -10,11 +10,19 @@ -take the possibility of pitch != width into account everywhere --only report faked formats in list formats and only allow setting fake - formats when processing or flipping. - -make updating of parameters happen based on time elapsed rather then frames -add fake flip controls on devices where we are already limiting the formats which can be set + +-add reverse cropping (adding black borders) to get from 320x232 -> + 320x240, for zc3xx webcams with a broken (last row of jpeg blocks missing) + 320x240 mode + +-add software auto exposure (for spca561 cams) + +-change video processing to use a per component lookup table for easy combining of + of different effects in 1 pass + +-add gamma correction video processing -- cgit v1.2.3 From 34a210b573f9c8ff8f07077f239be95d9d9248c5 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Wed, 20 May 2009 07:23:00 +0200 Subject: libv4l: add fake controls controlling the software h- and v-flipping From: Hans de Goede When we need to go through the fake mmap buffer anyways, we can add fake controls at no cost. So in the case of webcams which only support non standard pixformats, export fake flipping controls, as this can be done at no (performace) cost (until the user activates them). Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 3 --- 1 file changed, 3 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index 94c40b84e..b676bfeb5 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -13,9 +13,6 @@ -make updating of parameters happen based on time elapsed rather then frames --add fake flip controls on devices where we are already limiting the - formats which can be set - -add reverse cropping (adding black borders) to get from 320x232 -> 320x240, for zc3xx webcams with a broken (last row of jpeg blocks missing) 320x240 mode -- cgit v1.2.3 From 62805a6b176a0bbd17ab8fa421791765186fb77d Mon Sep 17 00:00:00 2001 From: "hans@localhost.localdomain" Date: Thu, 21 May 2009 13:08:29 +0200 Subject: libv4l: rewrite video processing code From: Hans de Goede Rewrite video processing code to make it easier to add more video filters (and with little extra processing cost). As part of this the normalize filter has been removed as it wasn't functioning satisfactory anyways Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 3 --- 1 file changed, 3 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index b676bfeb5..959adc574 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -19,7 +19,4 @@ -add software auto exposure (for spca561 cams) --change video processing to use a per component lookup table for easy combining of - of different effects in 1 pass - -add gamma correction video processing -- cgit v1.2.3 From b152107391374bfc61ea21d1731fd349352bedf2 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Fri, 22 May 2009 11:40:31 +0200 Subject: libv4l: add support for adding black borders (reverse cropping) From: Hans de Goede Add the capability to provide 320x240 to apps if the cam can only do 320x232 (some zc3xx cams) by adding black borders. And more in general the capability to make certain standard resolutions available by adding black borders to slightly smaller resolutions, in case we encounter more cams which have a hardware limitation which makes them do a resolution slightly smaller then the standard ones. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 4 ---- 1 file changed, 4 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index 959adc574..f4abad05d 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -9,13 +9,9 @@ -take the possibility of pitch != width into account everywhere - -make updating of parameters happen based on time elapsed rather then frames --add reverse cropping (adding black borders) to get from 320x232 -> - 320x240, for zc3xx webcams with a broken (last row of jpeg blocks missing) - 320x240 mode -add software auto exposure (for spca561 cams) -- cgit v1.2.3 From 51949cfaadebd8e341fed1e85eca683dd40195d2 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Mon, 25 May 2009 15:25:15 +0200 Subject: libv4l: add software autogain / exposure From: Hans de Goede Add software autogain / exposure, for camera's which have gain and exposure controls but do not contain the ability to calculate the average lumination in hardware (which is needed to do this in the kernel). This patch enables this for the spca561 rev12a, but it should be usefull for other cameras too. Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/TODO | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index f4abad05d..e4ea436a3 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -13,6 +13,6 @@ frames --add software auto exposure (for spca561 cams) - -add gamma correction video processing + +-get standardized CID for AUTOGAIN_TARGET upstream and switch to that -- cgit v1.2.3 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/TODO | 3 --- 1 file changed, 3 deletions(-) (limited to 'v4l2-apps/libv4l/TODO') diff --git a/v4l2-apps/libv4l/TODO b/v4l2-apps/libv4l/TODO index e4ea436a3..8f7744337 100644 --- a/v4l2-apps/libv4l/TODO +++ b/v4l2-apps/libv4l/TODO @@ -12,7 +12,4 @@ -make updating of parameters happen based on time elapsed rather then frames - --add gamma correction video processing - -get standardized CID for AUTOGAIN_TARGET upstream and switch to that -- cgit v1.2.3