VAProcColorStandardExplicit and associated VAProcColorProperties
(primaries, transfer and matrix) are not supported until
VA-API 1.2.0.
Use VAProcColorStandardNone instead of VAProcColorStandardExplicit
if VA-API < 1.2.0.
Fixes #231
VAProcColorStandardType * type, VAProcColorProperties * properties)
{
*type = from_GstVideoColorimetry (colorimetry);
+
+#if VA_CHECK_VERSION(1,2,0)
if (*type == VAProcColorStandardExplicit) {
properties->colour_primaries =
gst_video_color_primaries_to_iso (colorimetry->primaries);
properties->matrix_coefficients =
gst_video_color_matrix_to_iso (colorimetry->matrix);
}
+#endif
properties->color_range = from_GstVideoColorRange (colorimetry->range);
}
GST_VIDEO_COLORIMETRY_SMPTE240M))
return VAProcColorStandardSMPTE240M;
+#if VA_CHECK_VERSION(1,2,0)
return VAProcColorStandardExplicit;
+#else
+ return VAProcColorStandardNone;
+#endif
}
/**