| 1770 | #endif |
| 1771 | |
| 1772 | static 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 | |
| 1789 | static void compute_dar(AVCodecContext *avctx, int *dw, int *dh) { |
| 1790 | int sw, sh; |
no test coverage detected