MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / nvenc_setup_codec_config

Function nvenc_setup_codec_config

libavcodec/nvenc.c:1772–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770#endif
1771
1772static av_cold int nvenc_setup_codec_config(AVCodecContext *avctx)
1773{
1774 switch (avctx->codec->id) {
1775 case AV_CODEC_ID_H264:
1776 return nvenc_setup_h264_config(avctx);
1777 case AV_CODEC_ID_HEVC:
1778 return nvenc_setup_hevc_config(avctx);
1779#if CONFIG_AV1_NVENC_ENCODER
1780 case AV_CODEC_ID_AV1:
1781 return nvenc_setup_av1_config(avctx);
1782#endif
1783 /* Earlier switch/case will return if unknown codec is passed. */
1784 }
1785
1786 return 0;
1787}
1788
1789static void compute_dar(AVCodecContext *avctx, int *dw, int *dh) {
1790 int sw, sh;

Callers 1

nvenc_setup_encoderFunction · 0.85

Calls 3

nvenc_setup_h264_configFunction · 0.85
nvenc_setup_hevc_configFunction · 0.85
nvenc_setup_av1_configFunction · 0.85

Tested by

no test coverage detected