summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-10-06 09:25:25 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-10-06 09:25:25 +0000
commit03899d19219ffd208256dbd8965c4950691d48e8 (patch)
tree63ae044c7a1c22f31768f53a60c664982ca3f8c0
parent56f0c346f309d2c5d14c69fdd56cea375b37461e (diff)
Allow SMPTE-240M colorspace conversion (VA_SRC_SMPTE_240).
-rw-r--r--NEWS1
-rw-r--r--src/vaapi_compat.h3
-rw-r--r--src/vdpau_mixer.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1f53714..5713998 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Copyright (C) 2009-2010 Splitted-Desktop Systems
Version 0.7.1 - DD.Oct.2010
* Fix X11 display locking issues
* Add support for GL_TEXTURE_RECTANGLE_ARB textures
+* Allow SMPTE-240M colorspace conversion (VA_SRC_SMPTE_240)
Version 0.7.0 - 09.Aug.2010
* Add support for VA-API 0.31.1-sds1
diff --git a/src/vaapi_compat.h b/src/vaapi_compat.h
index e711799..c7aea1a 100644
--- a/src/vaapi_compat.h
+++ b/src/vaapi_compat.h
@@ -54,6 +54,9 @@
#ifndef VA_FILTER_SCALING_MASK
#define VA_FILTER_SCALING_MASK 0x00000f00
#endif
+#ifndef VA_SRC_SMPTE_240
+#define VA_SRC_SMPTE_240 0x00000040
+#endif
#if VA_CHECK_VERSION(0,31,1)
typedef void *VADrawable;
diff --git a/src/vdpau_mixer.c b/src/vdpau_mixer.c
index cfc3e82..c9f5bb1 100644
--- a/src/vdpau_mixer.c
+++ b/src/vdpau_mixer.c
@@ -320,7 +320,9 @@ video_mixer_render(
)
{
VdpColorStandard colorspace;
- if (flags & VA_SRC_BT709)
+ if (flags & VA_SRC_SMPTE_240)
+ colorspace = VDP_COLOR_STANDARD_SMPTE_240M;
+ else if (flags & VA_SRC_BT709)
colorspace = VDP_COLOR_STANDARD_ITUR_BT_709;
else
colorspace = VDP_COLOR_STANDARD_ITUR_BT_601;