|
FFmpeg
4.4.9
|
#include "config.h"#include "nvenc.h"#include "hevc_sei.h"#include "libavutil/hwcontext_cuda.h"#include "libavutil/hwcontext.h"#include "libavutil/cuda_check.h"#include "libavutil/imgutils.h"#include "libavutil/avassert.h"#include "libavutil/mem.h"#include "libavutil/pixdesc.h"#include "atsc_a53.h"#include "encode.h"#include "internal.h"#include "packet_internal.h"Go to the source code of this file.
Data Structures | |
| struct | GUIDTuple |
Macros | |
| #define | CHECK_CU(x) FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x) |
| #define | NVENC_CAP 0x30 |
| #define | IS_CBR(rc) |
| #define | IS_10BIT(pix_fmt) |
| #define | IS_YUV444(pix_fmt) |
| #define | PRESET_ALIAS(alias, name, ...) [PRESET_ ## alias] = { NV_ENC_PRESET_ ## name ## _GUID, __VA_ARGS__ } |
| #define | PRESET(name, ...) PRESET_ALIAS(name, name, __VA_ARGS__) |
Variables | |
| enum AVPixelFormat | ff_nvenc_pix_fmts [] |
| const AVCodecHWConfigInternal *const | ff_nvenc_hw_configs [] |
| struct { | |
| NVENCSTATUS nverr | |
| int averr | |
| const char * desc | |
| } | nvenc_errors [] |
| #define CHECK_CU | ( | x | ) | FF_CUDA_CHECK_DL(avctx, dl_fn->cuda_dl, x) |
| #define IS_CBR | ( | rc | ) |
| #define IS_10BIT | ( | pix_fmt | ) |
| #define IS_YUV444 | ( | pix_fmt | ) |
| #define PRESET | ( | name, | |
| ... | |||
| ) | PRESET_ALIAS(name, name, __VA_ARGS__) |
|
static |
Definition at line 117 of file nvenc.c.
Referenced by nvenc_print_error().
|
static |
Definition at line 132 of file nvenc.c.
Referenced by nvenc_alloc_surface(), nvenc_find_free_reg_resource(), nvenc_load_libraries(), nvenc_open_session(), nvenc_send_frame(), nvenc_setup_encoder(), nvenc_setup_extradata(), nvenc_upload_frame(), process_output_surface(), and reconfig_encoder().
|
static |
Definition at line 162 of file nvenc.c.
Referenced by nvenc_setup_device().
|
static |
Definition at line 216 of file nvenc.c.
Referenced by nvenc_load_libraries().
|
static |
Definition at line 266 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 310 of file nvenc.c.
Referenced by ff_nvenc_encode_close(), ff_nvenc_receive_packet(), nvenc_check_device(), nvenc_send_frame(), nvenc_setup_encoder(), and nvenc_setup_surfaces().
|
static |
Definition at line 321 of file nvenc.c.
Referenced by ff_nvenc_encode_close(), ff_nvenc_receive_packet(), nvenc_check_device(), nvenc_send_frame(), nvenc_setup_encoder(), and nvenc_setup_surfaces().
|
static |
Definition at line 333 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 359 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 395 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 412 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 529 of file nvenc.c.
Referenced by nvenc_setup_device().
|
static |
Definition at line 604 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 715 of file nvenc.c.
Referenced by nvenc_override_rate_control().
|
static |
Definition at line 748 of file nvenc.c.
Referenced by nvenc_override_rate_control(), and nvenc_setup_rate_control().
|
static |
Definition at line 810 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 824 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 859 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 898 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1044 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1143 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1232 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1245 of file nvenc.c.
Referenced by nvenc_setup_encoder(), and reconfig_encoder().
|
static |
Definition at line 1259 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 1415 of file nvenc.c.
Referenced by nvenc_alloc_surface().
|
static |
Definition at line 1438 of file nvenc.c.
Referenced by nvenc_setup_surfaces().
|
static |
Definition at line 1494 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 1535 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
| av_cold int ff_nvenc_encode_close | ( | AVCodecContext * | avctx | ) |
| av_cold int ff_nvenc_encode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 1645 of file nvenc.c.
Referenced by nvenc_old_init().
|
static |
Definition at line 1692 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 1704 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
|
static |
Definition at line 1768 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
Definition at line 1822 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 1884 of file nvenc.c.
Referenced by nvenc_send_frame().
|
inlinestatic |
Definition at line 1917 of file nvenc.c.
Referenced by nvenc_send_frame().
|
inlinestatic |
Definition at line 1922 of file nvenc.c.
Referenced by nvenc_set_timestamp(), and process_output_surface().
|
static |
Definition at line 1931 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 1945 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
|
static |
Definition at line 2072 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
|
static |
Definition at line 2084 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 2176 of file nvenc.c.
Referenced by ff_nvenc_encode_flush(), and ff_nvenc_receive_packet().
| int ff_nvenc_receive_packet | ( | AVCodecContext * | avctx, |
| AVPacket * | pkt | ||
| ) |
| av_cold void ff_nvenc_encode_flush | ( | AVCodecContext * | avctx | ) |
| enum AVPixelFormat ff_nvenc_pix_fmts[] |
| const AVCodecHWConfigInternal* const ff_nvenc_hw_configs[] |
| NVENCSTATUS nverr |
Definition at line 85 of file nvenc.c.
Referenced by nvenc_map_error().
| const char* desc |
Definition at line 87 of file nvenc.c.
Referenced by nvenc_map_error(), and nvenc_print_error().
| const { ... } nvenc_errors[] |
Referenced by nvenc_map_error().