[libcamera-devel,v1,4/4] ipa: raspberrypi: Fix the imx296 mono tuning black level
diff mbox series

Message ID 20220926122911.13412-5-naush@raspberrypi.com
State Superseded
Headers show
Series
  • imx296 colour tuning
Related show

Commit Message

Naushir Patuck Sept. 26, 2022, 12:29 p.m. UTC
The sensor black level is 60 (in 10-bits), fix this in the mono variant tuning
file.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/ipa/raspberrypi/data/imx296_mono.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jacopo Mondi Sept. 28, 2022, 7:33 a.m. UTC | #1
Hi Naush

On Mon, Sep 26, 2022 at 01:29:11PM +0100, Naushir Patuck via libcamera-devel wrote:
> The sensor black level is 60 (in 10-bits), fix this in the mono variant tuning
> file.
>
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
> ---
>  src/ipa/raspberrypi/data/imx296_mono.json | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/ipa/raspberrypi/data/imx296_mono.json b/src/ipa/raspberrypi/data/imx296_mono.json
> index 490c0fda0cca..b68b11dbd609 100644
> --- a/src/ipa/raspberrypi/data/imx296_mono.json
> +++ b/src/ipa/raspberrypi/data/imx296_mono.json
> @@ -5,7 +5,7 @@
>          {
>              "rpi.black_level":
>              {
> -                "black_level": 4096
> +                "black_level": 3840

Out of curiosity, what encoding is this one ? You mentioned 10-bits
but this doesn't look like Q10, or is it ?

>              }
>          },
>          {
> --
> 2.25.1
>
Naushir Patuck Sept. 28, 2022, 7:50 a.m. UTC | #2
Hi Jacopo,

Thank you for the feedback.

On Wed, 28 Sept 2022 at 08:33, Jacopo Mondi <jacopo@jmondi.org> wrote:

> Hi Naush
>
> On Mon, Sep 26, 2022 at 01:29:11PM +0100, Naushir Patuck via
> libcamera-devel wrote:
> > The sensor black level is 60 (in 10-bits), fix this in the mono variant
> tuning
> > file.
> >
> > Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
> > ---
> >  src/ipa/raspberrypi/data/imx296_mono.json | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/ipa/raspberrypi/data/imx296_mono.json
> b/src/ipa/raspberrypi/data/imx296_mono.json
> > index 490c0fda0cca..b68b11dbd609 100644
> > --- a/src/ipa/raspberrypi/data/imx296_mono.json
> > +++ b/src/ipa/raspberrypi/data/imx296_mono.json
> > @@ -5,7 +5,7 @@
> >          {
> >              "rpi.black_level":
> >              {
> > -                "black_level": 4096
> > +                "black_level": 3840
>
> Out of curiosity, what encoding is this one ? You mentioned 10-bits
> but this doesn't look like Q10, or is it ?
>

All our tuning parameters are specified in 16-bits, i.e. a white-point of
65535.
So the black level above is computed as 60 << (16bits - 10bits) == 3840.

Regards,
Naush


>
> >              }
> >          },
> >          {
> > --
> > 2.25.1
> >
>

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/data/imx296_mono.json b/src/ipa/raspberrypi/data/imx296_mono.json
index 490c0fda0cca..b68b11dbd609 100644
--- a/src/ipa/raspberrypi/data/imx296_mono.json
+++ b/src/ipa/raspberrypi/data/imx296_mono.json
@@ -5,7 +5,7 @@ 
         {
             "rpi.black_level":
             {
-                "black_level": 4096
+                "black_level": 3840
             }
         },
         {