[FFmpeg-devel] [PATCH v1 1/2] avcodec/nvenc_h264: add spatial_aq and temporal_aq option to consistent with nvenc_hevc

lance.lmwang at gmail.com lance.lmwang at gmail.com
Sat May 2 14:15:56 EEST 2020


On Wed, Apr 15, 2020 at 10:09:00AM +0800, lance.lmwang at gmail.com wrote:
> From: Limin Wang <lance.lmwang at gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> ---
>  libavcodec/nvenc_h264.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
> index 479155fe15..a2e77e67d0 100644
> --- a/libavcodec/nvenc_h264.c
> +++ b/libavcodec/nvenc_h264.c
> @@ -99,7 +99,9 @@ static const AVOption options[] = {
>      { "b_adapt",      "When lookahead is enabled, set this to 0 to disable adaptive B-frame decision",
>                                                              OFFSET(b_adapt),      AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0,  1, VE },
>      { "spatial-aq",   "set to 1 to enable Spatial AQ",      OFFSET(aq),           AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
> +    { "spatial_aq",   "set to 1 to enable Spatial AQ",      OFFSET(aq),           AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
>      { "temporal-aq",  "set to 1 to enable Temporal AQ",     OFFSET(temporal_aq),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
> +    { "temporal_aq",  "set to 1 to enable Temporal AQ",     OFFSET(temporal_aq),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
>      { "zerolatency",  "Set 1 to indicate zero latency operation (no reordering delay)",
>                                                              OFFSET(zerolatency),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
>      { "nonref_p",     "Set this to 1 to enable automatic insertion of non-reference P-frames",
> -- 
> 2.21.0
> 

will apply the patchset if no objects.

-- 
Thanks,
Limin Wang


More information about the ffmpeg-devel mailing list