Skip to content

Commit 0ed18d4

Browse files
committed
initial commit: library build
veu_colorspace.[ch] from libshcodecs b44f2a52c655f909b5adbbf1bb5dff8d8b960a90
0 parents  commit 0ed18d4

22 files changed

+3525
-0
lines changed

AUTHORS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Phil Edgeworthy <[email protected]>
2+
Conrad Parker <[email protected]>
3+
4+
Based on code by:
5+
6+
Magnus Damm
7+
Takanari Hayama

COPYING

Lines changed: 481 additions & 0 deletions
Large diffs are not rendered by default.

ChangeLog

Whitespace-only changes.

INSTALL

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/share/automake-1.10/INSTALL

Makefile.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Process this file with automake to produce Makefile.in
2+
3+
DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror
4+
5+
SUBDIRS = doc include src
6+
7+
# pkg-config
8+
pkgconfigdir = $(libdir)/pkgconfig
9+
pkgconfig_DATA = shveu.pc
10+
11+
# Extra files to distribute in the source tarball.
12+
EXTRA_DIST = shveu.pc.in shveu-uninstalled.pc.in

NEWS

Whitespace-only changes.

README

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
libshveu
2+
===========
3+
4+
libshveu: A library for controlling SH-Mobile VEU
5+
6+
Copyright (C) 2009 Renesas Technology Corp.
7+
8+
The [SH-Mobile][0] processor series includes a hardware video engine
9+
unit that supports colorspace conversion, rotation and scaling.
10+
11+
This source archive contains:
12+
13+
* src/libshveu: the libshveu shared library
14+
* src/examples: various examples of simple uses of libshveu
15+
* src/tools: commandline tools
16+
17+
libshveu
18+
--------
19+
20+
SH-Mobile
21+
---------
22+
23+
The [SH-Mobile][0] processor series includes a hardware video engine
24+
unit that supports colorspace conversion, rotation and scaling. Some models
25+
also include support for camera capture, JPEG processing, and DSP
26+
instructions.
27+
28+
[0]: http://www.renesas.com/fmwk.jsp?cnt=sh_mobile_family_landing.jsp&fp=/products/mpumcu/sh_mobile/
29+
30+
Kernel configuration
31+
--------------------
32+
33+
libshveu uses the Linux kernel UIO support for the SH-Mobile VEU, which was
34+
added in 2.6.27.
35+
36+
The following kernel boot option reserves physically contiguous memory for VEU use:
37+
38+
memchunk.veu=4m
39+
40+
License
41+
-------
42+
43+
This library is free software; you can redistribute it and/or
44+
modify it under the terms of the GNU Library General Public
45+
License as published by the Free Software Foundation; either
46+
version 2 of the License, or (at your option) any later version.
47+
48+
This library is distributed in the hope that it will be useful,
49+
but WITHOUT ANY WARRANTY; without even the implied warranty of
50+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
51+
Library General Public License for more details.
52+
53+
You should have received a copy of the GNU Library General Public
54+
License along with this library; if not, write to the Free Software
55+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
56+
57+
See the file COPYING for details.

autogen.sh

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
#!/bin/sh
2+
# Run this to set up the build system: configure, makefiles, etc.
3+
# (based on the version in enlightenment's cvs)
4+
5+
package="libshveu"
6+
7+
olddir=`pwd`
8+
srcdir=`dirname $0`
9+
test -z "$srcdir" && srcdir=.
10+
11+
cd "$srcdir"
12+
DIE=0
13+
14+
ACLOCAL_FLAGS="-I $srcdir/m4"
15+
16+
echo "checking for autoconf... "
17+
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
18+
echo
19+
echo "You must have autoconf installed to compile $package."
20+
echo "Download the appropriate package for your distribution,"
21+
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
22+
DIE=1
23+
}
24+
25+
VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/"
26+
VERSIONMKMAJ="sed -e s/\([0-9][0-9]*\)[^0-9].*/\\1/"
27+
VERSIONMKMIN="sed -e s/.*[0-9][0-9]*\.//"
28+
29+
# do we need automake?
30+
if test -r Makefile.am; then
31+
AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am`
32+
AM_NEEDED=`echo $AM_OPTIONS | $VERSIONGREP`
33+
if test x"$AM_NEEDED" = "x$AM_OPTIONS"; then
34+
AM_NEEDED=""
35+
fi
36+
if test -z $AM_NEEDED; then
37+
echo -n "checking for automake... "
38+
AUTOMAKE=automake
39+
ACLOCAL=aclocal
40+
if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then
41+
echo "yes"
42+
else
43+
echo "no"
44+
AUTOMAKE=
45+
fi
46+
else
47+
echo -n "checking for automake $AM_NEEDED or later... "
48+
majneeded=`echo $AM_NEEDED | $VERSIONMKMAJ`
49+
minneeded=`echo $AM_NEEDED | $VERSIONMKMIN`
50+
for am in automake-$AM_NEEDED automake$AM_NEEDED \
51+
automake automake-1.7 automake-1.8 automake-1.9 automake-1.10; do
52+
($am --version < /dev/null > /dev/null 2>&1) || continue
53+
ver=`$am --version < /dev/null | head -n 1 | $VERSIONGREP`
54+
maj=`echo $ver | $VERSIONMKMAJ`
55+
min=`echo $ver | $VERSIONMKMIN`
56+
if test $maj -eq $majneeded -a $min -ge $minneeded; then
57+
AUTOMAKE=$am
58+
echo $AUTOMAKE
59+
break
60+
fi
61+
done
62+
test -z $AUTOMAKE && echo "no"
63+
echo -n "checking for aclocal $AM_NEEDED or later... "
64+
for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED \
65+
aclocal aclocal-1.7 aclocal-1.8 aclocal-1.9 aclocal-1.10; do
66+
($ac --version < /dev/null > /dev/null 2>&1) || continue
67+
ver=`$ac --version < /dev/null | head -n 1 | $VERSIONGREP`
68+
maj=`echo $ver | $VERSIONMKMAJ`
69+
min=`echo $ver | $VERSIONMKMIN`
70+
if test $maj -eq $majneeded -a $min -ge $minneeded; then
71+
ACLOCAL=$ac
72+
echo $ACLOCAL
73+
break
74+
fi
75+
done
76+
test -z $ACLOCAL && echo "no"
77+
fi
78+
test -z $AUTOMAKE || test -z $ACLOCAL && {
79+
echo
80+
echo "You must have automake installed to compile $package."
81+
echo "Download the appropriate package for your distribution,"
82+
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
83+
exit 1
84+
}
85+
fi
86+
87+
echo -n "checking for libtool... "
88+
for LIBTOOLIZE in libtoolize glibtoolize nope; do
89+
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 && break
90+
done
91+
if test x$LIBTOOLIZE = xnope; then
92+
echo "nope."
93+
LIBTOOLIZE=libtoolize
94+
else
95+
echo $LIBTOOLIZE
96+
fi
97+
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
98+
echo
99+
echo "You must have libtool installed to compile $package."
100+
echo "Download the appropriate package for your system,"
101+
echo "or get the source from one of the GNU ftp sites"
102+
echo "listed in http://www.gnu.org/order/ftp.html"
103+
DIE=1
104+
}
105+
106+
if test "$DIE" -eq 1; then
107+
exit 1
108+
fi
109+
110+
if test -z "$*"; then
111+
echo "I am going to run ./configure with no arguments - if you wish "
112+
echo "to pass any to it, please specify them on the $0 command line."
113+
fi
114+
115+
echo "Generating configuration files for $package, please wait...."
116+
117+
echo " $ACLOCAL $ACLOCAL_FLAGS"
118+
$ACLOCAL $ACLOCAL_FLAGS || exit 1
119+
echo " $LIBTOOLIZE --automake"
120+
$LIBTOOLIZE --automake || exit 1
121+
echo " autoheader"
122+
autoheader || exit 1
123+
echo " $AUTOMAKE --add-missing $AUTOMAKE_FLAGS"
124+
$AUTOMAKE --add-missing $AUTOMAKE_FLAGS || exit 1
125+
echo " autoconf"
126+
autoconf || exit 1
127+
128+
cd $olddir
129+
#$srcdir/configure --enable-maintainer-mode "$@" && echo

0 commit comments

Comments
 (0)