FFmpeg
Data Structures | Functions | Variables
vaapi_vpp.c File Reference
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "formats.h"
#include "internal.h"
#include "vaapi_vpp.h"

Go to the source code of this file.

Data Structures

struct  VAAPIColourProperties
 

Functions

int ff_vaapi_vpp_query_formats (AVFilterContext *avctx)
 
void ff_vaapi_vpp_pipeline_uninit (AVFilterContext *avctx)
 
int ff_vaapi_vpp_config_input (AVFilterLink *inlink)
 
int ff_vaapi_vpp_config_output (AVFilterLink *outlink)
 
static void vaapi_vpp_fill_colour_standard (VAAPIColourProperties *props, VAProcColorStandardType *vacs, int nb_vacs)
 
static void vaapi_vpp_fill_chroma_sample_location (VAAPIColourProperties *props)
 
static void vaapi_vpp_fill_colour_range (VAAPIColourProperties *props)
 
static void vaapi_vpp_fill_colour_properties (AVFilterContext *avctx, VAAPIColourProperties *props, VAProcColorStandardType *vacs, int nb_vacs)
 
static int vaapi_vpp_frame_is_rgb (const AVFrame *frame)
 
static int vaapi_vpp_colour_properties (AVFilterContext *avctx, VAProcPipelineParameterBuffer *params, const AVFrame *input_frame, AVFrame *output_frame)
 
int ff_vaapi_vpp_init_params (AVFilterContext *avctx, VAProcPipelineParameterBuffer *params, const AVFrame *input_frame, AVFrame *output_frame)
 
int ff_vaapi_vpp_make_param_buffers (AVFilterContext *avctx, int type, const void *data, size_t size, int count)
 
static int vaapi_vpp_render_single_pipeline_buffer (AVFilterContext *avctx, VAProcPipelineParameterBuffer *params, VABufferID *params_id)
 
int ff_vaapi_vpp_render_pictures (AVFilterContext *avctx, VAProcPipelineParameterBuffer *params_list, int cout, AVFrame *output_frame)
 
int ff_vaapi_vpp_render_picture (AVFilterContext *avctx, VAProcPipelineParameterBuffer *params, AVFrame *output_frame)
 
void ff_vaapi_vpp_ctx_init (AVFilterContext *avctx)
 
void ff_vaapi_vpp_ctx_uninit (AVFilterContext *avctx)
 

Variables

static const VAAPIColourProperties vaapi_colour_standard_map []
 

Function Documentation

◆ ff_vaapi_vpp_query_formats()

int ff_vaapi_vpp_query_formats ( AVFilterContext avctx)

Definition at line 27 of file vaapi_vpp.c.

◆ ff_vaapi_vpp_pipeline_uninit()

void ff_vaapi_vpp_pipeline_uninit ( AVFilterContext avctx)

◆ ff_vaapi_vpp_config_input()

int ff_vaapi_vpp_config_input ( AVFilterLink inlink)

Definition at line 74 of file vaapi_vpp.c.

Referenced by config_output(), and overlay_vaapi_config_input_main().

◆ ff_vaapi_vpp_config_output()

int ff_vaapi_vpp_config_output ( AVFilterLink outlink)

◆ vaapi_vpp_fill_colour_standard()

static void vaapi_vpp_fill_colour_standard ( VAAPIColourProperties props,
VAProcColorStandardType *  vacs,
int  nb_vacs 
)
static

Definition at line 281 of file vaapi_vpp.c.

Referenced by vaapi_vpp_fill_colour_properties().

◆ vaapi_vpp_fill_chroma_sample_location()

static void vaapi_vpp_fill_chroma_sample_location ( VAAPIColourProperties props)
static

Definition at line 347 of file vaapi_vpp.c.

Referenced by vaapi_vpp_fill_colour_properties().

◆ vaapi_vpp_fill_colour_range()

static void vaapi_vpp_fill_colour_range ( VAAPIColourProperties props)
static

Definition at line 382 of file vaapi_vpp.c.

Referenced by vaapi_vpp_fill_colour_properties().

◆ vaapi_vpp_fill_colour_properties()

static void vaapi_vpp_fill_colour_properties ( AVFilterContext avctx,
VAAPIColourProperties props,
VAProcColorStandardType *  vacs,
int  nb_vacs 
)
static

Definition at line 401 of file vaapi_vpp.c.

Referenced by vaapi_vpp_colour_properties().

◆ vaapi_vpp_frame_is_rgb()

static int vaapi_vpp_frame_is_rgb ( const AVFrame frame)
static

Definition at line 421 of file vaapi_vpp.c.

Referenced by vaapi_vpp_colour_properties().

◆ vaapi_vpp_colour_properties()

static int vaapi_vpp_colour_properties ( AVFilterContext avctx,
VAProcPipelineParameterBuffer *  params,
const AVFrame input_frame,
AVFrame output_frame 
)
static

Definition at line 433 of file vaapi_vpp.c.

Referenced by ff_vaapi_vpp_init_params().

◆ ff_vaapi_vpp_init_params()

int ff_vaapi_vpp_init_params ( AVFilterContext avctx,
VAProcPipelineParameterBuffer *  params,
const AVFrame input_frame,
AVFrame output_frame 
)

◆ ff_vaapi_vpp_make_param_buffers()

int ff_vaapi_vpp_make_param_buffers ( AVFilterContext avctx,
int  type,
const void *  data,
size_t  size,
int  count 
)

◆ vaapi_vpp_render_single_pipeline_buffer()

static int vaapi_vpp_render_single_pipeline_buffer ( AVFilterContext avctx,
VAProcPipelineParameterBuffer *  params,
VABufferID *  params_id 
)
static

Definition at line 605 of file vaapi_vpp.c.

Referenced by ff_vaapi_vpp_render_pictures().

◆ ff_vaapi_vpp_render_pictures()

int ff_vaapi_vpp_render_pictures ( AVFilterContext avctx,
VAProcPipelineParameterBuffer *  params_list,
int  cout,
AVFrame output_frame 
)

Definition at line 634 of file vaapi_vpp.c.

Referenced by ff_vaapi_vpp_render_picture(), overlay_vaapi_blend(), and process_frame().

◆ ff_vaapi_vpp_render_picture()

int ff_vaapi_vpp_render_picture ( AVFilterContext avctx,
VAProcPipelineParameterBuffer *  params,
AVFrame output_frame 
)

◆ ff_vaapi_vpp_ctx_init()

void ff_vaapi_vpp_ctx_init ( AVFilterContext avctx)

◆ ff_vaapi_vpp_ctx_uninit()

void ff_vaapi_vpp_ctx_uninit ( AVFilterContext avctx)

Definition at line 723 of file vaapi_vpp.c.

Referenced by overlay_vaapi_uninit().

Variable Documentation

◆ vaapi_colour_standard_map

const VAAPIColourProperties vaapi_colour_standard_map[]
static
Initial value:
= {
{ VAProcColorStandardBT601, 5, 6, 5 },
{ VAProcColorStandardBT601, 6, 6, 6 },
{ VAProcColorStandardBT709, 1, 1, 1 },
{ VAProcColorStandardBT470M, 4, 4, 4 },
{ VAProcColorStandardBT470BG, 5, 5, 5 },
{ VAProcColorStandardSMPTE170M, 6, 6, 6 },
{ VAProcColorStandardSMPTE240M, 7, 7, 7 },
{ VAProcColorStandardGenericFilm, 8, 1, 1 },
}

Definition at line 264 of file vaapi_vpp.c.

Referenced by vaapi_vpp_colour_properties(), and vaapi_vpp_fill_colour_standard().