Commit 14587eb8 authored by wangfei's avatar wangfei

vaapipostproc: clean up USE_VA_VPP macro since it already removed from

configure file.
parent 5b447753
Pipeline #14501 passed with stages
in 31 minutes and 38 seconds
...@@ -756,7 +756,6 @@ from_GstVaapiDeinterlaceMethod (guint value) ...@@ -756,7 +756,6 @@ from_GstVaapiDeinterlaceMethod (guint value)
switch (value) { switch (value) {
case GST_VAAPI_DEINTERLACE_METHOD_NONE: case GST_VAAPI_DEINTERLACE_METHOD_NONE:
return 0; return 0;
#if USE_VA_VPP
case GST_VAAPI_DEINTERLACE_METHOD_BOB: case GST_VAAPI_DEINTERLACE_METHOD_BOB:
return VAProcDeinterlacingBob; return VAProcDeinterlacingBob;
case GST_VAAPI_DEINTERLACE_METHOD_WEAVE: case GST_VAAPI_DEINTERLACE_METHOD_WEAVE:
...@@ -765,7 +764,6 @@ from_GstVaapiDeinterlaceMethod (guint value) ...@@ -765,7 +764,6 @@ from_GstVaapiDeinterlaceMethod (guint value)
return VAProcDeinterlacingMotionAdaptive; return VAProcDeinterlacingMotionAdaptive;
case GST_VAAPI_DEINTERLACE_METHOD_MOTION_COMPENSATED: case GST_VAAPI_DEINTERLACE_METHOD_MOTION_COMPENSATED:
return VAProcDeinterlacingMotionCompensated; return VAProcDeinterlacingMotionCompensated;
#endif
} }
GST_ERROR ("unsupported GstVaapiDeinterlaceMethod value %d", value); GST_ERROR ("unsupported GstVaapiDeinterlaceMethod value %d", value);
return 0; return 0;
...@@ -777,7 +775,6 @@ from_GstVaapiDeinterlaceFlags (guint flags) ...@@ -777,7 +775,6 @@ from_GstVaapiDeinterlaceFlags (guint flags)
{ {
guint va_flags = 0; guint va_flags = 0;
#if USE_VA_VPP
if (!(flags & GST_VAAPI_DEINTERLACE_FLAG_TFF)) if (!(flags & GST_VAAPI_DEINTERLACE_FLAG_TFF))
va_flags |= VA_DEINTERLACING_BOTTOM_FIELD_FIRST; va_flags |= VA_DEINTERLACING_BOTTOM_FIELD_FIRST;
...@@ -786,7 +783,6 @@ from_GstVaapiDeinterlaceFlags (guint flags) ...@@ -786,7 +783,6 @@ from_GstVaapiDeinterlaceFlags (guint flags)
if (!(flags & GST_VAAPI_DEINTERLACE_FLAG_TOPFIELD)) if (!(flags & GST_VAAPI_DEINTERLACE_FLAG_TOPFIELD))
va_flags |= VA_DEINTERLACING_BOTTOM_FIELD; va_flags |= VA_DEINTERLACING_BOTTOM_FIELD;
#endif
return va_flags; return va_flags;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment