FFmpeg
4.0
|
#include "config.h"
#include "nvenc.h"
#include "libavutil/hwcontext_cuda.h"
#include "libavutil/hwcontext.h"
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | GUIDTuple |
Macros | |
#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 [] |
struct { | |
NVENCSTATUS nverr | |
int averr | |
const char * desc | |
} | nvenc_errors [] |
#define NVENC_CAP 0x30 |
Definition at line 34 of file nvenc.c.
Referenced by nvenc_check_device().
#define IS_CBR | ( | rc | ) |
Definition at line 35 of file nvenc.c.
Referenced by nvenc_setup_h264_config(), and nvenc_setup_hevc_config().
#define IS_10BIT | ( | pix_fmt | ) |
Definition at line 55 of file nvenc.c.
Referenced by nvenc_check_capabilities(), and nvenc_setup_hevc_config().
#define IS_YUV444 | ( | pix_fmt | ) |
Definition at line 59 of file nvenc.c.
Referenced by nvenc_check_capabilities(), and nvenc_setup_hevc_config().
#define PRESET_ALIAS | ( | alias, | |
name, | |||
... | |||
) | [PRESET_ ## alias] = { NV_ENC_PRESET_ ## name ## _GUID, __VA_ARGS__ } |
Definition at line 601 of file nvenc.c.
Referenced by nvenc_map_preset().
#define PRESET | ( | name, | |
... | |||
) | PRESET_ALIAS(name, name, __VA_ARGS__) |
Definition at line 604 of file nvenc.c.
Referenced by nvenc_map_preset().
|
static |
Definition at line 95 of file nvenc.c.
Referenced by nvenc_print_error().
Definition at line 110 of file nvenc.c.
Referenced by ff_nvenc_send_frame(), nvenc_alloc_surface(), nvenc_find_free_reg_resource(), nvenc_load_libraries(), nvenc_open_session(), nvenc_register_frame(), nvenc_setup_encoder(), nvenc_setup_extradata(), nvenc_upload_frame(), and process_output_surface().
|
static |
Definition at line 120 of file nvenc.c.
Referenced by nvenc_load_libraries().
|
static |
Definition at line 138 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 182 of file nvenc.c.
Referenced by ff_nvenc_encode_close(), ff_nvenc_receive_packet(), ff_nvenc_send_frame(), nvenc_check_device(), nvenc_setup_encoder(), and nvenc_setup_surfaces().
|
static |
Definition at line 200 of file nvenc.c.
Referenced by ff_nvenc_encode_close(), ff_nvenc_receive_packet(), ff_nvenc_send_frame(), nvenc_check_device(), nvenc_setup_encoder(), and nvenc_setup_surfaces().
|
static |
Definition at line 219 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 245 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 281 of file nvenc.c.
Referenced by nvenc_check_capabilities().
|
static |
Definition at line 298 of file nvenc.c.
Referenced by nvenc_check_device(), and nvenc_setup_device().
|
static |
Definition at line 400 of file nvenc.c.
Referenced by nvenc_setup_device().
|
static |
Definition at line 485 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 606 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 632 of file nvenc.c.
Referenced by nvenc_override_rate_control().
|
static |
Definition at line 665 of file nvenc.c.
Referenced by nvenc_override_rate_control(), and nvenc_setup_rate_control().
|
static |
Definition at line 727 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 741 of file nvenc.c.
Referenced by nvenc_setup_rate_control().
|
static |
Definition at line 772 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 811 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 930 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1022 of file nvenc.c.
Referenced by nvenc_setup_codec_config().
|
static |
Definition at line 1102 of file nvenc.c.
Referenced by nvenc_setup_encoder().
|
static |
Definition at line 1115 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 1244 of file nvenc.c.
Referenced by nvenc_alloc_surface(), and nvenc_register_frame().
|
static |
Definition at line 1267 of file nvenc.c.
Referenced by nvenc_setup_surfaces().
|
static |
Definition at line 1324 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
|
static |
Definition at line 1365 of file nvenc.c.
Referenced by ff_nvenc_encode_init().
av_cold int ff_nvenc_encode_close | ( | AVCodecContext * | avctx | ) |
Definition at line 1398 of file nvenc.c.
Referenced by nvenc_old_init().
av_cold int ff_nvenc_encode_init | ( | AVCodecContext * | avctx | ) |
Definition at line 1473 of file nvenc.c.
Referenced by nvenc_old_init().
|
static |
Definition at line 1516 of file nvenc.c.
Referenced by ff_nvenc_send_frame().
|
static |
Definition at line 1528 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
Definition at line 1558 of file nvenc.c.
Referenced by nvenc_register_frame().
|
static |
Definition at line 1588 of file nvenc.c.
Referenced by nvenc_upload_frame().
|
static |
Definition at line 1642 of file nvenc.c.
Referenced by ff_nvenc_send_frame().
|
static |
Definition at line 1704 of file nvenc.c.
Referenced by ff_nvenc_send_frame().
|
inlinestatic |
Definition at line 1725 of file nvenc.c.
Referenced by ff_nvenc_send_frame().
|
inlinestatic |
Definition at line 1730 of file nvenc.c.
Referenced by nvenc_set_timestamp(), and process_output_surface().
|
static |
Definition at line 1739 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 1773 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
|
static |
Definition at line 1905 of file nvenc.c.
Referenced by ff_nvenc_receive_packet().
int ff_nvenc_send_frame | ( | AVCodecContext * | avctx, |
const AVFrame * | frame | ||
) |
Definition at line 1923 of file nvenc.c.
Referenced by ff_nvenc_encode_frame(), and nvenc_old_init().
int ff_nvenc_receive_packet | ( | AVCodecContext * | avctx, |
AVPacket * | pkt | ||
) |
Definition at line 2026 of file nvenc.c.
Referenced by ff_nvenc_encode_frame(), and nvenc_old_init().
int ff_nvenc_encode_frame | ( | AVCodecContext * | avctx, |
AVPacket * | pkt, | ||
const AVFrame * | frame, | ||
int * | got_packet | ||
) |
Definition at line 2062 of file nvenc.c.
Referenced by nvenc_old_init().
enum AVPixelFormat ff_nvenc_pix_fmts[] |
Definition at line 39 of file nvenc.c.
Referenced by nvenc_old_init().
NVENCSTATUS nverr |
Definition at line 63 of file nvenc.c.
Referenced by nvenc_map_error().
const char* desc |
Definition at line 65 of file nvenc.c.
Referenced by asf_read_picture(), asf_write_header1(), av_bsf_init(), av_frame_apply_cropping(), av_image_alloc(), av_image_copy_to_buffer(), av_image_fill_black(), av_image_fill_linesizes(), av_image_fill_pointers(), av_image_get_buffer_size(), av_image_get_linesize(), av_picture_crop(), av_picture_pad(), av_pix_fmt_count_planes(), av_pix_fmt_get_chroma_sub_sample(), av_pix_fmt_swap_endianness(), avcodec_align_dimensions(), avcodec_align_dimensions2(), avcodec_default_get_format(), avcodec_descriptor_get_by_name(), avcodec_get_chroma_sub_sample(), avcodec_get_type(), avcodec_profile_name(), bufref_wrap_interface(), call_resize_kernel(), check_image_pointers(), choose_pixel_fmt(), config_input(), config_input0(), config_input1(), config_input_main(), config_input_ref(), config_inputx(), config_inputy(), config_out_props(), config_output(), config_props(), config_props_output(), copy_picture_field(), create_all_formats(), d3d11va_device_create(), d3d11va_get_buffer(), d3d11va_transfer_data(), decode_frame(), descriptor_compare(), drm_map_frame(), encode_frame(), encode_init(), ff_all_formats(), ff_color_frame(), ff_draw_color(), ff_draw_horiz_band(), ff_draw_init(), ff_flac_parse_picture(), ff_frame_pool_get(), ff_frame_pool_video_init(), ff_get_format(), ff_guess_coded_bitrate(), ff_h264_draw_horiz_band(), ff_id3v2_write_apic(), ff_mediacodec_dec_init(), ff_qsv_process_data(), ff_scale_eval_dimensions(), ff_sws_alphablendaway(), ff_sws_init_output_funcs(), ff_vmafmotion_init(), fill_frameinfo_by_link(), filter_frame(), find_codec_or_die(), flac_write_picture(), flush_encoders(), frame_end(), geq_config_props(), get_aspect_ratio(), get_bit_depth(), get_codecs_sorted(), get_deinterleaved_format(), get_format(), get_pix_fmt_depth(), get_sockaddr(), get_video_buffer(), have_alpha_planar(), hScale16To15_c(), hScale16To19_c(), hwdownload_query_formats(), hwmap_config_output(), image_copy(), image_copy_16_to_8(), init(), init_image(), init_muxer(), init_video_param(), init_video_param_jpeg(), kmsgrab_free_desc(), kmsgrab_read_packet(), libopenjpeg_copy_to_packed16(), libopenjpeg_copyto16(), libopenjpeg_decode_frame(), libopenjpeg_ispacked(), libopenjpeg_matches_pix_fmt(), list_formats(), main(), map_pixel_format(), mj2_create_image(), nvenc_print_error(), opencl_frames_uninit(), opencl_get_buffer(), opencl_get_plane_format(), opencl_map_frame(), opencl_mem_flags_for_mapping(), opencl_pool_alloc(), opencl_pool_free(), opengl_draw(), opengl_fill_color_map(), opengl_init_context(), pix_fmt_match(), print_codecs(), print_digraph(), qsv_decode_init(), qsv_init_surface(), qsv_map_from(), query_formats(), raw_decode(), raw_encode_init(), raw_init_decoder(), read_gab2_sub(), request_frame(), rgb48Toxyz12(), rkmpp_release_frame(), rkmpp_retrieve_frame(), rv10_write_header(), show_codecs(), show_help_codec(), show_help_muxer(), shuffleplanes_config_input(), smv_img_pnt(), smvjpeg_decode_frame(), swscale(), thumbnail_kernel(), tiff_unpack_strip(), transcode_init(), unsharp_opencl_make_filter_params(), unsupported_codec(), v4l2_read_header(), vaapi_map_to_memory(), validate_avframe_allocation(), verify_md5(), video_frame_cksum(), video_get_buffer(), wrap_texture_buf(), write_header(), write_packet(), xwd_encode_frame(), xyz12Torgb48(), yuv2gbrp16_full_X_c(), and yuv2gbrp_full_X_c().
const { ... } nvenc_errors[] |
Referenced by nvenc_map_error().