vaapipostproc: WA: RGB to/from YUV CSC color primaries
The intel-media-driver (iHD) can't convert output color primaries for various resolutions when doing YUV to/from RGB CSC. Thus, we must keep the output color primaries the same as the input color primaries for these cases.
Fixes #238 (closed)
Tested with:
GST_GL_PLATFORM=egl gst-launch-1.0 -vf filesrc \
location=~/Videos/test_3840x2160_30mbps_60fps_Baseline@L5.2.mp4 \
! qtdemux ! h264parse ! vaapih264dec ! vaapipostproc ! glimagesink
GST_GL_PLATFORM=egl gst-launch-1.0 -vf videotestsrc \
! video/x-raw,width=3840,height=2160,format=NV12 \
! vaapipostproc ! glimagesink
gst-launch-1.0 -vf filesrc location=~/Videos/test_3840x2160_30mbps_60fps_Baseline@L5.2.mp4 \
! qtdemux ! h264parse ! vaapih264dec \
! video/x-raw"(memory:VASurface)",format=BGRA \
! vaapipostproc ! "video/x-raw(memory:VASurface)",format=NV12 \
! vaapisink
gst-launch-1.0 -vf videotestsrc \
! video/x-raw,width=3840,height=2160,format=BGRA \
! vaapipostproc ! "video/x-raw(memory:VASurface)",format=NV12 \
! vaapisink