FFmpeg
Data Structures | Macros | Functions | Variables
vf_stack_vaapi.c File Reference
#include "config_components.h"
#include "libavutil/opt.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/eval.h"
#include "libavutil/hwcontext.h"
#include "libavutil/avstring.h"
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/mathematics.h"
#include "libavutil/parseutils.h"
#include "libavutil/mem.h"
#include "filters.h"
#include "formats.h"
#include "video.h"
#include "framesync.h"
#include "vaapi_vpp.h"
#include "stack_internal.h"
#include "stack_internal.c"

Go to the source code of this file.

Data Structures

struct  StackVAAPIContext
 

Macros

#define HSTACK_NAME   "hstack_vaapi"
 
#define VSTACK_NAME   "vstack_vaapi"
 
#define XSTACK_NAME   "xstack_vaapi"
 
#define HWContext   VAAPIVPPContext
 
#define StackHWContext   StackVAAPIContext
 

Functions

static int process_frame (FFFrameSync *fs)
 
static int config_output (AVFilterLink *outlink)
 
static int vaapi_stack_init (AVFilterContext *avctx)
 
static av_cold void vaapi_stack_uninit (AVFilterContext *avctx)
 

Variables

static enum AVPixelFormat vaapi_stack_pix_fmts []
 

Detailed Description

Hardware accelerated hstack, vstack and xstack filters based on VA-API

Definition in file vf_stack_vaapi.c.

Macro Definition Documentation

◆ HSTACK_NAME

#define HSTACK_NAME   "hstack_vaapi"

Definition at line 44 of file vf_stack_vaapi.c.

◆ VSTACK_NAME

#define VSTACK_NAME   "vstack_vaapi"

Definition at line 45 of file vf_stack_vaapi.c.

◆ XSTACK_NAME

#define XSTACK_NAME   "xstack_vaapi"

Definition at line 46 of file vf_stack_vaapi.c.

◆ HWContext

#define HWContext   VAAPIVPPContext

Definition at line 47 of file vf_stack_vaapi.c.

◆ StackHWContext

#define StackHWContext   StackVAAPIContext

Definition at line 48 of file vf_stack_vaapi.c.

Function Documentation

◆ process_frame()

static int process_frame ( FFFrameSync fs)
static

Definition at line 57 of file vf_stack_vaapi.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 133 of file vf_stack_vaapi.c.

◆ vaapi_stack_init()

static int vaapi_stack_init ( AVFilterContext avctx)
static

Definition at line 193 of file vf_stack_vaapi.c.

◆ vaapi_stack_uninit()

static av_cold void vaapi_stack_uninit ( AVFilterContext avctx)
static

Definition at line 214 of file vf_stack_vaapi.c.

Variable Documentation

◆ vaapi_stack_pix_fmts

enum AVPixelFormat vaapi_stack_pix_fmts[]
static
Initial value:

Definition at line 223 of file vf_stack_vaapi.c.

AV_PIX_FMT_VAAPI
@ AV_PIX_FMT_VAAPI
Hardware acceleration through VA-API, data[3] contains a VASurfaceID.
Definition: pixfmt.h:126
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:72