[libcamera-devel] [PATCH v3 02/12] libcamera: camera: Introduce SensorConfiguration

Sakari Ailus sakari.ailus at iki.fi
Sun Nov 10 12:25:08 CET 2024


Hi Laurent, Jacopo,

Sorry for the late reply.

On Sun, Sep 17, 2023 at 06:45:55PM +0300, Laurent Pinchart wrote:
> > > > +		unsigned int xOddInc = 1;
> > > > +		unsigned int xEvenInc = 1;
> > > > +		unsigned int yOddInc = 1;
> > > > +		unsigned int yEvenInc = 1;
> > >
> > > What's the reason for exposing the odd and even increments separately,
> > > instead of a skipping factor ?
> > 
> > CCS expresses the two skipping factors separately. I agree there are
> > not many meaningful ways this two parameters can be combined, but if
> > one knows how a sensor work it might be more natural expressing them
> > in this way instead of simply saying x_skip = 2 ( == x_odd_inc=3,
> > x_even_inc=2)
> 
> Lots of sensors that support configuring skipping do no expose separate
> odd and even skipping increments. That's why I think a simpler parameter
> would be better.
> 
> Sakari, do you have an opinion on this ? Are there reasonable use cases
> for controlling the odd and even increments separately in a way that
> couldn't be expressed by a single skipping factor (for each direction) ?

Skipping (sub-sampling) is generally independent horizontally and
vertically, binning is not. On some sensors reasonable output sizes may be
impelemented a combination of the two.

-- 
Regards,
   
Sakari Ailus


More information about the libcamera-devel mailing list