2 * Copyright (C) 2009 Splitted-Desktop Systems. All Rights Reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sub license, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial portions
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 * The major version of VA-API (1, if %VA_VERSION is 1.2.3)
33 #define VA_MAJOR_VERSION 0
38 * The minor version of VA-API (2, if %VA_VERSION is 1.2.3)
40 #define VA_MINOR_VERSION 35
45 * The micro version of VA-API (3, if %VA_VERSION is 1.2.3)
47 #define VA_MICRO_VERSION 1
52 * The full version of VA-API, like 1.2.3
54 #define VA_VERSION 0.35.1
59 * The full version of VA-API, in string form (suited for string
62 #define VA_VERSION_S "0.35.1"
67 * Numerically encoded version of VA-API, like 0x010203
69 #define VA_VERSION_HEX ((VA_MAJOR_VERSION << 24) | \
70 (VA_MINOR_VERSION << 16) | \
71 (VA_MICRO_VERSION << 8))
75 * @major: major version, like 1 in 1.2.3
76 * @minor: minor version, like 2 in 1.2.3
77 * @micro: micro version, like 3 in 1.2.3
79 * Evaluates to %TRUE if the version of VA-API is greater than
80 * @major, @minor and @micro
82 #define VA_CHECK_VERSION(major,minor,micro) \
83 (VA_MAJOR_VERSION > (major) || \
84 (VA_MAJOR_VERSION == (major) && VA_MINOR_VERSION > (minor)) || \
85 (VA_MAJOR_VERSION == (major) && VA_MINOR_VERSION == (minor) && VA_MICRO_VERSION >= (micro)))
87 #endif /* VA_VERSION_H */