All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vaapi_encode_vp9.c File Reference
#include <va/va.h>
#include <va/va_enc_vp9.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"
#include "internal.h"
#include "vaapi_encode.h"

Go to the source code of this file.

Data Structures

struct  VAAPIEncodeVP9Context
struct  VAAPIEncodeVP9Options


#define VP9_MAX_QUANT   255
#define vseq_var(name)   vseq->name, name
#define vseq_field(name)   vseq->seq_fields.bits.name, name
#define vpic_var(name)   vpic->name, name
#define vpic_field(name)   vpic->pic_fields.bits.name, name
#define OFFSET(x)


static int vaapi_encode_vp9_init_sequence_params (AVCodecContext *avctx)
static int vaapi_encode_vp9_init_picture_params (AVCodecContext *avctx, VAAPIEncodePicture *pic)
static av_cold int vaapi_encode_vp9_configure (AVCodecContext *avctx)
static av_cold int vaapi_encode_vp9_init (AVCodecContext *avctx)


static const VAAPIEncodeType vaapi_encode_type_vp9
static const AVOption vaapi_encode_vp9_options []
static const AVCodecDefault vaapi_encode_vp9_defaults []
static const AVClass vaapi_encode_vp9_class
AVCodec ff_vp9_vaapi_encoder

Macro Definition Documentation

#define VP9_MAX_QUANT   255

Definition at line 32 of file vaapi_encode_vp9.c.

Referenced by vaapi_encode_vp9_configure().

#define vseq_var (   name)    vseq->name, name

Definition at line 52 of file vaapi_encode_vp9.c.

#define vseq_field (   name)    vseq->seq_fields.bits.name, name

Definition at line 53 of file vaapi_encode_vp9.c.

#define vpic_var (   name)    vpic->name, name

Definition at line 54 of file vaapi_encode_vp9.c.

#define vpic_field (   name)    vpic->pic_fields.bits.name, name

Definition at line 55 of file vaapi_encode_vp9.c.

#define OFFSET (   x)

Definition at line 269 of file vaapi_encode_vp9.c.

Definition at line 271 of file vaapi_encode_vp9.c.

Function Documentation

static int vaapi_encode_vp9_init_sequence_params ( AVCodecContext avctx)

Definition at line 58 of file vaapi_encode_vp9.c.

static int vaapi_encode_vp9_init_picture_params ( AVCodecContext avctx,
VAAPIEncodePicture pic 

Definition at line 82 of file vaapi_encode_vp9.c.

static av_cold int vaapi_encode_vp9_configure ( AVCodecContext avctx)

Definition at line 181 of file vaapi_encode_vp9.c.

static av_cold int vaapi_encode_vp9_init ( AVCodecContext avctx)

Definition at line 217 of file vaapi_encode_vp9.c.

Variable Documentation

const VAAPIEncodeType vaapi_encode_type_vp9
Initial value:
= {
.priv_data_size = sizeof(VAAPIEncodeVP9Context),
.sequence_params_size = sizeof(VAEncSequenceParameterBufferVP9),
.init_sequence_params = &vaapi_encode_vp9_init_sequence_params,
.picture_params_size = sizeof(VAEncPictureParameterBufferVP9),
.init_picture_params = &vaapi_encode_vp9_init_picture_params,
static int vaapi_encode_vp9_init_picture_params(AVCodecContext *avctx, VAAPIEncodePicture *pic)
static av_cold int vaapi_encode_vp9_configure(AVCodecContext *avctx)
static int vaapi_encode_vp9_init_sequence_params(AVCodecContext *avctx)

Definition at line 205 of file vaapi_encode_vp9.c.

Referenced by vaapi_encode_vp9_init().

const AVOption vaapi_encode_vp9_options[]
Initial value:
= {
{ "loop_filter_level", "Loop filter level",
OFFSET(loop_filter_level), AV_OPT_TYPE_INT, { .i64 = 16 }, 0, 63, FLAGS },
{ "loop_filter_sharpness", "Loop filter sharpness",
OFFSET(loop_filter_sharpness), AV_OPT_TYPE_INT, { .i64 = 4 }, 0, 15, FLAGS },
{ NULL },
#define NULL
Definition: coverity.c:32
#define FLAGS
#define OFFSET(x)

Definition at line 272 of file vaapi_encode_vp9.c.

const AVCodecDefault vaapi_encode_vp9_defaults[]
Initial value:
= {
{ "profile", "0" },
{ "b", "0" },
{ "bf", "0" },
{ "g", "250" },
{ "global_quality", "100" },
{ NULL },
#define NULL
Definition: coverity.c:32

Definition at line 280 of file vaapi_encode_vp9.c.

const AVClass vaapi_encode_vp9_class
Initial value:
= {
.class_name = "vp9_vaapi",
.item_name = av_default_item_name,
Definition: version.h:86
static const AVOption vaapi_encode_vp9_options[]

Definition at line 289 of file vaapi_encode_vp9.c.

AVCodec ff_vp9_vaapi_encoder
Initial value:
= {
.name = "vp9_vaapi",
.long_name = NULL_IF_CONFIG_SMALL("VP9 (VAAPI)"),
.priv_data_size = (sizeof(VAAPIEncodeContext) +
.encode2 = &ff_vaapi_encode2,
.priv_class = &vaapi_encode_vp9_class,
.capabilities = AV_CODEC_CAP_DELAY,
.pix_fmts = (const enum AVPixelFormat[]) {
static av_cold int vaapi_encode_vp9_init(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
av_cold int ff_vaapi_encode_close(AVCodecContext *avctx)
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:1027
static const AVCodecDefault vaapi_encode_vp9_defaults[]
int ff_vaapi_encode2(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *input_image, int *got_packet)
Definition: vaapi_encode.c:851
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static const AVClass vaapi_encode_vp9_class
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266
static const AVCodecDefault defaults[]
Definition: dcaenc.c:1275
Pixel format.
Definition: pixfmt.h:60

Definition at line 296 of file vaapi_encode_vp9.c.