[libcamera-devel] libcamera on pinephone

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Jun 22 15:00:19 CEST 2022


On Wed, Jun 22, 2022 at 01:53:14PM +0100, Eric Curtin via libcamera-devel wrote:
> On Wed, 22 Jun 2022 at 12:51, Kieran Bingham wrote:
> > Quoting Eric Curtin via libcamera-devel (2022-06-22 12:38:50)
> > > On Tue, 21 Jun 2022 at 22:57, Pavel Machek via libcamera-devel wrote:
> > > >
> > > > Hi!
> > > >
> > > > > > Could you print the length of all planes and see how they look like in
> > > > > > memory ? Also note that the two planes have the same fd so they
> > > > > > seem to be contiguous in memory if I'm not mistaken ?
> > > >
> > > > That may be above my skill level (sorry).
> > > >
> > > > > We really need data offset support for V4L2 buffer planes in the V4L2
> > > > > API :-S See http://lore.kernel.org/linux-media/20200804192939.2251988-3-helen.koike@collabora.com/
> > > >
> > > > But I understood enough to realize that I420 is problematic, switched
> > > > to 1280x720-BA810x31384142 and now I have... something ;-).
> > > >
> > > > I do have some captured files. It does _not_ end in success. I'd like
> > > > to see what I'm getting, and I guess viewfinder would be useful.
> > > >
> > > > Dependency SDL2 found: YES 2.0.22 (cached)
> > > > Dependency SDL2_image found: YES 2.0.5 (cached)
> > > > Run-time dependency qt5 (modules: Core, Gui, Widgets) found: NO (tried pkgconfig)
> > > >
> > > > README.rst does not mention sdl. I believe it should?
> > >
> > > I can add this, SDL support was very recently added.
> > >
> > > >
> > > > for cam: [optional]
> > > >         libevent-dev
> > > >
> > > > mobian at mobian:~/g/libcamera$ LIBCAMERA_LOG_FILE=/tmp/camera.log LIBCAMERA_LOG_LEVELS=*:DEBUG build/src/cam/c\
> > > > am -c 1 -I --capture=50  -S
> > > > Using camera /base/i2c-csi/rear-camera at 4c as cam0
> > > > 0: 1280x720-SBGGR8
> > > >  * Pixelformat: SBGGR8 (1280x720)-(1280x720)/(+1,+1)
> > > >   - 1280x720
> > > > Unsupported pixel format SBGGR8
> > > > Failed to configure frame sink
> > > > Failed to start camera session
> > > > mobian at mobian:~/g/libcamera$
> > > >
> > > > Hmm. Is SDL not able to display SBGGR8? Is there anything else I can
> > > > try before trying to play with gstreamer?
> > >
> > > SDL sink at present only supports YUYV and MJPEG, because they are the
> > > only cameras I physically have and can test with.
> > >
> > > ls src/cam/sdl_texture*
> > >
> > > It would be cool to add more display/capture pixel format combinations alright.
> >
> > NV12 would be really beneficial I think!
> 
> Have you any recommendations on any "fake camera" software that fakes
> an NV12 without actually owning the hardware?

vivid should be able to generate that. It's supported by an out-of-tree
pipeline handler, available at
https://git.libcamera.org/libcamera/vivid.git/.

> Btw, I remember you were looking forward to the patch where kms_sink
> no longer has a requirement for display and pixel format to be
> identical. Laurent kindly merged that recently.

I think you meant capture and display size, not pixel format.

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list