On 10/04/2017 22:18, Vittorio Giovara wrote: > On Mon, Apr 10, 2017 at 4:16 PM, Vittorio Giovara > <vittorio.giov...@gmail.com> wrote: >> On Mon, Apr 10, 2017 at 6:42 AM, Luca Barbato <lu_z...@gentoo.org> wrote: >>> From: Paul B Mahol <one...@gmail.com> >>> >>> Signed-off-by: Paul B Mahol <one...@gmail.com> >>> Signed-off-by: Luca Barbato <lu_z...@gentoo.org> >>> --- >>> libavutil/pixdesc.c | 28 ++++++++++++++++++++++++++++ >>> libavutil/pixfmt.h | 4 ++++ >>> 2 files changed, 32 insertions(+) >>> >>> diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c >>> index 815e084..fb2e1a1 100644 >>> --- a/libavutil/pixdesc.c >>> +++ b/libavutil/pixdesc.c >>> @@ -1683,6 +1683,34 @@ static const AVPixFmtDescriptor >>> av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { >>> }, >>> .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE, >>> }, >>> + [AV_PIX_FMT_GBRAP10LE] = { >>> + .name = "gbrap10le", >>> + .nb_components = 4, >>> + .log2_chroma_w = 0, >>> + .log2_chroma_h = 0, >>> + .comp = { >>> + { 2, 2, 0, 0, 10, 1, 9, 1 }, /* R */ >>> + { 0, 2, 0, 0, 10, 1, 9, 1 }, /* G */ >>> + { 1, 2, 0, 0, 10, 1, 9, 1 }, /* B */ >>> + { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */ >>> + }, >>> + .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | >>> + AV_PIX_FMT_FLAG_ALPHA, >>> + }, >>> + [AV_PIX_FMT_GBRAP10BE] = { >>> + .name = "gbrap10be", >>> + .nb_components = 4, >>> + .log2_chroma_w = 0, >>> + .log2_chroma_h = 0, >>> + .comp = { >>> + { 2, 2, 0, 0, 10, 1, 9, 1 }, /* R */ >>> + { 0, 2, 0, 0, 10, 1, 9, 1 }, /* G */ >>> + { 1, 2, 0, 0, 10, 1, 9, 1 }, /* B */ >>> + { 3, 2, 0, 0, 10, 1, 9, 1 }, /* A */ >>> + }, >>> + .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | >>> + AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA, >>> + }, >>> [AV_PIX_FMT_GBRAP12LE] = { >>> .name = "gbrap12le", >>> .nb_components = 4, >>> diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h >>> index 3c670fc..fc1969e 100644 >>> --- a/libavutil/pixfmt.h >>> +++ b/libavutil/pixfmt.h >>> @@ -234,6 +234,9 @@ enum AVPixelFormat { >>> AV_PIX_FMT_GRAY12BE, ///< Y , 12bpp, big-endian >>> AV_PIX_FMT_GRAY12LE, ///< Y , 12bpp, little-endian >>> >>> + AV_PIX_FMT_GBRAP10BE, ///< planar GBR 4:4:4:4 40bpp, big-endian >>> + AV_PIX_FMT_GBRAP10LE, ///< planar GBR 4:4:4:4 40bpp, little-endian >>> + >>> AV_PIX_FMT_NB, ///< number of pixel formats, DO NOT USE THIS if >>> you want to link with shared libav* because the number of formats might >>> differ between versions >>> }; >>> >>> @@ -280,6 +283,7 @@ enum AVPixelFormat { >>> #define AV_PIX_FMT_GBRP12 AV_PIX_FMT_NE(GBRP12BE, GBRP12LE) >>> #define AV_PIX_FMT_GBRP16 AV_PIX_FMT_NE(GBRP16BE, GBRP16LE) >>> >>> +#define AV_PIX_FMT_GBRAP10 AV_PIX_FMT_NE(GBRAP10BE, GBRAP10LE) >>> #define AV_PIX_FMT_GBRAP12 AV_PIX_FMT_NE(GBRAP12BE, GBRAP12LE) >>> #define AV_PIX_FMT_GBRAP16 AV_PIX_FMT_NE(GBRAP16BE, GBRAP16LE) >> >> ok, but fill in APIchanges and bump version.h >> -- >> Vittorio > > also, no swscale changes required? >
They are if you want to process it, I'd look at them later. lu _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel