[arch-commits] Commit in xvba-video-open/repos (10 files)

Laurent Carlier lcarlier at nymeria.archlinux.org
Sun Feb 17 10:00:35 UTC 2013


    Date: Sunday, February 17, 2013 @ 11:00:33
  Author: lcarlier
Revision: 84373

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  xvba-video-open/repos/community-testing-i686/
  xvba-video-open/repos/community-testing-i686/PKGBUILD
    (from rev 84372, xvba-video-open/trunk/PKGBUILD)
  xvba-video-open/repos/community-testing-i686/fix-build-with-glext.h-version-85.patch
    (from rev 84372, xvba-video-open/trunk/fix-build-with-glext.h-version-85.patch)
  xvba-video-open/repos/community-testing-i686/xvba-video-0.8.0-glx-fix.patch
    (from rev 84372, xvba-video-open/trunk/xvba-video-0.8.0-glx-fix.patch)
  xvba-video-open/repos/community-testing-i686/xvba-video-h264-level51.patch
    (from rev 84372, xvba-video-open/trunk/xvba-video-h264-level51.patch)
  xvba-video-open/repos/community-testing-x86_64/
  xvba-video-open/repos/community-testing-x86_64/PKGBUILD
    (from rev 84372, xvba-video-open/trunk/PKGBUILD)
  xvba-video-open/repos/community-testing-x86_64/fix-build-with-glext.h-version-85.patch
    (from rev 84372, xvba-video-open/trunk/fix-build-with-glext.h-version-85.patch)
  xvba-video-open/repos/community-testing-x86_64/xvba-video-0.8.0-glx-fix.patch
    (from rev 84372, xvba-video-open/trunk/xvba-video-0.8.0-glx-fix.patch)
  xvba-video-open/repos/community-testing-x86_64/xvba-video-h264-level51.patch
    (from rev 84372, xvba-video-open/trunk/xvba-video-h264-level51.patch)

------------------------------------------------------------------+
 community-testing-i686/PKGBUILD                                  |   49 ++++++++++
 community-testing-i686/fix-build-with-glext.h-version-85.patch   |   17 +++
 community-testing-i686/xvba-video-0.8.0-glx-fix.patch            |   12 ++
 community-testing-i686/xvba-video-h264-level51.patch             |   33 ++++++
 community-testing-x86_64/PKGBUILD                                |   49 ++++++++++
 community-testing-x86_64/fix-build-with-glext.h-version-85.patch |   17 +++
 community-testing-x86_64/xvba-video-0.8.0-glx-fix.patch          |   12 ++
 community-testing-x86_64/xvba-video-h264-level51.patch           |   33 ++++++
 8 files changed, 222 insertions(+)

Copied: xvba-video-open/repos/community-testing-i686/PKGBUILD (from rev 84372, xvba-video-open/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
+
+pkgname=xvba-video-open
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="OSS version of xvba-video lib to enable hw video acceleration on AMD's HD series of GFX cards"
+arch=('i686' 'x86_64')
+url="http://www.splitted-desktop.com/~gbeauchesne/xvba-video/"
+license=('GPL2')
+depends=('catalyst-utils' 'libva')
+makedepends=('mesa')
+options=(!libtool)
+source=(ftp://ftp.archlinux.org/other/community/xvba-video-open/xvba-video-${pkgver}.tar.gz
+        http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz
+        xvba-video-h264-level51.patch
+        xvba-video-0.8.0-glx-fix.patch
+        fix-build-with-glext.h-version-85.patch)
+md5sums=('d9ddec2e7f02c1fa533773918e88e311'
+         'b8f56bc55aa70cb19dd12857fdc184cc'
+         'bce1de0a8b274049568453a53e8fce6a'
+         '5dc283eab46418eeef8e8be7c028a2ba')
+
+build() {
+  cd "${srcdir}/xvba-video-${pkgver}"
+
+  # patch from opensuse (thanks vi0l0!)
+  patch -Np1 -i ../xvba-video-h264-level51.patch
+  patch -Np1 -i ../xvba-video-0.8.0-glx-fix.patch
+  
+  patch -Np1 -i ../fix-build-with-glext.h-version-85.patch
+
+  export CPPFLAGS="${CPPFLAGS} -I${srcdir}/include"
+  
+  ./configure --disable-debug --enable-libxvba-dlopen --prefix=/usr
+  make PYTHON=python2
+}
+
+package() {
+  cd "${srcdir}/xvba-video-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}
+md5sums=('d9ddec2e7f02c1fa533773918e88e311'
+         'b8f56bc55aa70cb19dd12857fdc184cc'
+         'bce1de0a8b274049568453a53e8fce6a'
+         '5dc283eab46418eeef8e8be7c028a2ba'
+         '69e8a9027affbaf7066e35bc97b3a984')

Copied: xvba-video-open/repos/community-testing-i686/fix-build-with-glext.h-version-85.patch (from rev 84372, xvba-video-open/trunk/fix-build-with-glext.h-version-85.patch)
===================================================================
--- community-testing-i686/fix-build-with-glext.h-version-85.patch	                        (rev 0)
+++ community-testing-i686/fix-build-with-glext.h-version-85.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,17 @@
+diff -ru xvba-video-0.8.0/src/utils_glx.h xvba-video-0.8.0.patched/src/utils_glx.h
+--- xvba-video-0.8.0/src/utils_glx.h	2011-06-14 13:07:13.000000000 +0200
++++ xvba-video-0.8.0.patched/src/utils_glx.h	2013-02-17 10:53:34.589818821 +0100
+@@ -25,6 +25,13 @@
+ #include <GL/glext.h>
+ #include <GL/glx.h>
+ 
++#if GL_GLEXT_VERSION >= 85
++/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
++   block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
++   Redefine the type here as an interim solution */
++typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
++#endif
++
+ #ifndef GL_FRAMEBUFFER_BINDING
+ #define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_EXT
+ #endif

Copied: xvba-video-open/repos/community-testing-i686/xvba-video-0.8.0-glx-fix.patch (from rev 84372, xvba-video-open/trunk/xvba-video-0.8.0-glx-fix.patch)
===================================================================
--- community-testing-i686/xvba-video-0.8.0-glx-fix.patch	                        (rev 0)
+++ community-testing-i686/xvba-video-0.8.0-glx-fix.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,12 @@
+diff -ur xvba-video-0.8.0/src/xvba_image.c xvba-video-0.8.0-patched/src/xvba_image.c
+--- xvba-video-0.8.0/src/xvba_image.c	2011-06-14 13:07:13.000000000 +0200
++++ xvba-video-0.8.0-patched/src/xvba_image.c	2012-07-22 14:55:14.186667413 +0200
+@@ -423,7 +423,7 @@
+ }
+ 
+ #if USE_GLX
+-const HWImageHooks hw_image_hooks_glx attribute_hidden;
++extern const HWImageHooks hw_image_hooks_glx attribute_hidden;
+ #endif
+ 
+ // Commit image to the HW

Copied: xvba-video-open/repos/community-testing-i686/xvba-video-h264-level51.patch (from rev 84372, xvba-video-open/trunk/xvba-video-h264-level51.patch)
===================================================================
--- community-testing-i686/xvba-video-h264-level51.patch	                        (rev 0)
+++ community-testing-i686/xvba-video-h264-level51.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,33 @@
+diff -rup xvba-video.orig/src/xvba_buffer.c xvba-video/src/xvba_buffer.c
+--- xvba-video.orig/src/xvba_buffer.c	2011-09-08 03:17:28.000000000 +0200
++++ xvba-video/src/xvba_buffer.c	2012-07-03 21:38:04.851465348 +0200
+@@ -368,23 +368,18 @@ translate_VAPictureParameterBufferH264(
+         obj_context->picture_height
+     );
+ 
+-    /* Check for H.264 content over HP at L4.1 */
++    /* Check for wrongly coded H264 Level 41
++       adjust profile to Level 51 when reframes are too many
++    */
+     unsigned int num_ref_frames = pic_param->num_ref_frames;
+-    if (profile == XVBA_H264_HIGH && level > 41) {
+-        if (!driver_data->warn_h264_over_hp_l41) {
+-            driver_data->warn_h264_over_hp_l41 = 1;
+-            xvba_information_message(
+-                "driver does not support H.264 content over HP at L4.1. "
+-                "Please upgrade.\n"
+-            );
+-        }
++    if (profile == XVBA_H264_HIGH && level == 41) {
+ 
+-        /* Use fail-safe values (lower ref frames) */
++        /* Increase Level to decode pseudo Level 41 as Level 51 */
+         const unsigned int mbw = pic_param->picture_width_in_mbs_minus1 + 1;
+         const unsigned int mbh = (obj_context->picture_height + 15) / 16;
+         const unsigned int max_ref_frames = 12288 * 1024 / (mbw * mbh * 384);
+         if (max_ref_frames < num_ref_frames)
+-            num_ref_frames = max_ref_frames;
++            level = 51;
+     }
+ 
+     XVBABufferDescriptor * const xvba_buffer = obj_surface->pic_desc_buffer;

Copied: xvba-video-open/repos/community-testing-x86_64/PKGBUILD (from rev 84372, xvba-video-open/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
+
+pkgname=xvba-video-open
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="OSS version of xvba-video lib to enable hw video acceleration on AMD's HD series of GFX cards"
+arch=('i686' 'x86_64')
+url="http://www.splitted-desktop.com/~gbeauchesne/xvba-video/"
+license=('GPL2')
+depends=('catalyst-utils' 'libva')
+makedepends=('mesa')
+options=(!libtool)
+source=(ftp://ftp.archlinux.org/other/community/xvba-video-open/xvba-video-${pkgver}.tar.gz
+        http://developer.amd.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz
+        xvba-video-h264-level51.patch
+        xvba-video-0.8.0-glx-fix.patch
+        fix-build-with-glext.h-version-85.patch)
+md5sums=('d9ddec2e7f02c1fa533773918e88e311'
+         'b8f56bc55aa70cb19dd12857fdc184cc'
+         'bce1de0a8b274049568453a53e8fce6a'
+         '5dc283eab46418eeef8e8be7c028a2ba')
+
+build() {
+  cd "${srcdir}/xvba-video-${pkgver}"
+
+  # patch from opensuse (thanks vi0l0!)
+  patch -Np1 -i ../xvba-video-h264-level51.patch
+  patch -Np1 -i ../xvba-video-0.8.0-glx-fix.patch
+  
+  patch -Np1 -i ../fix-build-with-glext.h-version-85.patch
+
+  export CPPFLAGS="${CPPFLAGS} -I${srcdir}/include"
+  
+  ./configure --disable-debug --enable-libxvba-dlopen --prefix=/usr
+  make PYTHON=python2
+}
+
+package() {
+  cd "${srcdir}/xvba-video-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install
+}
+md5sums=('d9ddec2e7f02c1fa533773918e88e311'
+         'b8f56bc55aa70cb19dd12857fdc184cc'
+         'bce1de0a8b274049568453a53e8fce6a'
+         '5dc283eab46418eeef8e8be7c028a2ba'
+         '69e8a9027affbaf7066e35bc97b3a984')

Copied: xvba-video-open/repos/community-testing-x86_64/fix-build-with-glext.h-version-85.patch (from rev 84372, xvba-video-open/trunk/fix-build-with-glext.h-version-85.patch)
===================================================================
--- community-testing-x86_64/fix-build-with-glext.h-version-85.patch	                        (rev 0)
+++ community-testing-x86_64/fix-build-with-glext.h-version-85.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,17 @@
+diff -ru xvba-video-0.8.0/src/utils_glx.h xvba-video-0.8.0.patched/src/utils_glx.h
+--- xvba-video-0.8.0/src/utils_glx.h	2011-06-14 13:07:13.000000000 +0200
++++ xvba-video-0.8.0.patched/src/utils_glx.h	2013-02-17 10:53:34.589818821 +0100
+@@ -25,6 +25,13 @@
+ #include <GL/glext.h>
+ #include <GL/glx.h>
+ 
++#if GL_GLEXT_VERSION >= 85
++/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
++   block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
++   Redefine the type here as an interim solution */
++typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
++#endif
++
+ #ifndef GL_FRAMEBUFFER_BINDING
+ #define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_EXT
+ #endif

Copied: xvba-video-open/repos/community-testing-x86_64/xvba-video-0.8.0-glx-fix.patch (from rev 84372, xvba-video-open/trunk/xvba-video-0.8.0-glx-fix.patch)
===================================================================
--- community-testing-x86_64/xvba-video-0.8.0-glx-fix.patch	                        (rev 0)
+++ community-testing-x86_64/xvba-video-0.8.0-glx-fix.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,12 @@
+diff -ur xvba-video-0.8.0/src/xvba_image.c xvba-video-0.8.0-patched/src/xvba_image.c
+--- xvba-video-0.8.0/src/xvba_image.c	2011-06-14 13:07:13.000000000 +0200
++++ xvba-video-0.8.0-patched/src/xvba_image.c	2012-07-22 14:55:14.186667413 +0200
+@@ -423,7 +423,7 @@
+ }
+ 
+ #if USE_GLX
+-const HWImageHooks hw_image_hooks_glx attribute_hidden;
++extern const HWImageHooks hw_image_hooks_glx attribute_hidden;
+ #endif
+ 
+ // Commit image to the HW

Copied: xvba-video-open/repos/community-testing-x86_64/xvba-video-h264-level51.patch (from rev 84372, xvba-video-open/trunk/xvba-video-h264-level51.patch)
===================================================================
--- community-testing-x86_64/xvba-video-h264-level51.patch	                        (rev 0)
+++ community-testing-x86_64/xvba-video-h264-level51.patch	2013-02-17 10:00:33 UTC (rev 84373)
@@ -0,0 +1,33 @@
+diff -rup xvba-video.orig/src/xvba_buffer.c xvba-video/src/xvba_buffer.c
+--- xvba-video.orig/src/xvba_buffer.c	2011-09-08 03:17:28.000000000 +0200
++++ xvba-video/src/xvba_buffer.c	2012-07-03 21:38:04.851465348 +0200
+@@ -368,23 +368,18 @@ translate_VAPictureParameterBufferH264(
+         obj_context->picture_height
+     );
+ 
+-    /* Check for H.264 content over HP at L4.1 */
++    /* Check for wrongly coded H264 Level 41
++       adjust profile to Level 51 when reframes are too many
++    */
+     unsigned int num_ref_frames = pic_param->num_ref_frames;
+-    if (profile == XVBA_H264_HIGH && level > 41) {
+-        if (!driver_data->warn_h264_over_hp_l41) {
+-            driver_data->warn_h264_over_hp_l41 = 1;
+-            xvba_information_message(
+-                "driver does not support H.264 content over HP at L4.1. "
+-                "Please upgrade.\n"
+-            );
+-        }
++    if (profile == XVBA_H264_HIGH && level == 41) {
+ 
+-        /* Use fail-safe values (lower ref frames) */
++        /* Increase Level to decode pseudo Level 41 as Level 51 */
+         const unsigned int mbw = pic_param->picture_width_in_mbs_minus1 + 1;
+         const unsigned int mbh = (obj_context->picture_height + 15) / 16;
+         const unsigned int max_ref_frames = 12288 * 1024 / (mbw * mbh * 384);
+         if (max_ref_frames < num_ref_frames)
+-            num_ref_frames = max_ref_frames;
++            level = 51;
+     }
+ 
+     XVBABufferDescriptor * const xvba_buffer = obj_surface->pic_desc_buffer;




More information about the arch-commits mailing list