diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 6ded9467b0..27f052400f 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2793,6 +2793,18 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { }, .flags = AV_PIX_FMT_FLAG_PLANAR, }, + [AV_PIX_FMT_NV15] = { + .name = "nv15", + .nb_components = 3, + .log2_chroma_w = 1, + .log2_chroma_h = 1, + .comp = { + { 0, 10, 0, 0, 10 }, /* Y */ + { 1, 20, 0, 0, 10 }, /* U */ + { 1, 20, 10, 0, 10 }, /* V */ + }, + .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BITSTREAM, + }, }; static const char * const color_range_names[] = { diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index a26c72d56b..9c6cd4fb6a 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -429,6 +429,8 @@ enum AVPixelFormat { AV_PIX_FMT_GBRAP14BE, ///< planar GBR 4:4:4:4 56bpp, big-endian AV_PIX_FMT_GBRAP14LE, ///< planar GBR 4:4:4:4 56bpp, little-endian + AV_PIX_FMT_NV15, ///< like P010, but has no zero padding bits, 15bpp, 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 };