FFmpeg
Macros | Functions | Variables
amfenc_hevc.c File Reference
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "amfenc.h"
#include "internal.h"

Go to the source code of this file.

Macros

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

Functions

static av_cold int amf_encode_init_hevc (AVCodecContext *avctx)
 

Variables

static const AVOption options []
 
static const AVCodecDefault defaults []
 
static const AVClass hevc_amf_class
 
AVCodec ff_hevc_amf_encoder
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 24 of file amfenc_hevc.c.

◆ VE

Definition at line 25 of file amfenc_hevc.c.

Function Documentation

◆ amf_encode_init_hevc()

static av_cold int amf_encode_init_hevc ( AVCodecContext avctx)
static

Definition at line 94 of file amfenc_hevc.c.

Variable Documentation

◆ options

const AVOption options[]
static

Definition at line 26 of file amfenc_hevc.c.

◆ defaults

const AVCodecDefault defaults[]
static
Initial value:
= {
{ "refs", "-1" },
{ "aspect", "0" },
{ "b", "2M" },
{ "g", "250" },
{ "slices", "1" },
{ "qmin", "-1" },
{ "qmax", "-1" },
{ NULL },
}

Definition at line 295 of file amfenc_hevc.c.

◆ hevc_amf_class

const AVClass hevc_amf_class
static
Initial value:
= {
.class_name = "hevc_amf",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 305 of file amfenc_hevc.c.

◆ ff_hevc_amf_encoder

AVCodec ff_hevc_amf_encoder
Initial value:
= {
.name = "hevc_amf",
.long_name = NULL_IF_CONFIG_SMALL("AMD AMF HEVC encoder"),
.receive_packet = ff_amf_receive_packet,
.priv_data_size = sizeof(AmfContext),
.priv_class = &hevc_amf_class,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.wrapper_name = "amf",
.hw_configs = ff_amfenc_hw_configs,
}

Definition at line 312 of file amfenc_hevc.c.

AV_CODEC_CAP_HARDWARE
#define AV_CODEC_CAP_HARDWARE
Codec is backed by a hardware implementation.
Definition: codec.h:157
options
static const AVOption options[]
Definition: amfenc_hevc.c:26
ff_amf_encode_close
int av_cold ff_amf_encode_close(AVCodecContext *avctx)
Common encoder termination function.
Definition: amfenc.c:370
defaults
static const AVCodecDefault defaults[]
Definition: amfenc_hevc.c:295
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:309
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
ff_amf_receive_packet
int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
Ecoding one frame - common function for all AMF encoders.
Definition: amfenc.c:592
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
amf_encode_init_hevc
static av_cold int amf_encode_init_hevc(AVCodecContext *avctx)
Definition: amfenc_hevc.c:94
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
ff_amf_pix_fmts
enum AVPixelFormat ff_amf_pix_fmts[]
Supported formats.
Definition: amfenc.c:53
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:49
ff_amfenc_hw_configs
const AVCodecHWConfigInternal *const ff_amfenc_hw_configs[]
Definition: amfenc.c:786
AV_CODEC_ID_HEVC
@ AV_CODEC_ID_HEVC
Definition: codec_id.h:223
hevc_amf_class
static const AVClass hevc_amf_class
Definition: amfenc_hevc.c:305
AV_CODEC_CAP_DELAY
#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:77
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AmfContext
AMF encoder context.
Definition: amfenc.h:47