diff options
author | Zachary Zhou <zachary.zhou@intel.com> | 2018-12-25 14:03:30 +0800 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-12-30 18:10:16 +0000 |
commit | b6b3159b04afab4f57ce788a5f4871244385f478 (patch) | |
tree | f6215d07a9aadb701fcb24c689432228bdd25050 | |
parent | ba3d983c95b2054d046c9b9b79088634c54a24f0 (diff) | |
download | ffmpeg-b6b3159b04afab4f57ce788a5f4871244385f478.tar.gz |
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>
-rw-r--r-- | libavfilter/vaapi_vpp.h | 3 | ||||
-rw-r--r-- | libavfilter/vf_deinterlace_vaapi.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_misc_vaapi.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_procamp_vaapi.c | 2 | ||||
-rw-r--r-- | libavfilter/vf_scale_vaapi.c | 2 |
5 files changed, 7 insertions, 4 deletions
diff --git a/libavfilter/vaapi_vpp.h b/libavfilter/vaapi_vpp.h index 0bc31018d4..96f720f07d 100644 --- a/libavfilter/vaapi_vpp.h +++ b/libavfilter/vaapi_vpp.h @@ -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; diff --git a/libavfilter/vf_deinterlace_vaapi.c b/libavfilter/vf_deinterlace_vaapi.c index f7a262d0c6..97aee6588f 100644 --- a/libavfilter/vf_deinterlace_vaapi.c +++ b/libavfilter/vf_deinterlace_vaapi.c @@ -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; diff --git a/libavfilter/vf_misc_vaapi.c b/libavfilter/vf_misc_vaapi.c index 30b808a993..e227c9ff6b 100644 --- a/libavfilter/vf_misc_vaapi.c +++ b/libavfilter/vf_misc_vaapi.c @@ -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; diff --git a/libavfilter/vf_procamp_vaapi.c b/libavfilter/vf_procamp_vaapi.c index 10eccbe97d..46f3ab6465 100644 --- a/libavfilter/vf_procamp_vaapi.c +++ b/libavfilter/vf_procamp_vaapi.c @@ -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; diff --git a/libavfilter/vf_scale_vaapi.c b/libavfilter/vf_scale_vaapi.c index b06ae764bf..3699363140 100644 --- a/libavfilter/vf_scale_vaapi.c +++ b/libavfilter/vf_scale_vaapi.c @@ -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; |