mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 01:42:20 +00:00
lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK
Signed-off-by: Zachary Zhou <zachary.zhou@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
parent
ba3d983c95
commit
b6b3159b04
@ -27,6 +27,9 @@
|
||||
|
||||
#include "avfilter.h"
|
||||
|
||||
// ARGB black, for VAProcPipelineParameterBuffer.output_background_color.
|
||||
#define VAAPI_VPP_BACKGROUND_BLACK 0xff000000
|
||||
|
||||
typedef struct VAAPIVPPContext {
|
||||
const AVClass *class;
|
||||
|
||||
|
@ -256,7 +256,7 @@ static int deint_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
|
||||
ff_vaapi_vpp_colour_standard(input_frame->colorspace);
|
||||
|
||||
params.output_region = NULL;
|
||||
params.output_background_color = 0xff000000;
|
||||
params.output_background_color = VAAPI_VPP_BACKGROUND_BLACK;
|
||||
params.output_color_standard = params.surface_color_standard;
|
||||
|
||||
params.pipeline_flags = 0;
|
||||
|
@ -174,7 +174,7 @@ static int misc_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
|
||||
ff_vaapi_vpp_colour_standard(input_frame->colorspace);
|
||||
|
||||
params.output_region = NULL;
|
||||
params.output_background_color = 0xff000000;
|
||||
params.output_background_color = VAAPI_VPP_BACKGROUND_BLACK;
|
||||
params.output_color_standard = params.surface_color_standard;
|
||||
|
||||
params.pipeline_flags = 0;
|
||||
|
@ -171,7 +171,7 @@ static int procamp_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame
|
||||
ff_vaapi_vpp_colour_standard(input_frame->colorspace);
|
||||
|
||||
params.output_region = NULL;
|
||||
params.output_background_color = 0xff000000;
|
||||
params.output_background_color = VAAPI_VPP_BACKGROUND_BLACK;
|
||||
params.output_color_standard = params.surface_color_standard;
|
||||
|
||||
params.pipeline_flags = 0;
|
||||
|
@ -133,7 +133,7 @@ static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
|
||||
ff_vaapi_vpp_colour_standard(input_frame->colorspace);
|
||||
|
||||
params.output_region = 0;
|
||||
params.output_background_color = 0xff000000;
|
||||
params.output_background_color = VAAPI_VPP_BACKGROUND_BLACK;
|
||||
params.output_color_standard = params.surface_color_standard;
|
||||
|
||||
params.pipeline_flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user