[libcamera-devel] [PATCH 02/13] include: drm_fourcc: Add AVUY and XVUY 4:4:4 packet formats

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Aug 3 14:10:28 CEST 2022


On Wed, Aug 03, 2022 at 02:01:39PM +0200, Jacopo Mondi wrote:
> Hi Laurent
> 
> On Mon, Aug 01, 2022 at 03:05:32AM +0300, Laurent Pinchart via libcamera-devel wrote:
> > Add FourCCs for the YUV 4:4:4 packed formats AVUY8888 and XVUY8888.
> >
> > This is merged in the upstream kernel as 53618649ca6d ("drm/fourcc: Add
> > formats for packed YUV 4:4:4 AVUY and XVUY permutations").
> 
> Is this upstreamed already ? can't find it in linux-next or in Linus
> branches

It's in the drm-misc-next branch
(git://anongit.freedesktop.org/drm/drm-misc), it should hit mainline in
v5.21.

> > Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> > ---
> >  include/linux/drm_fourcc.h | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h
> > index cc69eecc606f..1496e097004c 100644
> > --- a/include/linux/drm_fourcc.h
> > +++ b/include/linux/drm_fourcc.h
> > @@ -205,7 +205,9 @@ extern "C" {
> >  #define DRM_FORMAT_VYUY		fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */
> >
> >  #define DRM_FORMAT_AYUV		fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */
> > +#define DRM_FORMAT_AVUY8888	fourcc_code('A', 'V', 'U', 'Y') /* [31:0] A:Cr:Cb:Y 8:8:8:8 little endian */
> >  #define DRM_FORMAT_XYUV8888	fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endian */
> > +#define DRM_FORMAT_XVUY8888	fourcc_code('X', 'V', 'U', 'Y') /* [31:0] X:Cr:Cb:Y 8:8:8:8 little endian */
> >  #define DRM_FORMAT_VUY888	fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y 8:8:8 little endian */
> >  #define DRM_FORMAT_VUY101010	fourcc_code('V', 'U', '3', '0') /* Y followed by U then V, 10:10:10. Non-linear modifier only */
> 
> Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list