lavu: add NV15 format support

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka 2023-12-27 22:51:23 +08:00
parent 1a3ec3f2f8
commit 2eb6cdc7e5
2 changed files with 14 additions and 0 deletions

View file

@ -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[] = {