[vlc-devel] [PATCH] avcodec: add mappings for gbrp 9/10-bit LE, BE

Tristan Matthews le.businessman at gmail.com
Tue Jun 23 14:37:36 CEST 2015


On Tue, Jun 23, 2015 at 4:41 AM, Jean-Baptiste Kempf <jb at videolan.org>
wrote:

> This is missing version checks.
>

We require libavutil 52.0.0 or greater, and these were introduced in
libavutil 51.19.0 (libav) and 51.29.0 (ffmpeg).

Best,
Tristan


>
> On 20 Jun, Tristan Matthews wrote :
> > Fixes #14909
> > ---
> >  modules/codec/avcodec/chroma.c | 4 ++++
> >  src/misc/fourcc.c              | 4 ++++
> >  2 files changed, 8 insertions(+)
> >
> > diff --git a/modules/codec/avcodec/chroma.c
> b/modules/codec/avcodec/chroma.c
> > index 99224e2..efd3153 100644
> > --- a/modules/codec/avcodec/chroma.c
> > +++ b/modules/codec/avcodec/chroma.c
> > @@ -135,6 +135,10 @@ static const struct
> >      {VLC_CODEC_RGBP, PIX_FMT_PAL8, 0, 0, 0},
> >
> >      {VLC_CODEC_GBR_PLANAR, AV_PIX_FMT_GBRP, 0, 0, 0 },
> > +    {VLC_CODEC_GBR_PLANAR_9L, AV_PIX_FMT_GBRP9LE, 0, 0, 0 },
> > +    {VLC_CODEC_GBR_PLANAR_9B, AV_PIX_FMT_GBRP9BE, 0, 0, 0 },
> > +    {VLC_CODEC_GBR_PLANAR_10L, AV_PIX_FMT_GBRP10LE, 0, 0, 0 },
> > +    {VLC_CODEC_GBR_PLANAR_10B, AV_PIX_FMT_GBRP10BE, 0, 0, 0 },
> >
> >      /* XYZ */
> >  #if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100)
> > diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
> > index 801146d..00e3609 100644
> > --- a/src/misc/fourcc.c
> > +++ b/src/misc/fourcc.c
> > @@ -590,6 +590,10 @@ static const struct
> >      { { VLC_CODEC_YUV422A },                   PLANAR_8(4, 2, 1) },
> >
> >      { { VLC_CODEC_GBR_PLANAR },                PLANAR_8(3, 1, 1) },
> > +    { { VLC_CODEC_GBR_PLANAR_9L,
> > +        VLC_CODEC_GBR_PLANAR_9B },             PLANAR_16(3, 1, 1, 9) },
> > +    { { VLC_CODEC_GBR_PLANAR_10L,
> > +        VLC_CODEC_GBR_PLANAR_10B },            PLANAR_16(3, 1, 1, 10) },
> >
> >      { { VLC_CODEC_I420_10L,
> >          VLC_CODEC_I420_10B },                  PLANAR_16(3, 2, 2, 10) },
> > --
> > 2.1.4
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
>
> --
> With my kindest regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150623/bba837ef/attachment.html>


More information about the vlc-devel mailing list