gst-libav-next in main for playing video thanks @groni

This commit is contained in:
Ertuğrul Erata
2015-08-18 09:23:14 +03:00
parent 213f9e5ce1
commit de97651afe
8 changed files with 344 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.export("CFLAGS", "%s -O2" % get.CFLAGS())
autotools.configure("--disable-static \
--disable-gtk-doc")
def build():
autotools.make("-j1")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "BUG-REPORTING", "HACKING", "NEWS", "README")
pisitools.removeDir("/usr/share/gtk-doc")
@@ -0,0 +1,38 @@
From 705916007fba0a845229a02dc6474cb523eff150 Mon Sep 17 00:00:00 2001
From: David Schleef <ds@schleef.org>
Date: Tue, 20 Jul 2010 21:05:26 +0000
Subject: x86: Fix cpuid function on x86-64
Fixes: #28956.
---
diff --git a/liboil/liboilcpu-x86.c b/liboil/liboilcpu-x86.c
index e7a1978..ef4d3f2 100644
--- a/liboil/liboilcpu-x86.c
+++ b/liboil/liboilcpu-x86.c
@@ -162,13 +162,10 @@ get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
static void
get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
{
+ *a = op;
__asm__ (
- " pushq %%rbx\n"
" cpuid\n"
- " mov %%ebx, %%esi\n"
- " popq %%rbx\n"
- : "=a" (*a), "=S" (*b), "=c" (*c), "=d" (*d)
- : "0" (op));
+ : "+a" (*a), "=b" (*b), "=c" (*c), "=d" (*d));
}
#endif
@@ -185,7 +182,7 @@ oil_cpu_detect_cpuid (void)
{
uint32_t eax, ebx, ecx, edx;
uint32_t level;
- char vendor[13] = { 0 };
+ char vendor[13+4] = { 0 };
int ret;
oil_fault_check_enable ();
--
cgit v0.8.3-6-g21f6
@@ -0,0 +1,75 @@
From 064d11051f477cd2c398e5d4e3cb1301daf683eb Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Tue, 17 Aug 2010 22:30:49 +0200
Subject: [PATCH] fix stride tc on amd64. i386 and powerpc
the stride tc segfauls with
|diff --git a/testsuite/stride.c b/testsuite/stride.c
|index abc521e..debc340 100644
|--- a/testsuite/stride.c
|+++ b/testsuite/stride.c
|@@ -74,8 +74,8 @@ int main (int argc, char *argv[])
| continue;
| }
| oil_test_set_iterations (test, 1);
|- test->n = 1 + oil_rand_u8();
|- test->m = 1 + oil_rand_u8();
|+ test->n = 1;
|+ test->m = 33;
|
| oil_test_check_impl (test, klass->reference_impl);
| for(j=0;j<OIL_ARG_LAST;j++){
as random numers. This was reported as Debian bug #483352.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
liboil/amd64/wavelet.c | 3 +++
liboil/i386/wavelet.c | 2 ++
liboil/powerpc/rgb2bgr.c | 2 ++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/liboil/amd64/wavelet.c b/liboil/amd64/wavelet.c
index 6b1946a..353471f 100644
--- a/liboil/amd64/wavelet.c
+++ b/liboil/amd64/wavelet.c
@@ -18,6 +18,9 @@ deinterleave2_asm (int16_t *d1, int16_t *d2, int16_t *s_2xn, int n)
n--;
}
+ if (!n)
+ return;
+
asm volatile ("\n"
" sub $2, %%rcx\n"
"1:\n"
diff --git a/liboil/i386/wavelet.c b/liboil/i386/wavelet.c
index a382a22..d8d61a6 100644
--- a/liboil/i386/wavelet.c
+++ b/liboil/i386/wavelet.c
@@ -117,6 +117,8 @@ deinterleave2_asm (int16_t *d1, int16_t *d2, int16_t *s_2xn, int n)
s_2xn+=2;
n--;
}
+ if (!n)
+ return;
asm volatile ("\n"
" mov %3, %%ecx\n"
diff --git a/liboil/powerpc/rgb2bgr.c b/liboil/powerpc/rgb2bgr.c
index 8787d66..419b8e1 100644
--- a/liboil/powerpc/rgb2bgr.c
+++ b/liboil/powerpc/rgb2bgr.c
@@ -50,6 +50,8 @@ rgb2bgr_ppc (uint8_t *dest, uint8_t* src, int n)
n /= 4;
dest -= 4;
src -= 4;
+ if (!n)
+ return ;
asm volatile (
" mtctr %2 \n"
"1: lwzu r10, 4(%1) \n" /* rgbr x */
--
1.5.6.5
+66
View File
@@ -0,0 +1,66 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>liboil</Name>
<Homepage>http://www.schleef.org/liboil/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<Summary>Liboil is a library of simple functions that are optimized for various CPUs</Summary>
<Description>Liboil is a library of simple functions that are optimized for various CPUs. These functions are generally loops implementing simple algorithms, such as converting an array of N integers to floating-point numbers or multiplying and summing an array of N numbers.</Description>
<Archive sha1sum="f9d7103a3a4a4089f56197f81871ae9129d229ed" type="targz">http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz</Archive>
<Patches>
<Patch level="1">02_amd64-cpuid.patch</Patch>
<Patch level="1">03_stride-segfaults.patch</Patch>
</Patches>
</Source>
<Package>
<Name>liboil</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>liboil-devel</Name>
<Summary>Development files for liboil</Summary>
<RuntimeDependencies>
<Dependency release="current">liboil</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-24</Date>
<Version>0.3.17</Version>
<Comment>Rebuild</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-02-01</Date>
<Version>0.3.17</Version>
<Comment>Rebuild</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-01-05</Date>
<Version>0.3.17</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>liboil</Name>
<Summary xml:lang="tr">Liboil, farklı işlemciler için optimize edilmiş temel fonksiyonlardan oluşan bir kütüphanedir</Summary>
<Description xml:lang="tr">liboil çeşitli CPU 'lar için en iyilenmiş basit fonksiyon kütüphanesidir. Bu fonksiyonlar genellikle döngüler için gerçekleştirilen yalın algoritmalardır, örneğin ; N integer elemanı olan bir diziyi float elemanlı diziye dönüştürmek yada N elemanlı bir dizi ile toplama yada çarpma yapmak gibi.</Description>
<Description xml:lang="fr">Liboil est une librairie de fonctions simples optimisées pour différents processeurs. Ces fonction sont en général des boucles implémentant des algorithmes simples, tel que convertir un tableau de N entiers en nombres à virgule flottante ou multiplier et additionner un tableau de N nombres.</Description>
<Description xml:lang="es">Liboil es una librería con funciones simples, optimizados para múltiples CPUs. Estas funciones son generalmente bucles realizando simples algoritmos, como conversión de arrays de N enteros a números de punto flotante o multiplicación y suma de un array de N números.</Description>
</Source>
<Package>
<Name>liboil-devel</Name>
<Summary xml:lang="tr">liboil için geliştirme dosyaları</Summary>
</Package>
</PISI>
@@ -0,0 +1,26 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.autoreconf("-vfi")
autotools.configure("--disable-static \
--with-libav-extra-configure='--enable-runtime-cpudetect' \
--with-package-name='PisiLinux gst-libav package' \
--with-package-origin='http://www.pisilinux.org'")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.install()
pisitools.dodoc("README","NEWS","ChangeLog")
+93
View File
@@ -0,0 +1,93 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gst-libav-next</Name>
<Homepage>http://gstreamer.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>Gstreamer plugin for the libav codec</Summary>
<Description>Gstreamer plugin for the libav codec.</Description>
<Archive sha1sum="546440eb7d661a063249d90a3f35cc449a27be2c" type="tarxz">http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.4.5.tar.xz</Archive>
<BuildDependencies>
<Dependency>gst-plugins-base-next-devel</Dependency>
<Dependency>gstreamer-next-devel</Dependency>
<Dependency>liboil-devel</Dependency>
<Dependency>orc-devel</Dependency>
<Dependency>ffmpeg-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gst-libav-next</Name>
<RuntimeDependencies>
<Dependency>gst-plugins-base-next</Dependency>
<Dependency>gstreamer-next</Dependency>
<Dependency>bzip2</Dependency>
<Dependency>glib2</Dependency>
<Dependency>ffmpeg</Dependency>
<Dependency>liboil</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="doc">/usr/share/gtk-doc</Path>
</Files>
</Package>
<History>
<Update release="7">
<Date>2015-04-18</Date>
<Version>1.4.5</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-08-23</Date>
<Version>1.4.0</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-05-26</Date>
<Version>1.2.4</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-02-14</Date>
<Version>1.2.3</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-11-29</Date>
<Version>1.2.1</Version>
<Comment>Version bump + rebuild for ffmpeg</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-10-14</Date>
<Version>1.2.0</Version>
<Comment>version bump</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2013-08-30</Date>
<Version>1.1.4</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gst-libav</Name>
<Summary xml:lang="tr">Gstreamer için FFmpeg desteği</Summary>
</Source>
</PISI>