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

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Nov 10 20:05:03 CET 2024


On Sun, Nov 10, 2024 at 11:25:08AM +0000, Sakari Ailus wrote:
> 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.

There's no disagreement that horizontal and vertical factors need to be
expressed independently. The question was about independent even and odd
increments.

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list