Libav
Macros | Functions | Variables
nvenc_h264.c File Reference
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "nvenc.h"

Go to the source code of this file.

Macros

#define OFFSET(x)   offsetof(NVENCContext, x)
 
#define VE   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Functions

static int nvenc_old_init (AVCodecContext *avctx)
 

Variables

static const AVOption options []
 
static const AVClass nvenc_h264_class
 
static const AVCodecDefault defaults []
 
AVCodec ff_h264_nvenc_encoder
 
static const AVClass nvenc_h264_old_class
 
AVCodec ff_nvenc_h264_encoder
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(NVENCContext, x)

Definition at line 27 of file nvenc_h264.c.

◆ VE

Definition at line 28 of file nvenc_h264.c.

Function Documentation

◆ nvenc_old_init()

static int nvenc_old_init ( AVCodecContext avctx)
static

Definition at line 115 of file nvenc_h264.c.

Variable Documentation

◆ options

const AVOption options[]
static

Definition at line 29 of file nvenc_h264.c.

◆ nvenc_h264_class

const AVClass nvenc_h264_class
static
Initial value:
= {
.class_name = "nvenc_h264",
.item_name = av_default_item_name,
.option = options,
}
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
av_default_item_name
Definition: dnxhdenc.c:55
static const AVOption options[]
Definition: nvenc_h264.c:29

Definition at line 80 of file nvenc_h264.c.

◆ defaults

const AVCodecDefault defaults[]
static
Initial value:
= {
{ "b", "0" },
{ "qmin", "-1" },
{ "qmax", "-1" },
{ "qdiff", "-1" },
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ NULL },
}
NULL
Definition: eval.c:55

Definition at line 87 of file nvenc_h264.c.

◆ ff_h264_nvenc_encoder

AVCodec ff_h264_nvenc_encoder
Initial value:
= {
.name = "h264_nvenc",
.long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H.264 encoder"),
.priv_data_size = sizeof(NVENCContext),
.priv_class = &nvenc_h264_class,
.capabilities = AV_CODEC_CAP_DELAY,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
av_cold int ff_nvenc_encode_close(AVCodecContext *avctx)
Definition: nvenc.c:951
static const AVCodecDefault defaults[]
Definition: nvenc_h264.c:87
#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: avcodec.h:863
enum AVPixelFormat ff_nvenc_pix_fmts[]
Definition: nvenc.c:88
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
static const AVClass nvenc_h264_class
Definition: nvenc_h264.c:80
av_cold int ff_nvenc_encode_init(AVCodecContext *avctx)
Definition: nvenc.c:1006
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: nvenc.c:1379
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:257

Definition at line 97 of file nvenc_h264.c.

◆ nvenc_h264_old_class

const AVClass nvenc_h264_old_class
static
Initial value:
= {
.class_name = "nvenc_h264",
.item_name = av_default_item_name,
.option = options,
}
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
av_default_item_name
Definition: dnxhdenc.c:55
static const AVOption options[]
Definition: nvenc_h264.c:29

Definition at line 121 of file nvenc_h264.c.

◆ ff_nvenc_h264_encoder

AVCodec ff_nvenc_h264_encoder
Initial value:
= {
.name = "nvenc_h264",
.long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H.264 encoder"),
.init = nvenc_old_init,
.priv_data_size = sizeof(NVENCContext),
.priv_class = &nvenc_h264_old_class,
.capabilities = AV_CODEC_CAP_DELAY,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
av_cold int ff_nvenc_encode_close(AVCodecContext *avctx)
Definition: nvenc.c:951
static const AVCodecDefault defaults[]
Definition: nvenc_h264.c:87
#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: avcodec.h:863
enum AVPixelFormat ff_nvenc_pix_fmts[]
Definition: nvenc.c:88
static const AVClass nvenc_h264_old_class
Definition: nvenc_h264.c:121
static int nvenc_old_init(AVCodecContext *avctx)
Definition: nvenc_h264.c:115
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: nvenc.c:1379
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:257

Definition at line 128 of file nvenc_h264.c.