Browse Source

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@rothenpieler.org>
tags/n3.2
Sven C. Dack Timo Rothenpieler 9 years ago
parent
commit
da4d0fa86b
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavcodec/nvenc.c

+ 6
- 0
libavcodec/nvenc.c View File

@@ -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;
}



Loading…
Cancel
Save