lavfi/vaapi: Add constant VAAPI_VPP_BACKGROUND_BLACK
authorZachary Zhou <zachary.zhou@intel.com>
Tue, 25 Dec 2018 06:03:30 +0000 (14:03 +0800)
committerMark Thompson <sw@jkqxz.net>
Sun, 30 Dec 2018 18:10:16 +0000 (18:10 +0000)
Signed-off-by: Zachary Zhou <zachary.zhou@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavfilter/vaapi_vpp.h
libavfilter/vf_deinterlace_vaapi.c
libavfilter/vf_misc_vaapi.c
libavfilter/vf_procamp_vaapi.c
libavfilter/vf_scale_vaapi.c

index 0bc3101..96f720f 100644 (file)
@@ -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;
 
index f7a262d..97aee65 100644 (file)
@@ -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;
index 30b808a..e227c9f 100644 (file)
@@ -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;
index 10eccbe..46f3ab6 100644 (file)
@@ -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;
index b06ae76..3699363 100644 (file)
@@ -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;