FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
vaapi_encode.h File Reference
#include <stdint.h>
#include <va/va.h>
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_vaapi.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  VAAPIEncodeSlice
 
struct  VAAPIEncodePicture
 
struct  VAAPIEncodeProfile
 
struct  VAAPIEncodeContext
 
struct  VAAPIEncodeType
 

Macros

#define VAAPI_ENCODE_COMMON_OPTIONS
 

Enumerations

enum  {
  MAX_CONFIG_ATTRIBUTES = 4, MAX_GLOBAL_PARAMS = 4, MAX_PICTURE_REFERENCES = 2, MAX_REORDER_DELAY = 16,
  MAX_PARAM_BUFFER_SIZE = 1024
}
 
enum  { PICTURE_TYPE_IDR = 0, PICTURE_TYPE_I = 1, PICTURE_TYPE_P = 2, PICTURE_TYPE_B = 3 }
 
enum  { FLAG_SLICE_CONTROL = 1 << 0, FLAG_CONSTANT_QUALITY_ONLY = 1 << 1 }
 

Functions

int ff_vaapi_encode2 (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *input_image, int *got_packet)
 
int ff_vaapi_encode_init (AVCodecContext *avctx)
 
int ff_vaapi_encode_close (AVCodecContext *avctx)
 

Macro Definition Documentation

#define VAAPI_ENCODE_COMMON_OPTIONS
Value:
{ "low_power", \
"Use low-power encoding mode (only available on some platforms; " \
"may not support all encoding features)", \
OFFSET(common.low_power), AV_OPT_TYPE_BOOL, \
{ .i64 = 0 }, 0, 1, FLAGS }
#define FLAGS
Definition: cmdutils.c:544
#define OFFSET(x)
Definition: ffmpeg_opt.c:3323

Definition at line 330 of file vaapi_encode.h.

Enumeration Type Documentation

anonymous enum
Enumerator
MAX_CONFIG_ATTRIBUTES 
MAX_GLOBAL_PARAMS 
MAX_PICTURE_REFERENCES 
MAX_REORDER_DELAY 
MAX_PARAM_BUFFER_SIZE 

Definition at line 38 of file vaapi_encode.h.

anonymous enum
Enumerator
PICTURE_TYPE_IDR 
PICTURE_TYPE_I 
PICTURE_TYPE_P 
PICTURE_TYPE_B 

Definition at line 46 of file vaapi_encode.h.

anonymous enum
Enumerator
FLAG_SLICE_CONTROL 
FLAG_CONSTANT_QUALITY_ONLY 

Definition at line 251 of file vaapi_encode.h.

Function Documentation

int ff_vaapi_encode2 ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame input_image,
int got_packet 
)

Definition at line 895 of file vaapi_encode.c.

int ff_vaapi_encode_init ( AVCodecContext avctx)
int ff_vaapi_encode_close ( AVCodecContext avctx)