Accepting request 61526 from home:polyconvex:xorg

reviewed ok.

OBS-URL: https://build.opensuse.org/request/show/61526
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libva?expand=0&rev=1
This commit is contained in:
Stefan Dirsch 2011-02-17 16:14:30 +00:00 committed by Git OBS Bridge
commit 036114e207
7 changed files with 306 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,115 @@
From 2b7850b35a51c59a6692781d5e40e4bb608b6344 Mon Sep 17 00:00:00 2001
From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Date: Thu, 27 Jan 2011 10:41:24 +0100
Subject: [PATCH] i965_drv_video: make VADriverContext.vtable a pointer.
---
i965_drv_video/i965_drv_video.c | 85 ++++++++++++++++++++-------------------
1 files changed, 43 insertions(+), 42 deletions(-)
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c
index 303e090..5baa0ff 100644
--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -1839,6 +1839,7 @@ i965_Terminate(VADriverContextP ctx)
VAStatus
VA_DRIVER_INIT_FUNC( VADriverContextP ctx )
{
+ struct VADriverVTable * const vtable = ctx->vtable;
struct i965_driver_data *i965;
int result;
@@ -1852,48 +1853,48 @@ VA_DRIVER_INIT_FUNC( VADriverContextP ctx )
ctx->max_display_attributes = I965_MAX_DISPLAY_ATTRIBUTES;
ctx->str_vendor = I965_STR_VENDOR;
- ctx->vtable.vaTerminate = i965_Terminate;
- ctx->vtable.vaQueryConfigEntrypoints = i965_QueryConfigEntrypoints;
- ctx->vtable.vaQueryConfigProfiles = i965_QueryConfigProfiles;
- ctx->vtable.vaQueryConfigEntrypoints = i965_QueryConfigEntrypoints;
- ctx->vtable.vaQueryConfigAttributes = i965_QueryConfigAttributes;
- ctx->vtable.vaCreateConfig = i965_CreateConfig;
- ctx->vtable.vaDestroyConfig = i965_DestroyConfig;
- ctx->vtable.vaGetConfigAttributes = i965_GetConfigAttributes;
- ctx->vtable.vaCreateSurfaces = i965_CreateSurfaces;
- ctx->vtable.vaDestroySurfaces = i965_DestroySurfaces;
- ctx->vtable.vaCreateContext = i965_CreateContext;
- ctx->vtable.vaDestroyContext = i965_DestroyContext;
- ctx->vtable.vaCreateBuffer = i965_CreateBuffer;
- ctx->vtable.vaBufferSetNumElements = i965_BufferSetNumElements;
- ctx->vtable.vaMapBuffer = i965_MapBuffer;
- ctx->vtable.vaUnmapBuffer = i965_UnmapBuffer;
- ctx->vtable.vaDestroyBuffer = i965_DestroyBuffer;
- ctx->vtable.vaBeginPicture = i965_BeginPicture;
- ctx->vtable.vaRenderPicture = i965_RenderPicture;
- ctx->vtable.vaEndPicture = i965_EndPicture;
- ctx->vtable.vaSyncSurface = i965_SyncSurface;
- ctx->vtable.vaQuerySurfaceStatus = i965_QuerySurfaceStatus;
- ctx->vtable.vaPutSurface = i965_PutSurface;
- ctx->vtable.vaQueryImageFormats = i965_QueryImageFormats;
- ctx->vtable.vaCreateImage = i965_CreateImage;
- ctx->vtable.vaDeriveImage = i965_DeriveImage;
- ctx->vtable.vaDestroyImage = i965_DestroyImage;
- ctx->vtable.vaSetImagePalette = i965_SetImagePalette;
- ctx->vtable.vaGetImage = i965_GetImage;
- ctx->vtable.vaPutImage = i965_PutImage;
- ctx->vtable.vaQuerySubpictureFormats = i965_QuerySubpictureFormats;
- ctx->vtable.vaCreateSubpicture = i965_CreateSubpicture;
- ctx->vtable.vaDestroySubpicture = i965_DestroySubpicture;
- ctx->vtable.vaSetSubpictureImage = i965_SetSubpictureImage;
- ctx->vtable.vaSetSubpictureChromakey = i965_SetSubpictureChromakey;
- ctx->vtable.vaSetSubpictureGlobalAlpha = i965_SetSubpictureGlobalAlpha;
- ctx->vtable.vaAssociateSubpicture = i965_AssociateSubpicture;
- ctx->vtable.vaDeassociateSubpicture = i965_DeassociateSubpicture;
- ctx->vtable.vaQueryDisplayAttributes = i965_QueryDisplayAttributes;
- ctx->vtable.vaGetDisplayAttributes = i965_GetDisplayAttributes;
- ctx->vtable.vaSetDisplayAttributes = i965_SetDisplayAttributes;
-// ctx->vtable.vaDbgCopySurfaceToBuffer = i965_DbgCopySurfaceToBuffer;
+ vtable->vaTerminate = i965_Terminate;
+ vtable->vaQueryConfigEntrypoints = i965_QueryConfigEntrypoints;
+ vtable->vaQueryConfigProfiles = i965_QueryConfigProfiles;
+ vtable->vaQueryConfigEntrypoints = i965_QueryConfigEntrypoints;
+ vtable->vaQueryConfigAttributes = i965_QueryConfigAttributes;
+ vtable->vaCreateConfig = i965_CreateConfig;
+ vtable->vaDestroyConfig = i965_DestroyConfig;
+ vtable->vaGetConfigAttributes = i965_GetConfigAttributes;
+ vtable->vaCreateSurfaces = i965_CreateSurfaces;
+ vtable->vaDestroySurfaces = i965_DestroySurfaces;
+ vtable->vaCreateContext = i965_CreateContext;
+ vtable->vaDestroyContext = i965_DestroyContext;
+ vtable->vaCreateBuffer = i965_CreateBuffer;
+ vtable->vaBufferSetNumElements = i965_BufferSetNumElements;
+ vtable->vaMapBuffer = i965_MapBuffer;
+ vtable->vaUnmapBuffer = i965_UnmapBuffer;
+ vtable->vaDestroyBuffer = i965_DestroyBuffer;
+ vtable->vaBeginPicture = i965_BeginPicture;
+ vtable->vaRenderPicture = i965_RenderPicture;
+ vtable->vaEndPicture = i965_EndPicture;
+ vtable->vaSyncSurface = i965_SyncSurface;
+ vtable->vaQuerySurfaceStatus = i965_QuerySurfaceStatus;
+ vtable->vaPutSurface = i965_PutSurface;
+ vtable->vaQueryImageFormats = i965_QueryImageFormats;
+ vtable->vaCreateImage = i965_CreateImage;
+ vtable->vaDeriveImage = i965_DeriveImage;
+ vtable->vaDestroyImage = i965_DestroyImage;
+ vtable->vaSetImagePalette = i965_SetImagePalette;
+ vtable->vaGetImage = i965_GetImage;
+ vtable->vaPutImage = i965_PutImage;
+ vtable->vaQuerySubpictureFormats = i965_QuerySubpictureFormats;
+ vtable->vaCreateSubpicture = i965_CreateSubpicture;
+ vtable->vaDestroySubpicture = i965_DestroySubpicture;
+ vtable->vaSetSubpictureImage = i965_SetSubpictureImage;
+ vtable->vaSetSubpictureChromakey = i965_SetSubpictureChromakey;
+ vtable->vaSetSubpictureGlobalAlpha = i965_SetSubpictureGlobalAlpha;
+ vtable->vaAssociateSubpicture = i965_AssociateSubpicture;
+ vtable->vaDeassociateSubpicture = i965_DeassociateSubpicture;
+ vtable->vaQueryDisplayAttributes = i965_QueryDisplayAttributes;
+ vtable->vaGetDisplayAttributes = i965_GetDisplayAttributes;
+ vtable->vaSetDisplayAttributes = i965_SetDisplayAttributes;
+// vtable->vaDbgCopySurfaceToBuffer = i965_DbgCopySurfaceToBuffer;
i965 = (struct i965_driver_data *)calloc(1, sizeof(*i965));
assert(i965);
--
1.7.3.4

5
baselibs.conf Normal file
View File

@ -0,0 +1,5 @@
libva1
libva-devel
requires -libva-<targettype>
requires "libva1-<targettype> = <version>"
vaapi-tools

3
libva-1.0.10.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71c77a3a2f4f6cd65974932d4acb9b4f9749ed0103fa2495720d48ffdeb50798
size 459100

46
libva.changes Normal file
View File

@ -0,0 +1,46 @@
-------------------------------------------------------------------
Tue Feb 15 12:05:12 UTC 2011 - kkhere.geo@gmail.com
- new version 1.0.10
-------------------------------------------------------------------
Mon Jan 10 10:23:00 UTC 2011 - kkhere.geo@gmail.com
- new version 1.0.7
- support IA44 AI44 subpicture format in sandybridge
-------------------------------------------------------------------
Sun Dec 19 10:14:27 UTC 2010 - lnussel@suse.de
- new version 1.0.6
-------------------------------------------------------------------
Fri Nov 5 13:41:52 UTC 2010 - kkhere.geo@gmail.com
- update to version 1.0.6
-------------------------------------------------------------------
Thu Sep 30 09:05:22 UTC 2010 - kkhere.geo@gmail.com
- update to version 1.0.5
* add scaling flags for vaPutSurface()
* i965_drv_video: add video processing kernels
* i965_drv_video: deinterlacing & scaling
-------------------------------------------------------------------
Thu Sep 9 14:19:54 UTC 2010 - kkhere.geo@gmail.com
- update to version 1.0.4
-------------------------------------------------------------------
Tue Jun 8 10:05:32 UTC 2010 - dimstar@opensuse.org
- Split the library in libva1, the tools in vaapi-tools and the
development in libva-devel. Both libraries can live in the same
package as per policy: they are kept in sync with their soNUM.
-------------------------------------------------------------------
Mon Jun 7 21:43:40 UTC 2010 - dominique-vlc.suse@leuenberger.net
- Initial package for VideoLAN repository, libva 1.0.1

113
libva.spec Normal file
View File

@ -0,0 +1,113 @@
Name: libva
Version: 1.0.10
Release: 1
License: MIT
Summary: Video Acceleration (VA) API for Linux
Url: http://freedesktop.org/wiki/Software/vaapi
Group: System/Libraries
Source: http://cgit.freedesktop.org/libva/snapshot/%{name}-%{version}.tar.bz2
Patch1: 0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config libudev-devel
BuildRequires: xorg-x11-devel xorg-x11-libXext-devel xorg-x11-libXfixes-devel
BuildRequires: libdrm-devel Mesa-devel
AutoReqProv: on
%description
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
%package -n vaapi-tools
Summary: Video Acceleration (VA) API for Linux
Group: System/Libraries
%description -n vaapi-tools
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
This is a set of tools around vaapi livrary.
%package -n libva1
Summary: Video Acceleration (VA) API for Linux
Group: System/Libraries
%description -n libva1
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
%package devel
Summary: Video Acceleration (VA) API for Linux -- development files
Group: Development/Languages/C and C++
Requires: libva1 = %{version}
%description devel
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
This package provides the development environment for libva.
%prep
%setup -q
%patch1 -p1
%build
autoreconf -v --install
%configure --enable-dummy-driver \
--enable-dummy-backend \
--enable-i965-driver \
--enable-glx \
--with-drivers-path=%{_libdir}/dri
make
%install
%makeinstall
find %{buildroot} -name '*.la' -delete -print
rm %{buildroot}%{_bindir}/test*
%clean
rm -rf %{buildroot}
%post -n libva1 -p /sbin/ldconfig
%postun -n libva1 -p /sbin/ldconfig
%files -n vaapi-tools
%defattr(-,root,root,-)
%{_bindir}/vainfo
%dir %{_libdir}/dri
%{_libdir}/dri/dummy_drv_video.so
%{_libdir}/dri/i965_drv_video.so
%{_bindir}/h264encode
%{_bindir}/mpeg2vldemo
%{_bindir}/putsurface
%files -n libva1
%defattr(-, root, root)
%{_libdir}/libva.so.1
%{_libdir}/libva.so.%{version}
%{_libdir}/libva-tpi.so.1
%{_libdir}/libva-tpi.so.%{version}
%{_libdir}/libva-x11.so.1
%{_libdir}/libva-x11.so.%{version}
%{_libdir}/libva-glx.so.1
%{_libdir}/libva-glx.so.%{version}
%{_libdir}/libva-egl.so.1
%{_libdir}/libva-egl.so.%{version}
%{_libdir}/libva-dummy.so.1
%{_libdir}/libva-dummy.so.%{version}
%files devel
%defattr(-,root,root,-)
%{_libdir}/libva.so
%{_libdir}/libva-tpi.so
%{_libdir}/libva-x11.so
%{_libdir}/libva-glx.so
%{_libdir}/libva-egl.so
%{_libdir}/libva-dummy.so
%{_includedir}/va
%{_libdir}/pkgconfig/libva.pc
%{_libdir}/pkgconfig/libva-x11.pc
%{_libdir}/pkgconfig/libva-glx.pc
%{_libdir}/pkgconfig/libva-tpi.pc
%{_libdir}/pkgconfig/libva-egl.pc
%changelog