All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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.


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


static av_cold int amf_encode_init_hevc (AVCodecContext *avctx)


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

Macro Definition Documentation

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

Definition at line 24 of file amfenc_hevc.c.

Definition at line 25 of file amfenc_hevc.c.

Function Documentation

static av_cold int amf_encode_init_hevc ( AVCodecContext avctx)

Definition at line 94 of file amfenc_hevc.c.

Variable Documentation

const AVOption options[]

Definition at line 26 of file amfenc_hevc.c.

const AVCodecDefault defaults[]
Initial value:
= {
{ "refs", "-1" },
{ "aspect", "0" },
{ "b", "2M" },
{ "g", "250" },
{ "slices", "1" },
{ NULL },
#define NULL
Definition: coverity.c:32

Definition at line 295 of file amfenc_hevc.c.

const AVClass hevc_amf_class
Initial value:
= {
.class_name = "hevc_amf",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption options[]
Definition: amfenc_hevc.c:26

Definition at line 303 of file amfenc_hevc.c.

AVCodec ff_hevc_amf_encoder
Initial value:
= {
.name = "hevc_amf",
.long_name = NULL_IF_CONFIG_SMALL("AMD AMF HEVC encoder"),
.send_frame = ff_amf_send_frame,
.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",
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
Codec is backed by a hardware implementation.
Definition: avcodec.h:1056
static const AVClass hevc_amf_class
Definition: amfenc_hevc.c:303
static av_cold int amf_encode_init_hevc(AVCodecContext *avctx)
Definition: amfenc_hevc.c:94
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:984
int ff_amf_send_frame(AVCodecContext *avctx, const AVFrame *frame)
Ecoding one frame - common function for all AMF encoders.
Definition: amfenc.c:447
int av_cold ff_amf_encode_close(AVCodecContext *avctx)
Common encoder termination function.
Definition: amfenc.c:259
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
enum AVPixelFormat ff_amf_pix_fmts[]
Supported formats.
Definition: amfenc.c:48
static const AVCodecDefault defaults[]
Definition: amfenc_hevc.c:295
int ff_amf_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
Definition: amfenc.c:539
AMF encoder context.
Definition: amfenc.h:46
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266

Definition at line 310 of file amfenc_hevc.c.