[FFmpeg-cvslog] avcodec/hevcdec: Declare that VDPAU can handle HEVC 4:4:4 content
ManojGuptaBonda
git at videolan.org
Sun May 5 21:36:04 EEST 2019
ffmpeg | branch: master | ManojGuptaBonda <mbonda at nvidia.com> | Fri Apr 26 10:01:36 2019 +0530| [d7d82cfcd4394fde5f9b53ab0251ce1b55b674a7] | committer: Philip Langdale
avcodec/hevcdec: Declare that VDPAU can handle HEVC 4:4:4 content
The latest generation video decoder on the Turing chips supports
decoding HEVC 4:4:4. This change adds AV_PIX_FMT_VDPAU as a valid format
for HEVC 4:4:4 8 bit.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7d82cfcd4394fde5f9b53ab0251ce1b55b674a7
---
Changelog | 1 +
libavcodec/hevcdec.c | 9 ++++++++-
libavcodec/version.h | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/Changelog b/Changelog
index a3fa0c14a2..a1236bde34 100644
--- a/Changelog
+++ b/Changelog
@@ -26,6 +26,7 @@ version <next>:
- lscr decoder
- lagfun filter
- asoftclip filter
+- Support decoding of HEVC 4:4:4 content in vdpau
version 4.1:
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 857c10dd12..515b346535 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -408,8 +408,15 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
*fmt++ = AV_PIX_FMT_CUDA;
#endif
break;
- case AV_PIX_FMT_YUV420P12:
case AV_PIX_FMT_YUV444P:
+#if CONFIG_HEVC_VDPAU_HWACCEL
+ *fmt++ = AV_PIX_FMT_VDPAU;
+#endif
+#if CONFIG_HEVC_NVDEC_HWACCEL
+ *fmt++ = AV_PIX_FMT_CUDA;
+#endif
+ break;
+ case AV_PIX_FMT_YUV420P12:
case AV_PIX_FMT_YUV444P10:
case AV_PIX_FMT_YUV444P12:
#if CONFIG_HEVC_NVDEC_HWACCEL
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 195e21bfbe..d11beb7885 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 52
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
More information about the ffmpeg-cvslog
mailing list