FFmpeg
Loading...
Searching...
No Matches
nvenc_hevc.c File Reference
#include "libavutil/internal.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "nvenc.h"

Go to the source code of this file.

Macros

#define OFFSET(x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Variables

static const AVOption options []
 
static const FFCodecDefault defaults []
 
static const AVClass hevc_nvenc_class
 
const FFCodec ff_hevc_nvenc_encoder
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:
offsetof(NvencContext, x)

Definition at line 26 of file nvenc_hevc.c.

◆ VE

Definition at line 27 of file nvenc_hevc.c.

Variable Documentation

◆ options

const AVOption options[]
static

Definition at line 28 of file nvenc_hevc.c.

◆ defaults

const FFCodecDefault defaults[]
static
Initial value:
= {
{ "b", "2M" },
{ "qmin", "-1" },
{ "qmax", "-1" },
{ "qdiff", "-1" },
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "g", "-1" },
{ "bf", "-1" },
{ "refs", "0" },
{ NULL },
}
#define NULL
Definition coverity.c:32

Definition at line 197 of file nvenc_hevc.c.

◆ hevc_nvenc_class

const AVClass hevc_nvenc_class
static
Initial value:
= {
.class_name = "hevc_nvenc",
.item_name = av_default_item_name,
.option = options,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

Definition at line 210 of file nvenc_hevc.c.

◆ ff_hevc_nvenc_encoder

const FFCodec ff_hevc_nvenc_encoder
Initial value:
= {
.p.name = "hevc_nvenc",
CODEC_LONG_NAME("NVIDIA NVENC hevc encoder"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(NvencContext),
.p.priv_class = &hevc_nvenc_class,
.defaults = defaults,
.p.wrapper_name = "nvenc",
.hw_configs = ff_nvenc_hw_configs,
}
static const FFCodecDefault defaults[]
Definition amfenc_av1.c:723
#define CODEC_PIXFMTS_ARRAY(array)
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
#define FF_CODEC_RECEIVE_PACKET_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition codec.h:147
#define AV_CODEC_CAP_ENCODER_FLUSH
This encoder can be flushed using avcodec_flush_buffers().
Definition codec.h:154
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition codec.h:79
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_HARDWARE
Codec is backed by a hardware implementation.
Definition codec.h:133
@ AV_CODEC_ID_HEVC
Definition codec_id.h:223
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
av_cold int ff_nvenc_encode_init(AVCodecContext *avctx)
Definition nvenc.c:2118
int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
Definition nvenc.c:3177
const AVCodecHWConfigInternal *const ff_nvenc_hw_configs[]
Definition nvenc.c:92
enum AVPixelFormat ff_nvenc_pix_fmts[]
Definition nvenc.c:53
av_cold int ff_nvenc_encode_close(AVCodecContext *avctx)
Definition nvenc.c:2033
av_cold void ff_nvenc_encode_flush(AVCodecContext *avctx)
Definition nvenc.c:3228
static const AVClass hevc_nvenc_class
Definition nvenc_hevc.c:210
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
Definition pixfmt.h:766
@ AVCOL_RANGE_JPEG
Full range content.
Definition pixfmt.h:783

Definition at line 217 of file nvenc_hevc.c.