Quoting Luca Barbato (2016-09-24 13:58:08) > From: Yogender Gupta <[email protected]> > > Signed-off-by: Luca Barbato <[email protected]> > --- > libavcodec/nvenc.c | 83 > +++++++++++++++++++++++++++++++++++++++++++++++-- > libavcodec/nvenc.h | 6 ++++ > libavcodec/nvenc_hevc.c | 8 +++-- > 3 files changed, 92 insertions(+), 5 deletions(-) > > diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c > index 1084f83..44c28d7 100644 > --- a/libavcodec/nvenc.c > +++ b/libavcodec/nvenc.c > @@ -88,13 +88,21 @@ > const enum AVPixelFormat ff_nvenc_pix_fmts[] = { > AV_PIX_FMT_NV12, > AV_PIX_FMT_YUV420P, > + AV_PIX_FMT_P010, > AV_PIX_FMT_YUV444P, > + AV_PIX_FMT_YUV444P16, > #if CONFIG_CUDA > AV_PIX_FMT_CUDA, > #endif > AV_PIX_FMT_NONE > }; > > +#define IS_10BIT(pix_fmt) (pix_fmt == AV_PIX_FMT_P010 || \ > + pix_fmt == AV_PIX_FMT_YUV444P16)
The name is misleading, only one of those is 10bit. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
