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)
 
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

int ff_vaapi_vpp_query_formats ( AVFilterContext avctx)

Definition at line 27 of file vaapi_vpp.c.

void ff_vaapi_vpp_pipeline_uninit ( AVFilterContext avctx)
int ff_vaapi_vpp_config_input ( AVFilterLink inlink)

Definition at line 70 of file vaapi_vpp.c.

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

Definition at line 268 of file vaapi_vpp.c.

Referenced by vaapi_vpp_fill_colour_properties().

static void vaapi_vpp_fill_chroma_sample_location ( VAAPIColourProperties props)
static

Definition at line 334 of file vaapi_vpp.c.

Referenced by vaapi_vpp_fill_colour_properties().

static void vaapi_vpp_fill_colour_range ( VAAPIColourProperties props)
static

Definition at line 369 of file vaapi_vpp.c.

Referenced by 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 388 of file vaapi_vpp.c.

Referenced by vaapi_vpp_colour_properties().

static int vaapi_vpp_frame_is_rgb ( const AVFrame frame)
static

Definition at line 408 of file vaapi_vpp.c.

Referenced by 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 420 of file vaapi_vpp.c.

Referenced by ff_vaapi_vpp_init_params().

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 
)
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)

Definition at line 680 of file vaapi_vpp.c.

Variable Documentation

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 251 of file vaapi_vpp.c.