summaryrefslogtreecommitdiff
path: root/va/va_vpp.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-18 16:22:06 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2013-05-28 16:32:18 +0800
commit0b49902044734704a1f429281bc01aadbb6317a6 (patch)
treee4e3e6c10999d0e9fb5f0ef418e706032c179ad8 /va/va_vpp.h
parent161cef0a4983e236b41064dac43d043fcc8884e9 (diff)
downloadlibva-0b49902044734704a1f429281bc01aadbb6317a6.tar.gz
vpp: add auto-saturation, auto-brightness, auto-contrast attributes.
Diffstat (limited to 'va/va_vpp.h')
-rw-r--r--va/va_vpp.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/va/va_vpp.h b/va/va_vpp.h
index 823d8ab..020efb2 100644
--- a/va/va_vpp.h
+++ b/va/va_vpp.h
@@ -251,6 +251,12 @@ typedef enum _VAProcColorBalanceType {
VAProcColorBalanceBrightness,
/** \brief Contrast. */
VAProcColorBalanceContrast,
+ /** \brief Automatically adjusted saturation. */
+ VAProcColorBalanceAutoSaturation,
+ /** \brief Automatically adjusted brightness. */
+ VAProcColorBalanceAutoBrightness,
+ /** \brief Automatically adjusted contrast. */
+ VAProcColorBalanceAutoContrast,
/** \brief Max number of color balance operations. */
VAProcColorBalanceCount
} VAProcColorBalanceType;
@@ -496,7 +502,19 @@ typedef struct _VAProcFilterParameterBufferColorBalance {
VAProcFilterType type;
/** \brief Color balance attribute. */
VAProcColorBalanceType attrib;
- /** \brief Color balance value. */
+ /**
+ * \brief Color balance value.
+ *
+ * Special case for automatically adjusted attributes. e.g.
+ * #VAProcColorBalanceAutoSaturation,
+ * #VAProcColorBalanceAutoBrightness,
+ * #VAProcColorBalanceAutoContrast.
+ * - If \ref value is \c 1.0 +/- \c FLT_EPSILON, the attribute is
+ * automatically adjusted and overrides any other attribute of
+ * the same type that would have been set explicitly;
+ * - If \ref value is \c 0.0 +/- \c FLT_EPSILON, the attribute is
+ * disabled and other attribute of the same type is used instead.
+ */
float value;
} VAProcFilterParameterBufferColorBalance;