|
FFmpeg
|
#include "config.h"#include "config_components.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/mem.h"#include "libavutil/pixdesc.h"#include "libavutil/timecode_internal.h"#include "libavutil/mathematics.h"#include "libavutil/mastering_display_metadata.h"#include "libavutil/stereo3d.h"#include "libavutil/tdrdi.h"#include "atsc_a53.h"#include "codec_desc.h"#include "encode.h"#include "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_RGB(pix_fmt) |
| #define | IS_YUV444(pix_fmt) |
| #define | IS_YUV422(pix_fmt) |
| #define | IS_GBRP(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__) |
| #define | to_nv_color_matrix(n) (uint32_t)(n) |
| #define | to_nv_color_pri(n) (uint32_t)(n) |
| #define | to_nv_color_trc(n) (uint32_t)(n) |
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_RGB | ( | pix_fmt | ) |
| #define IS_YUV444 | ( | pix_fmt | ) |
| #define IS_YUV422 | ( | pix_fmt | ) |
| #define IS_GBRP | ( | pix_fmt | ) |
| #define PRESET | ( | name, | |
| ... | |||
| ) | PRESET_ALIAS(name, name, __VA_ARGS__) |
|
static |
Definition at line 165 of file nvenc.c.
Referenced by nvenc_print_error().
|
static |
Definition at line 180 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 210 of file nvenc.c.
Referenced by nvenc_setup_device().
|
static |
Definition at line 264 of file nvenc.c.
Referenced by nvenc_load_libraries().
|
static |
Definition at line 350 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 394 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 405 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 417 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 443 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 479 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 496 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 694 of file nvenc.c.
Referenced by nvenc_setup_device().
|
static |
Definition at line 769 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 885 of file nvenc.c.
Referenced by nvenc_override_rate_control().
|
static |
Definition at line 923 of file nvenc.c.
Referenced by nvenc_override_rate_control(), and nvenc_setup_rate_control().
|
static |
Definition at line 1000 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 1014 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 1049 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1092 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1271 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1462 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1772 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1789 of file nvenc.c.
Referenced by nvenc_setup_encoder(), and reconfig_encoder().
|
static |
Definition at line 1822 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 1998 of file nvenc.c.
Referenced by nvenc_alloc_surface().
|
static |
Definition at line 2038 of file nvenc.c.
Referenced by nvenc_setup_surfaces().
|
static |
Definition at line 2094 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 2140 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 | ) |
|
static |
Definition at line 2311 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 2322 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
|
static |
Definition at line 2386 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
Definition at line 2440 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 2547 of file nvenc.c.
Referenced by nvenc_send_frame().
Definition at line 2598 of file nvenc.c.
Referenced by nvenc_send_frame().
Definition at line 2603 of file nvenc.c.
Referenced by nvenc_set_timestamp(), and process_output_surface().
Definition at line 2612 of file nvenc.c.
Referenced by nvenc_set_timestamp().
|
static |
Definition at line 2620 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 2677 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 2703 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 2724 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
|
static |
Definition at line 2823 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
|
static |
Definition at line 2835 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 2947 of file nvenc.c.
Referenced by nvenc_send_frame().
|
static |
Definition at line 3111 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 133 of file nvenc.c.
Referenced by nvenc_map_error().
| int averr |
Definition at line 134 of file nvenc.c.
Referenced by print_ssl_error().
| const char* desc |
Definition at line 135 of file nvenc.c.
Referenced by nvenc_map_error(), and nvenc_print_error().
| const { ... } nvenc_errors[] |
Referenced by nvenc_map_error().
1.8.17