[FFmpeg-cvslog] avcodec/nvenc: add test for Temporal AQ support
Sven C. Dack
git at videolan.org
Wed Oct 19 14:02:50 EEST 2016
ffmpeg | branch: master | Sven C. Dack <sven.c.dack at sky.com> | Fri Oct 14 16:02:54 2016 +0100| [da4d0fa86b48d79398b0ccf7ecadc6ff69e3c947] | committer: Timo Rothenpieler
avcodec/nvenc: add test for Temporal AQ support
Adds a check to see if the hardware supports temporal aq.
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da4d0fa86b48d79398b0ccf7ecadc6ff69e3c947
---
libavcodec/nvenc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index e6c1c94..2505c3d 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -356,6 +356,12 @@ static int nvenc_check_capabilities(AVCodecContext *avctx)
return AVERROR(ENOSYS);
}
+ ret = nvenc_check_cap(avctx, NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ);
+ if (ctx->temporal_aq > 0 && ret <= 0) {
+ av_log(avctx, AV_LOG_VERBOSE, "Temporal AQ not supported\n");
+ return AVERROR(ENOSYS);
+ }
+
return 0;
}
More information about the ffmpeg-cvslog
mailing list