[libcamera-devel] [RFC 1/1] android: Introduce CameraCapabilties class

Jacopo Mondi jacopo at jmondi.org
Mon Jun 21 16:13:08 CEST 2021


Hi Laurent,

On Mon, Jun 21, 2021 at 05:06:38PM +0300, Laurent Pinchart wrote:
> Hi Jacopo,
>
> On Mon, Jun 21, 2021 at 03:53:45PM +0200, Jacopo Mondi wrote:

[big snip]

> > > >  /*
> > > >   * \struct Camera3StreamConfig
> > > >   * \brief Data to store StreamConfiguration associated with camera3_stream(s)
> > > > @@ -512,242 +420,7 @@ int CameraDevice::initialize(const CameraConfigData *cameraConfigData)
> > > >  		orientation_ = 0;
> > > >  	}
> > >
> > > Shouldn't the code above be moved too ?
> >
> > It seems to me it deals with run time stream configuration, not to
> > building the static list of available camera streams like the part I
> > moved, doesn't it ?
>
> I meant the part related to orientation and location, isn't that static
> ?

Ah sorry, didn't get it.
I considered that, but that would have required moving the
configuration file parsing to the capabilities class, and what's will
be in the configuration file is still little bit still in flux

Also, the CameraDevice::initialize() would then be just a call to
capabilties_.initialize().

What do you think ?


More information about the libcamera-devel mailing list