FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nvenc_hevc.c File Reference
#include "libavutil/internal.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 av_cold int nvenc_old_init (AVCodecContext *avctx)
 

Variables

static const AVOption options []
 
static const AVCodecDefault defaults []
 
static const AVClass nvenc_hevc_class
 
AVCodec ff_nvenc_hevc_encoder
 
static const AVClass hevc_nvenc_class
 
AVCodec ff_hevc_nvenc_encoder
 

Macro Definition Documentation

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

Definition at line 26 of file nvenc_hevc.c.

Definition at line 27 of file nvenc_hevc.c.

Function Documentation

static av_cold int nvenc_old_init ( AVCodecContext avctx)
static

Definition at line 137 of file nvenc_hevc.c.

Variable Documentation

const AVOption options[]
static

Definition at line 28 of file nvenc_hevc.c.

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

Definition at line 122 of file nvenc_hevc.c.

const AVClass nvenc_hevc_class
static
Initial value:
= {
.class_name = "nvenc_hevc",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:193
static const AVOption options[]
Definition: nvenc_hevc.c:28

Definition at line 143 of file nvenc_hevc.c.

AVCodec ff_nvenc_hevc_encoder
Initial value:
= {
.name = "nvenc_hevc",
.long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC hevc encoder"),
.init = nvenc_old_init,
.send_frame = ff_nvenc_send_frame,
.receive_packet = ff_nvenc_receive_packet,
.priv_data_size = sizeof(NvencContext),
.priv_class = &nvenc_hevc_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:1367
static const AVCodecDefault defaults[]
Definition: nvenc_hevc.c:122
static av_cold int nvenc_old_init(AVCodecContext *avctx)
Definition: nvenc_hevc.c:137
int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
Definition: nvenc.c:1972
#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:981
enum AVPixelFormat ff_nvenc_pix_fmts[]
Definition: nvenc.c:39
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass nvenc_hevc_class
Definition: nvenc_hevc.c:143
int ff_nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
Definition: nvenc.c:1869
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: nvenc.c:2008
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266

Definition at line 150 of file nvenc_hevc.c.

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

Definition at line 170 of file nvenc_hevc.c.

AVCodec ff_hevc_nvenc_encoder
Initial value:
= {
.name = "hevc_nvenc",
.long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC hevc encoder"),
.send_frame = ff_nvenc_send_frame,
.receive_packet = ff_nvenc_receive_packet,
.priv_data_size = sizeof(NvencContext),
.priv_class = &hevc_nvenc_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:1367
static const AVCodecDefault defaults[]
Definition: nvenc_hevc.c:122
int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
Definition: nvenc.c:1972
#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:981
enum AVPixelFormat ff_nvenc_pix_fmts[]
Definition: nvenc.c:39
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass hevc_nvenc_class
Definition: nvenc_hevc.c:170
int ff_nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
Definition: nvenc.c:1869
av_cold int ff_nvenc_encode_init(AVCodecContext *avctx)
Definition: nvenc.c:1445
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: nvenc.c:2008
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266

Definition at line 177 of file nvenc_hevc.c.