Codebase list libva / 8512eae
Imported Upstream version 1.7.0 Sebastian Ramacher 8 years ago
30 changed file(s) with 136 addition(s) and 83 deletion(s). Raw diff Collapse all Expand all
0 libva NEWS -- summary of user visible changes. 2015-12-15
0 libva NEWS -- summary of user visible changes. 2016-03-15
11 Copyright (C) 2009-2015 Intel Corporation
2
3 Version 1.7.0 - 15.Mar.2016
4 * Bump VA API version to 0.39
5 * Add support for VP9 10bit decode API
6 * Allow libva to load the vaapi driver provided by Mesa Gallium for nouveau and radeon
7 * Fix libva-glx against OpenGL 3.1 or above
28
39 Version 1.6.2 - 15.Dec.2015
410 * Bump VA API version to 0.38.1
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libva 1.6.2.
2 # Generated by GNU Autoconf 2.69 for libva 1.7.0.
33 #
44 # Report bugs to <waldo.bastian@intel.com>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='libva'
591591 PACKAGE_TARNAME='libva'
592 PACKAGE_VERSION='1.6.2'
593 PACKAGE_STRING='libva 1.6.2'
592 PACKAGE_VERSION='1.7.0'
593 PACKAGE_STRING='libva 1.7.0'
594594 PACKAGE_BUGREPORT='waldo.bastian@intel.com'
595595 PACKAGE_URL=''
596596
13941394 # Omit some internal or obsolete options to make the list less imposing.
13951395 # This message is too long to be a string in the A/UX 3.1 sh.
13961396 cat <<_ACEOF
1397 \`configure' configures libva 1.6.2 to adapt to many kinds of systems.
1397 \`configure' configures libva 1.7.0 to adapt to many kinds of systems.
13981398
13991399 Usage: $0 [OPTION]... [VAR=VALUE]...
14001400
14641464
14651465 if test -n "$ac_init_help"; then
14661466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of libva 1.6.2:";;
1467 short | recursive ) echo "Configuration of libva 1.7.0:";;
14681468 esac
14691469 cat <<\_ACEOF
14701470
16041604 test -n "$ac_init_help" && exit $ac_status
16051605 if $ac_init_version; then
16061606 cat <<\_ACEOF
1607 libva configure 1.6.2
1607 libva configure 1.7.0
16081608 generated by GNU Autoconf 2.69
16091609
16101610 Copyright (C) 2012 Free Software Foundation, Inc.
20942094 This file contains any messages produced by compilers while
20952095 running configure, to aid debugging if configure makes a mistake.
20962096
2097 It was created by libva $as_me 1.6.2, which was
2097 It was created by libva $as_me 1.7.0, which was
20982098 generated by GNU Autoconf 2.69. Invocation command line was
20992099
21002100 $ $0 $@
29592959
29602960 # Define the identity of the package.
29612961 PACKAGE='libva'
2962 VERSION='1.6.2'
2962 VERSION='1.7.0'
29632963
29642964
29652965 cat >>confdefs.h <<_ACEOF
30983098
30993099
31003100 VA_API_MAJOR_VERSION=0
3101 VA_API_MINOR_VERSION=38
3102 VA_API_MICRO_VERSION=1
3103 VA_API_VERSION=0.38.1
3101 VA_API_MINOR_VERSION=39
3102 VA_API_MICRO_VERSION=0
3103 VA_API_VERSION=0.39.0
31043104
31053105
31063106
31073107
31083108
31093109 LIBVA_MAJOR_VERSION=1
3110 LIBVA_MINOR_VERSION=6
3111 LIBVA_MICRO_VERSION=2
3112 LIBVA_VERSION=1.6.2
3113
3114
3115
3116
3117
3118 LIBVA_LT_CURRENT=3802
3110 LIBVA_MINOR_VERSION=7
3111 LIBVA_MICRO_VERSION=0
3112 LIBVA_VERSION=1.7.0
3113
3114
3115
3116
3117
3118 LIBVA_LT_CURRENT=3901
31193119 LIBVA_LT_REV=0
3120 LIBVA_LT_AGE=3801
3120 LIBVA_LT_AGE=3900
31213121 LIBVA_LT_VERSION="$LIBVA_LT_CURRENT:$LIBVA_LT_REV:$LIBVA_LT_AGE"
31223122 LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION"
31233123
1807818078 # report actual input values of CONFIG_FILES etc. instead of their
1807918079 # values after options handling.
1808018080 ac_log="
18081 This file was extended by libva $as_me 1.6.2, which was
18081 This file was extended by libva $as_me 1.7.0, which was
1808218082 generated by GNU Autoconf 2.69. Invocation command line was
1808318083
1808418084 CONFIG_FILES = $CONFIG_FILES
1814418144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1814518145 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1814618146 ac_cs_version="\\
18147 libva config.status 1.6.2
18147 libva config.status 1.7.0
1814818148 configured by $0, generated by GNU Autoconf 2.69,
1814918149 with options \\"\$ac_cs_config\\"
1815018150
2626 # - reset micro version to zero when minor version is incremented
2727 # - reset minor version to zero when major version is incremented
2828 m4_define([va_api_major_version], [0])
29 m4_define([va_api_minor_version], [38])
30 m4_define([va_api_micro_version], [1])
29 m4_define([va_api_minor_version], [39])
30 m4_define([va_api_micro_version], [0])
3131
3232 m4_define([va_api_version],
3333 [va_api_major_version.va_api_minor_version.va_api_micro_version])
4141 # - reset micro version to zero when VA-API major or minor version is changed
4242 m4_define([libva_major_version], [m4_eval(va_api_major_version + 1)])
4343 m4_define([libva_minor_version], [m4_eval(va_api_minor_version - 32)])
44 m4_define([libva_micro_version], [2])
44 m4_define([libva_micro_version], [0])
4545 m4_define([libva_pre_version], [0])
4646
4747 m4_define([libva_version],
313313 exit 1;; \
314314 esac; \
315315 done; \
316 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu debian.upstream/Makefile'; \
316 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign debian.upstream/Makefile'; \
317317 $(am__cd) $(top_srcdir) && \
318 $(AUTOMAKE) --gnu debian.upstream/Makefile
318 $(AUTOMAKE) --foreign debian.upstream/Makefile
319319 .PRECIOUS: Makefile
320320 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
321321 @case '$?' in \
0 libva (1.6.2-1) unstable; urgency=low
0 libva (1.7.0-1) unstable; urgency=low
11
22 * Autogenerated package, see NEWS file for ChangeLog.
33
4 -- Gwenole Beauchesne <gwenole.beauchesne@intel.com> Tue, 15 Dec 2015 14:17:03 +0800
4 -- Gwenole Beauchesne <gwenole.beauchesne@intel.com> Tue, 15 Mar 2016 15:05:31 +0800
310310 exit 1;; \
311311 esac; \
312312 done; \
313 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
313 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
314314 $(am__cd) $(top_srcdir) && \
315 $(AUTOMAKE) --gnu doc/Makefile
315 $(AUTOMAKE) --foreign doc/Makefile
316316 .PRECIOUS: Makefile
317317 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
318318 @case '$?' in \
392392 exit 1;; \
393393 esac; \
394394 done; \
395 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu dummy_drv_video/Makefile'; \
395 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign dummy_drv_video/Makefile'; \
396396 $(am__cd) $(top_srcdir) && \
397 $(AUTOMAKE) --gnu dummy_drv_video/Makefile
397 $(AUTOMAKE) --foreign dummy_drv_video/Makefile
398398 .PRECIOUS: Makefile
399399 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
400400 @case '$?' in \
345345 exit 1;; \
346346 esac; \
347347 done; \
348 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pkgconfig/Makefile'; \
348 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign pkgconfig/Makefile'; \
349349 $(am__cd) $(top_srcdir) && \
350 $(AUTOMAKE) --gnu pkgconfig/Makefile
350 $(AUTOMAKE) --foreign pkgconfig/Makefile
351351 .PRECIOUS: Makefile
352352 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
353353 @case '$?' in \
357357 exit 1;; \
358358 esac; \
359359 done; \
360 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
360 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
361361 $(am__cd) $(top_srcdir) && \
362 $(AUTOMAKE) --gnu test/Makefile
362 $(AUTOMAKE) --foreign test/Makefile
363363 .PRECIOUS: Makefile
364364 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
365365 @case '$?' in \
423423 exit 1;; \
424424 esac; \
425425 done; \
426 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/basic/Makefile'; \
426 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/basic/Makefile'; \
427427 $(am__cd) $(top_srcdir) && \
428 $(AUTOMAKE) --gnu test/basic/Makefile
428 $(AUTOMAKE) --foreign test/basic/Makefile
429429 .PRECIOUS: Makefile
430430 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
431431 @case '$?' in \
394394 exit 1;; \
395395 esac; \
396396 done; \
397 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/common/Makefile'; \
397 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/common/Makefile'; \
398398 $(am__cd) $(top_srcdir) && \
399 $(AUTOMAKE) --gnu test/common/Makefile
399 $(AUTOMAKE) --foreign test/common/Makefile
400400 .PRECIOUS: Makefile
401401 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
402402 @case '$?' in \
389389 exit 1;; \
390390 esac; \
391391 done; \
392 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/decode/Makefile'; \
392 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/decode/Makefile'; \
393393 $(am__cd) $(top_srcdir) && \
394 $(AUTOMAKE) --gnu test/decode/Makefile
394 $(AUTOMAKE) --foreign test/decode/Makefile
395395 .PRECIOUS: Makefile
396396 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
397397 @case '$?' in \
413413 exit 1;; \
414414 esac; \
415415 done; \
416 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/encode/Makefile'; \
416 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/encode/Makefile'; \
417417 $(am__cd) $(top_srcdir) && \
418 $(AUTOMAKE) --gnu test/encode/Makefile
418 $(AUTOMAKE) --foreign test/encode/Makefile
419419 .PRECIOUS: Makefile
420420 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
421421 @case '$?' in \
967967 default: {
968968 printf("Unsupported format:\n");
969969 show_help();
970 break;
970 return -1;
971971 }
972972
973973 }
393393 exit 1;; \
394394 esac; \
395395 done; \
396 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/putsurface/Makefile'; \
396 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/putsurface/Makefile'; \
397397 $(am__cd) $(top_srcdir) && \
398 $(AUTOMAKE) --gnu test/putsurface/Makefile
398 $(AUTOMAKE) --foreign test/putsurface/Makefile
399399 .PRECIOUS: Makefile
400400 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
401401 @case '$?' in \
371371 exit 1;; \
372372 esac; \
373373 done; \
374 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/vainfo/Makefile'; \
374 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/vainfo/Makefile'; \
375375 $(am__cd) $(top_srcdir) && \
376 $(AUTOMAKE) --gnu test/vainfo/Makefile
376 $(AUTOMAKE) --foreign test/vainfo/Makefile
377377 .PRECIOUS: Makefile
378378 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
379379 @case '$?' in \
6060 case VAProfileHEVCMain: return "VAProfileHEVCMain";
6161 case VAProfileHEVCMain10: return "VAProfileHEVCMain10";
6262 case VAProfileVP9Profile0: return "VAProfileVP9Profile0";
63 case VAProfileVP9Profile1: return "VAProfileVP9Profile1";
64 case VAProfileVP9Profile2: return "VAProfileVP9Profile2";
65 case VAProfileVP9Profile3: return "VAProfileVP9Profile3";
6366
6467 default:
6568 break;
565565 exit 1;; \
566566 esac; \
567567 done; \
568 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/Makefile'; \
568 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/Makefile'; \
569569 $(am__cd) $(top_srcdir) && \
570 $(AUTOMAKE) --gnu va/Makefile
570 $(AUTOMAKE) --foreign va/Makefile
571571 .PRECIOUS: Makefile
572572 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
573573 @case '$?' in \
405405 exit 1;; \
406406 esac; \
407407 done; \
408 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/drm/Makefile'; \
408 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/drm/Makefile'; \
409409 $(am__cd) $(top_srcdir) && \
410 $(AUTOMAKE) --gnu va/drm/Makefile
410 $(AUTOMAKE) --foreign va/drm/Makefile
411411 .PRECIOUS: Makefile
412412 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
413413 @case '$?' in \
4040 { "pvrsrvkm", 8, "pvr" }, // Intel UMG PVR driver
4141 { "emgd", 4, "emgd" }, // Intel ECG PVR driver
4242 { "hybrid", 6, "hybrid" }, // Intel OTC Hybrid driver
43 { "nouveau", 7, "gallium" }, // Mesa Gallium driver
44 { "radeon", 6, "gallium" }, // Mesa Gallium driver
4345 { NULL, }
4446 };
4547
397397 exit 1;; \
398398 esac; \
399399 done; \
400 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/egl/Makefile'; \
400 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/egl/Makefile'; \
401401 $(am__cd) $(top_srcdir) && \
402 $(AUTOMAKE) --gnu va/egl/Makefile
402 $(AUTOMAKE) --foreign va/egl/Makefile
403403 .PRECIOUS: Makefile
404404 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
405405 @case '$?' in \
406406 exit 1;; \
407407 esac; \
408408 done; \
409 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/glx/Makefile'; \
409 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/glx/Makefile'; \
410410 $(am__cd) $(top_srcdir) && \
411 $(AUTOMAKE) --gnu va/glx/Makefile
411 $(AUTOMAKE) --foreign va/glx/Makefile
412412 .PRECIOUS: Makefile
413413 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
414414 @case '$?' in \
190190 return 0;
191191 }
192192
193 static int check_extension3(const char *name)
194 {
195 int nbExtensions, i;
196 PFNGLGETSTRINGIPROC glGetStringi = 0;
197
198 glGetStringi = (PFNGLGETSTRINGIPROC) get_proc_address("glGetStringi");
199 if(!glGetStringi)
200 return 0;
201
202
203 glGetIntegerv(GL_NUM_EXTENSIONS, &nbExtensions);
204 for(i = 0; i < nbExtensions; i++)
205 {
206 const GLubyte *strExtension = glGetStringi(GL_EXTENSIONS, i);
207 if(strcmp(strExtension, (const GLubyte *)name) == 0)
208 return 1;
209 }
210
211 return 0;
212 }
213
193214 static int check_tfp_extensions(VADriverContextP ctx)
194215 {
195216 const char *gl_extensions;
196217 const char *glx_extensions;
197218
198219 gl_extensions = (const char *)glGetString(GL_EXTENSIONS);
199 if (!check_extension("GL_ARB_texture_non_power_of_two", gl_extensions))
220 if (!check_extension("GL_ARB_texture_non_power_of_two", gl_extensions) && !check_extension3("GL_ARB_texture_non_power_of_two"))
200221 return 0;
201222
202223 glx_extensions = glXQueryExtensionsString(ctx->native_dpy, ctx->x11_screen);
203224 if (!check_extension("GLX_EXT_texture_from_pixmap", glx_extensions))
204225 return 0;
226
205227 return 1;
206228 }
207229
210232 const char *gl_extensions;
211233
212234 gl_extensions = (const char *)glGetString(GL_EXTENSIONS);
213 if (check_extension("GL_ARB_framebuffer_object", gl_extensions))
235 if (check_extension("GL_ARB_framebuffer_object", gl_extensions) || check_extension3("GL_ARB_framebuffer_object"))
214236 return 1;
215 if (check_extension("GL_EXT_framebuffer_object", gl_extensions))
237 if (check_extension("GL_EXT_framebuffer_object", gl_extensions) || check_extension3("GL_EXT_framebuffer_object"))
216238 return 1;
239
217240 return 0;
218241 }
219242
245245 int minor;
246246 } compatible_versions[] = {
247247 { VA_MAJOR_VERSION, VA_MINOR_VERSION },
248 { 0, 38 },
248249 { 0, 37 },
249250 { 0, 36 },
250251 { 0, 35 },
302302 VAProfileH264StereoHigh = 16,
303303 VAProfileHEVCMain = 17,
304304 VAProfileHEVCMain10 = 18,
305 VAProfileVP9Profile0 = 19
305 VAProfileVP9Profile0 = 19,
306 VAProfileVP9Profile1 = 20,
307 VAProfileVP9Profile2 = 21,
308 VAProfileVP9Profile3 = 22
306309 } VAProfile;
307310
308311 /**
181181 uint8_t segment_pred_probs[3];
182182
183183 /** \brief VP9 Profile definition
184 * value can be 0 or 1.
185 */
184 * value range [0..3].
185 */
186186 uint8_t profile;
187
188 /** \brief VP9 bit depth per sample
189 * same for both luma and chroma samples.
190 */
191 uint8_t bit_depth;
187192
188193 /**@}*/
189194
3636 *
3737 * The minor version of VA-API (2, if %VA_VERSION is 1.2.3)
3838 */
39 #define VA_MINOR_VERSION 38
39 #define VA_MINOR_VERSION 39
4040
4141 /**
4242 * VA_MICRO_VERSION:
4343 *
4444 * The micro version of VA-API (3, if %VA_VERSION is 1.2.3)
4545 */
46 #define VA_MICRO_VERSION 1
46 #define VA_MICRO_VERSION 0
4747
4848 /**
4949 * VA_VERSION:
5050 *
5151 * The full version of VA-API, like 1.2.3
5252 */
53 #define VA_VERSION 0.38.1
53 #define VA_VERSION 0.39.0
5454
5555 /**
5656 * VA_VERSION_S:
5858 * The full version of VA-API, in string form (suited for string
5959 * concatenation)
6060 */
61 #define VA_VERSION_S "0.38.1"
61 #define VA_VERSION_S "0.39.0"
6262
6363 /**
6464 * VA_VERSION_HEX:
421421 exit 1;; \
422422 esac; \
423423 done; \
424 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/wayland/Makefile'; \
424 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/wayland/Makefile'; \
425425 $(am__cd) $(top_srcdir) && \
426 $(AUTOMAKE) --gnu va/wayland/Makefile
426 $(AUTOMAKE) --foreign va/wayland/Makefile
427427 .PRECIOUS: Makefile
428428 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
429429 @case '$?' in \
116116
117117 struct wl_drm_listener {
118118 /**
119 * device - (none)
120 * @name: (none)
119 * device - device
120 * @name: name
121121 */
122122 void (*device)(void *data,
123123 struct wl_drm *wl_drm,
124124 const char *name);
125125 /**
126 * format - (none)
127 * @format: (none)
126 * format - format
127 * @format: format
128128 */
129129 void (*format)(void *data,
130130 struct wl_drm *wl_drm,
131131 uint32_t format);
132132 /**
133 * authenticated - (none)
133 * authenticated - authenticated
134134 */
135135 void (*authenticated)(void *data,
136136 struct wl_drm *wl_drm);
178178 {
179179 struct wl_proxy *id;
180180
181 id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_drm,
182 WL_DRM_CREATE_BUFFER, &wl_buffer_interface, NULL, name, width, height, stride, format);
181 id = wl_proxy_create((struct wl_proxy *) wl_drm,
182 &wl_buffer_interface);
183 if (!id)
184 return NULL;
185
186 wl_proxy_marshal((struct wl_proxy *) wl_drm,
187 WL_DRM_CREATE_BUFFER, id, name, width, height, stride, format);
183188
184189 return (struct wl_buffer *) id;
185190 }
189194 {
190195 struct wl_proxy *id;
191196
192 id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_drm,
193 WL_DRM_CREATE_PLANAR_BUFFER, &wl_buffer_interface, NULL, name, width, height, format, offset0, stride0, offset1, stride1, offset2, stride2);
197 id = wl_proxy_create((struct wl_proxy *) wl_drm,
198 &wl_buffer_interface);
199 if (!id)
200 return NULL;
201
202 wl_proxy_marshal((struct wl_proxy *) wl_drm,
203 WL_DRM_CREATE_PLANAR_BUFFER, id, name, width, height, format, offset0, stride0, offset1, stride1, offset2, stride2);
194204
195205 return (struct wl_buffer *) id;
196206 }
414414 exit 1;; \
415415 esac; \
416416 done; \
417 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/x11/Makefile'; \
417 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/x11/Makefile'; \
418418 $(am__cd) $(top_srcdir) && \
419 $(AUTOMAKE) --gnu va/x11/Makefile
419 $(AUTOMAKE) --foreign va/x11/Makefile
420420 .PRECIOUS: Makefile
421421 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
422422 @case '$?' in \