Jump to content

FFmpeg: Difference between revisions

33 bytes added ,  18 May 2020
Line 225: Line 225:
</syntaxhighlight>
</syntaxhighlight>


{{ hidden | NVENC Codec Ctx |
<syntaxhighlight lang="c++">
<syntaxhighlight lang="c++">
   if ((ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_CUDA, NULL,
   if ((ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_CUDA, NULL,
Line 258: Line 259:
   av_opt_set(codec_ctx->priv_data, "nb_surfaces", "0", 0);
   av_opt_set(codec_ctx->priv_data, "nb_surfaces", "0", 0);
</syntaxhighlight>
</syntaxhighlight>
}}


==C++ API==
==C++ API==