[libcamera-devel] [PATCH 1/4] libcamera: v4l2_subdevice: Forward-declare MediaEntity

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Feb 13 11:59:26 CET 2019


Hi,

On 2019-02-13 00:38:17 +0200, Laurent Pinchart wrote:
> Hi Jacopo,
> 
> Thank you for the patch.
> 
> On Tue, Feb 12, 2019 at 11:20:18PM +0100, Jacopo Mondi wrote:
> > The V4L2Subdevice class uses MediaEntity instances, and the
> > corresponding header is not included.
> > 
> > Fix this by forward declaring the MediaEntity class.
> > 
> > Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice")
> > Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
> > ---
> >  src/libcamera/include/v4l2_subdevice.h | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/src/libcamera/include/v4l2_subdevice.h b/src/libcamera/include/v4l2_subdevice.h
> > index 8fd666078985..ffa92100ffbc 100644
> > --- a/src/libcamera/include/v4l2_subdevice.h
> > +++ b/src/libcamera/include/v4l2_subdevice.h
> > @@ -12,6 +12,7 @@
> >  namespace libcamera {
> >  
> >  struct Rectangle;
> > +class MediaEntity;
> 
> Should we sort this alphabetically ? Apart from that,

I think we should, with that fixed

Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>

> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> 
> >  
> >  struct V4L2SubdeviceFormat {
> >  	uint32_t mbus_code;
> 
> -- 
> Regards,
> 
> Laurent Pinchart
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

-- 
Regards,
Niklas Söderlund


More information about the libcamera-devel mailing list