commit 036114e2078108a92a1f165c39568b3e017574f06e3144a4bcba2855011d2637 Author: Stefan Dirsch Date: Thu Feb 17 16:14:30 2011 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch b/0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch new file mode 100644 index 0000000..7d6b8d3 --- /dev/null +++ b/0001-i965_drv_video-make-VADriverContext.vtable-a-pointer.patch @@ -0,0 +1,115 @@ +From 2b7850b35a51c59a6692781d5e40e4bb608b6344 Mon Sep 17 00:00:00 2001 +From: Gwenole Beauchesne +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 + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..3f63e79 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,5 @@ +libva1 +libva-devel + requires -libva- + requires "libva1- = " +vaapi-tools diff --git a/libva-1.0.10.tar.bz2 b/libva-1.0.10.tar.bz2 new file mode 100644 index 0000000..df1a617 --- /dev/null +++ b/libva-1.0.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71c77a3a2f4f6cd65974932d4acb9b4f9749ed0103fa2495720d48ffdeb50798 +size 459100 diff --git a/libva.changes b/libva.changes new file mode 100644 index 0000000..96aee8f --- /dev/null +++ b/libva.changes @@ -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 + diff --git a/libva.spec b/libva.spec new file mode 100644 index 0000000..7711e00 --- /dev/null +++ b/libva.spec @@ -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