[libcamera-devel] [PATCH v4 16/16] py: examples: Add simple-cam.py

Laurent Pinchart laurent.pinchart at ideasonboard.com
Mon Jun 6 13:27:43 CEST 2022


On Mon, Jun 06, 2022 at 11:11:16AM +0200, Jacopo Mondi wrote:
> On Mon, Jun 06, 2022 at 12:00:16PM +0300, Tomi Valkeinen wrote:
> > On 05/06/2022 15:46, Jacopo Mondi wrote:
> > > On Mon, May 30, 2022 at 05:27:22PM +0300, Tomi Valkeinen wrote:
> > > > Add a Python version of simple-cam from:
> > > >
> > > > https://git.libcamera.org/libcamera/simple-cam.git
> > > >
> > > > Let's keep this in the libcamera repository until the Python API has
> > > > stabilized a bit more, and then we could move this to the simple-cam
> > > > repo.
> > >
> > > Looks very nice and it could indeed be added to the simple-cam
> > > repository (or should we create an example directory in libcamera
> > > sources ?)
> >
> > I think examples in libcamera repository makes sense. Why was the simple-cam
> > added to a separate repository originally?
> 
> I don't recall we had any discussion. Simple-cam started as a
> live-coded example for a conference talk, than it has been made a
> "real" application later by Kieran, but I don't remember if we had
> discussions about where to keep it.
> 
> Probably we considered cam and qcam more useful examples ?
> One other thing is that if we keep simple-cam in libcamera repository,
> it will have to be updated when the API change, which is good as we
> know it will be up to date, but is one more thing to maintain on the
> other hand...

One of the reasons we've kept it in a separate repository was to
showcase the build system for a standalone libcamera application. That's
less of a concern for a Python application.

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list