dslinux/user/pixil/packages/dvdview/dvdview/oldlibgfx/libvideogfx .cvsignore Makefile.am init.cc init.hh types.hh

amadeus dslinux_amadeus at user.in-berlin.de
Tue Oct 3 13:25:47 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/pixil/packages/dvdview/dvdview/oldlibgfx/libvideogfx
In directory antilope:/tmp/cvs-serv11916/packages/dvdview/dvdview/oldlibgfx/libvideogfx

Added Files:
	.cvsignore Makefile.am init.cc init.hh types.hh 
Log Message:
adding pristine copy of pixil to HEAD so I can branch from it

--- NEW FILE: .cvsignore ---
Makefile
Makefile.in
*.lo
_libs
.libs
.deps
libvideogfx.la

--- NEW FILE: init.cc ---
/*
 *  init.cc
 */

#include "init.hh"


char** glob_argv;
int    glob_argc;

void InitULib(int argc,char** argv)
{
  glob_argc = argc;
  glob_argv = argv;
}

--- NEW FILE: init.hh ---

#ifndef LIBVIDEOGFX_INIT_HH
#define LIBVIDEOGFX_INIT_HH

extern char** glob_argv;
extern int    glob_argc;

extern void InitULib(int argc,char** argv);

#endif

--- NEW FILE: Makefile.am ---
## Makefile.am for libvideogfx/libvideogfx

SUBDIRS = arch containers graphics utility x11

INCLUDES = \
	-DDATADIR=\"$(datadir)\"	\
	-DLIBDIR=\"$(libdir)\"		\
	-DSYSCONFDIR=\"$(sysconfdir)\"	\
	-I$(top_srcdir)

#
# libraries to compile and install
#
lib_LTLIBRARIES = libvideogfx.la

# libtool stuff: set version and export symbols for resolving
libvideogfx_includedir = $(includedir)/libvideogfx
libvideogfx_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
	-release $(LT_RELEASE)					\
	-export-dynamic

#
# setup sub-libraries variables
#
libvideogfx_common_ldadd = \
	containers/libvideogfx-containers.la			\
	graphics/basic/libvideogfx-graphics-basic.la		\
	graphics/color/libvideogfx-graphics-color.la		\
	graphics/datatypes/libvideogfx-graphics-datatypes.la	\
	graphics/draw/libvideogfx-graphics-draw.la		\
	graphics/fileio/libvideogfx-graphics-fileio.la		\
	graphics/filters/libvideogfx-graphics-filters.la	\
	graphics/lowlevel/libvideogfx-graphics-lowlevel.la	\
	graphics/motvec/libvideogfx-graphics-motvec.la		\
	graphics/visualize/libvideogfx-graphics-visualize.la	\
	utility/bitstream/libvideogfx-utility-bitstream.la

if LINUX
libvideogfx_linux_ldadd = \
	graphics/fileio/libvideogfx-graphics-fileio-linux.la
else
libvideogfx_linux_ldadd =
endif

if ENABLE_MMX
libvideogfx_mmx_ldadd = \
	arch/linux/x86/libvideogfx-arch-linux-x86.la		\
	graphics/lowlevel/libvideogfx-graphics-lowlevel-mmx.la
else
libvideogfx_mmx_ldadd =
endif

libvideogfx_qt_ldadd = \
	qt/libvideogfx-qt.la

libvideogfx_x11_ldadd = \
	x11/libvideogfx-x11.la

libvideogfx_la_LIBADD = \
	$(libvideogfx_common_ldadd)	\
	$(libvideogfx_linux_ldadd)	\
	$(libvideogfx_mmx_ldadd)	\
	$(libvideogfx_x11_ldadd)

#
# setup source file variables
#
# Header files for public installation (non-generated)
libvideogfx_public_h_sources = \
	init.hh		\
	types.hh

# Header files that don't get installed
libvideogfx_private_h_sources =

# C sources to build the library from
libvideogfx_c_sources = \
	init.cc

#
# setup sources and their dependancies
#
libvideogfx_include_HEADERS = $(libvideogfx_public_h_sources)
libvideogfx_la_SOURCES = $(libvideogfx_c_sources)
EXTRA_HEADERS +=
EXTRA_DIST += $(libvideogfx_private_h_sources)

.PHONY: files

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

--- NEW FILE: types.hh ---
/********************************************************************************
  types.hh

  purpose:
    Very basic type declarations.

  notes:

  to do:

  author(s):
   - Dirk Farin, farin at ti.uni-mannheim.de

  modifications:
    1999/Nov/03 - Dirk Farin - New constants: BoolPixel_*
 ********************************************************************************
    Copyright (C) 1999  Dirk Farin

    This program is distributed under GNU Public License (GPL) as
    outlined in the COPYING file that comes with the source distribution.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ********************************************************************************/

#ifndef LIBVIDEOGFX_TYPES_HH
#define LIBVIDEOGFX_TYPES_HH

#include "config.h"
#include <assert.h>

typedef unsigned long long uint64;
typedef   signed long long  int64;
typedef unsigned long      uint32;
typedef   signed long       int32;
typedef unsigned short     uint16;
typedef   signed short      int16;
typedef unsigned char      uint8;
typedef   signed char       int8;

typedef uint32 uint31;
typedef uint32 uint30;
typedef uint32 uint29;
typedef uint32 uint28;
typedef uint32 uint27;
typedef uint32 uint26;
typedef uint32 uint25;
typedef uint32 uint24;
typedef uint32 uint23;
typedef uint32 uint22;
typedef uint32 uint21;
typedef uint32 uint20;
typedef uint32 uint19;
typedef uint32 uint18;
typedef uint32 uint17;

typedef uint16 uint15;
typedef uint16 uint14;
typedef uint16 uint13;
typedef uint16 uint12;
typedef uint16 uint11;
typedef uint16 uint10;
typedef uint16 uint9;
typedef int16 int15;
typedef int16 int14;
typedef int16 int13;
typedef int16 int12;
typedef int16 int11;
typedef int16 int10;
typedef int16 int9;

typedef uint8 uint1;
typedef uint8 uint2;
typedef uint8 uint3;
typedef uint8 uint4;
typedef uint8 uint5;
typedef uint8 uint6;
typedef uint8 uint7;
typedef  int8  int1;
typedef  int8  int2;
typedef  int8  int3;
typedef  int8  int4;

typedef uint8 Pixel;
const Pixel BoolPixel_Set   = 0;
const Pixel BoolPixel_Clear = 255;

#ifndef NULL
#define NULL 0
#endif

template <class T> inline T max(T a,T b) { if (a>b) return a; else return b; }
template <class T> inline T min(T a,T b) { if (a<b) return a; else return b; }
template <class T> inline T abs(T a) { if (a<0) return -a; else return a; }
template <class T> inline void swap(T& a,T& b) { T c=a; a=b; b=c; }
template <class T> inline int  sign(T x) { if (x<0) return -1; if (x>0) return 1; return 0; }

inline uint32 RightBits(int n)  { return (((uint32)1)<<n)-1; }
inline uint32 LeftBits32(int n) { return 0xFFFFFFFF - RightBits(32-n); }

inline uint16 ChangeEndian(uint16 v) { return (v>>8) | (v<<8); }
inline uint32 ChangeEndian(uint32 v) { return (v>>24) | ((v>>8)&0xFF00) | ((v&0xFF00)<<8) | (v<<24); }

#ifdef WORDS_BIGENDIAN
inline uint16 ToLittleEndian(uint16 v) { return ChangeEndian(v); }
inline uint32 ToLittleEndian(uint32 v) { return ChangeEndian(v); }
inline uint16 ToBigEndian(uint16 v)    { return v; }
inline uint32 ToBigEndian(uint32 v)    { return v; }
#else
inline uint16 ToLittleEndian(uint16 v) { return v; }
inline uint32 ToLittleEndian(uint32 v) { return v; }
inline uint16 ToBigEndian(uint16 v)    { return ChangeEndian(v); }
inline uint32 ToBigEndian(uint32 v)    { return ChangeEndian(v); }
#endif

#endif




More information about the dslinux-commit mailing list