summaryrefslogtreecommitdiffstats
path: root/mpeglib
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-03-26 15:58:46 +0200
commit8b12682035e2ae92a29a9ce12abc5fbcf38b1192 (patch)
tree1cc5c3fe9ef3b23557fc4e9e507fd0d23d007160 /mpeglib
parent250d713ff809fa943f614459009d1160e269dcef (diff)
downloadtdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.tar.gz
tdemultimedia-8b12682035e2ae92a29a9ce12abc5fbcf38b1192.zip
Initial cmake conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'mpeglib')
-rw-r--r--mpeglib/CMakeLists.txt18
-rw-r--r--mpeglib/ConfigureChecks.cmake52
-rw-r--r--mpeglib/example/CMakeLists.txt16
-rw-r--r--mpeglib/example/cddaplay/CMakeLists.txt31
-rw-r--r--mpeglib/example/mpgplay/CMakeLists.txt31
-rw-r--r--mpeglib/example/splay/CMakeLists.txt39
-rw-r--r--mpeglib/example/tplay/CMakeLists.txt31
-rw-r--r--mpeglib/example/yaf/CMakeLists.txt19
-rw-r--r--mpeglib/example/yaf/yafcdda/CMakeLists.txt32
-rw-r--r--mpeglib/example/yaf/yafcore/CMakeLists.txt55
-rw-r--r--mpeglib/example/yaf/yafcore/inputInterface.cpp8
-rw-r--r--mpeglib/example/yaf/yafmpgplay/CMakeLists.txt32
-rw-r--r--mpeglib/example/yaf/yafsplay/CMakeLists.txt32
-rw-r--r--mpeglib/example/yaf/yaftplay/CMakeLists.txt32
-rw-r--r--mpeglib/example/yaf/yafvorbis/CMakeLists.txt32
-rw-r--r--mpeglib/example/yaf/yafxplayer/CMakeLists.txt53
-rw-r--r--mpeglib/example/yaf/yafyuv/CMakeLists.txt32
-rw-r--r--mpeglib/lib/CMakeLists.txt67
-rw-r--r--mpeglib/lib/decoder/CMakeLists.txt45
-rw-r--r--mpeglib/lib/frame/CMakeLists.txt44
-rw-r--r--mpeglib/lib/input/CMakeLists.txt51
-rw-r--r--mpeglib/lib/input/cdromRawAccess.cpp2
-rw-r--r--mpeglib/lib/input/inputDetector.cpp4
-rw-r--r--mpeglib/lib/mpegplay/CMakeLists.txt53
-rw-r--r--mpeglib/lib/mpgplayer/CMakeLists.txt35
-rw-r--r--mpeglib/lib/oggvorbis/CMakeLists.txt38
-rw-r--r--mpeglib/lib/output/CMakeLists.txt48
-rw-r--r--mpeglib/lib/splay/CMakeLists.txt50
-rw-r--r--mpeglib/lib/tplay/CMakeLists.txt28
-rw-r--r--mpeglib/lib/util/CMakeLists.txt48
-rw-r--r--mpeglib/lib/util/abstract/CMakeLists.txt37
-rw-r--r--mpeglib/lib/util/audio/CMakeLists.txt28
-rw-r--r--mpeglib/lib/util/file/CMakeLists.txt35
-rw-r--r--mpeglib/lib/util/mmx/CMakeLists.txt40
-rw-r--r--mpeglib/lib/util/render/CMakeLists.txt45
-rw-r--r--mpeglib/lib/util/render/dither/CMakeLists.txt33
-rw-r--r--mpeglib/lib/util/render/dither2YUV/CMakeLists.txt29
-rw-r--r--mpeglib/lib/util/render/sdl/CMakeLists.txt28
-rw-r--r--mpeglib/lib/util/render/x11/CMakeLists.txt31
-rw-r--r--mpeglib/lib/yuv/CMakeLists.txt35
40 files changed, 1396 insertions, 3 deletions
diff --git a/mpeglib/CMakeLists.txt b/mpeglib/CMakeLists.txt
new file mode 100644
index 00000000..de137b3a
--- /dev/null
+++ b/mpeglib/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+set( MPEGLIB_VERSION "0.3.0" CACHE INTERNAL "" FORCE )
+set( MPEGLIB_SO_VERSION "0.0.3" CACHE INTERNAL "" FORCE )
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory( example )
+add_subdirectory( lib )
diff --git a/mpeglib/ConfigureChecks.cmake b/mpeglib/ConfigureChecks.cmake
new file mode 100644
index 00000000..254eb03d
--- /dev/null
+++ b/mpeglib/ConfigureChecks.cmake
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( NOT ATTRIBUTE_ALIGNED_MAX )
+ foreach( ATTRIBUTE_ALIGNED_TEST 2 4 8 16 32 64 )
+ check_c_source_compiles(
+ "int main() { static char c __attribute__ ((aligned(${ATTRIBUTE_ALIGNED_TEST}))) = 0; return c; }"
+ ATTRIBUTE_ALIGNED_MAX_${ATTRIBUTE_ALIGNED_TEST}
+ )
+ if( ATTRIBUTE_ALIGNED_MAX_${ATTRIBUTE_ALIGNED_TEST} )
+ set( ATTRIBUTE_ALIGNED_MAX ${ATTRIBUTE_ALIGNED_TEST} CACHE INTERNAL "" FORCE )
+ else( )
+ break( )
+ endif( )
+ endforeach( )
+endif( NOT ATTRIBUTE_ALIGNED_MAX )
+
+
+check_function_exists( strlcpy HAVE_STRLCPY )
+check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
+
+
+tde_save_and_set( CMAKE_REQUIRED_FLAGS "-include X11/Xlib.h" )
+
+pkg_search_module( XEXT xext )
+
+check_include_file( "X11/extensions/XShm.h" X11_SHARED_MEM )
+
+check_include_file( "X11/extensions/xf86dga1.h" X11_DGA2 )
+if( X11_DGA2 )
+ set( DGA_LIBRARIES Xxf86dga )
+endif( )
+
+check_include_file( "X11/extensions/Xvlib.h" X11_XV )
+if( X11_XV )
+ set( XV_LIBRARIES Xv )
+endif( )
+
+check_include_file( "X11/extensions/xf86vmode.h" X11_XVIDMODE )
+if( X11_XVIDMODE )
+ set( XVIDMODE_LIBRARIES Xxf86vm )
+endif( )
+
+tde_restore( CMAKE_REQUIRED_FLAGS )
diff --git a/mpeglib/example/CMakeLists.txt b/mpeglib/example/CMakeLists.txt
new file mode 100644
index 00000000..1c46cd94
--- /dev/null
+++ b/mpeglib/example/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( cddaplay )
+add_subdirectory( mpgplay )
+add_subdirectory( splay )
+add_subdirectory( tplay )
+add_subdirectory( yaf )
diff --git a/mpeglib/example/cddaplay/CMakeLists.txt b/mpeglib/example/cddaplay/CMakeLists.txt
new file mode 100644
index 00000000..1ffecb0e
--- /dev/null
+++ b/mpeglib/example/cddaplay/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### cddaplay (executable) #####################
+
+tde_add_executable( cddaplay
+ SOURCES cddaplay.cpp
+ LINK mpeg-shared
+)
diff --git a/mpeglib/example/mpgplay/CMakeLists.txt b/mpeglib/example/mpgplay/CMakeLists.txt
new file mode 100644
index 00000000..7ef2188c
--- /dev/null
+++ b/mpeglib/example/mpgplay/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### mpgplay (executable) ######################
+
+tde_add_executable( mpgplay
+ SOURCES mpgplay.cpp
+ LINK mpeg-shared
+)
diff --git a/mpeglib/example/splay/CMakeLists.txt b/mpeglib/example/splay/CMakeLists.txt
new file mode 100644
index 00000000..d7292f79
--- /dev/null
+++ b/mpeglib/example/splay/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### splay (executable) ########################
+
+tde_add_executable( splay
+ SOURCES splay.cpp
+ LINK mpeg-shared
+)
+
+
+##### mp3framing (executable) ###################
+
+tde_add_executable( mp3framing
+ SOURCES mp3framing.cpp
+ LINK mpeg-shared
+)
diff --git a/mpeglib/example/tplay/CMakeLists.txt b/mpeglib/example/tplay/CMakeLists.txt
new file mode 100644
index 00000000..06f25e99
--- /dev/null
+++ b/mpeglib/example/tplay/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### tplay (executable) ########################
+
+tde_add_executable( tplay
+ SOURCES tplay.cpp
+ LINK mpeg-shared
+)
diff --git a/mpeglib/example/yaf/CMakeLists.txt b/mpeglib/example/yaf/CMakeLists.txt
new file mode 100644
index 00000000..1991ff3e
--- /dev/null
+++ b/mpeglib/example/yaf/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( yafcdda )
+add_subdirectory( yafcore )
+add_subdirectory( yafmpgplay )
+add_subdirectory( yafsplay )
+add_subdirectory( yaftplay )
+add_subdirectory( yafvorbis )
+add_subdirectory( yafxplayer )
+add_subdirectory( yafyuv )
diff --git a/mpeglib/example/yaf/yafcdda/CMakeLists.txt b/mpeglib/example/yaf/yafcdda/CMakeLists.txt
new file mode 100644
index 00000000..5579f599
--- /dev/null
+++ b/mpeglib/example/yaf/yafcdda/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-cdda (executable) #####################
+
+tde_add_executable( yaf-cdda
+ SOURCES cdda_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/example/yaf/yafcore/CMakeLists.txt b/mpeglib/example/yaf/yafcore/CMakeLists.txt
new file mode 100644
index 00000000..1e0abe1b
--- /dev/null
+++ b/mpeglib/example/yaf/yafcore/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yafcore (library) #########################
+
+tde_add_library( yafcore SHARED
+ SOURCES
+ buffer.cpp
+ lineStack.cpp
+ commandLine.cpp
+ parser.cpp
+ outputInterface.cpp
+ inputInterface.cpp
+ commandTable.cpp
+ commandTableYAF.cpp
+ runtimeTableYAF.cpp
+ inputDecoder.cpp
+ outputDecoder.cpp
+ yaf_control.cpp
+ multiReader.cpp
+ LINK
+ tdefakes-shared
+ mpeg-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ inputInterface.h outputInterface.h
+ buffer.h inputDecoder.h yaf_control.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafcore
+)
diff --git a/mpeglib/example/yaf/yafcore/inputInterface.cpp b/mpeglib/example/yaf/yafcore/inputInterface.cpp
index 455ddd40..c5beaeda 100644
--- a/mpeglib/example/yaf/yafcore/inputInterface.cpp
+++ b/mpeglib/example/yaf/yafcore/inputInterface.cpp
@@ -75,7 +75,11 @@ int InputInterface::write(int fd,const char* txt) {
snprintf(loopback->getData(),300,
"Command:41 Msg:%s",txt);
} else {
+#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO)
strlcpy(loopback->getData(),txt, loopback->getSize());
+#else
+ strncpy(loopback->getData(),txt, loopback->getSize());
+#endif
}
len =loopback->len();
back=::write(fd,loopback->getData(),len);
@@ -136,7 +140,11 @@ void InputInterface::makeValidLine(char* line) {
"Command:%d Msg:%s",currentCommandNumber,line);
} else {
increaseCurrentCommandNumber();
+#if defined(HAVE_STRLCPY) || defined(HAVE_STRLCPY_PROTO)
strlcpy(currentLine->getData(),line, currentLine->getSize());
+#else
+ strncpy(currentLine->getData(),line, currentLine->getSize());
+#endif
}
return;
diff --git a/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt
new file mode 100644
index 00000000..5692823d
--- /dev/null
+++ b/mpeglib/example/yaf/yafmpgplay/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-mpgplay (executable) ##################
+
+tde_add_executable( yaf-mpgplay
+ SOURCES mpg_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/example/yaf/yafsplay/CMakeLists.txt b/mpeglib/example/yaf/yafsplay/CMakeLists.txt
new file mode 100644
index 00000000..78509009
--- /dev/null
+++ b/mpeglib/example/yaf/yafsplay/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-splay (executable) ####################
+
+tde_add_executable( yaf-splay
+ SOURCES splay_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/example/yaf/yaftplay/CMakeLists.txt b/mpeglib/example/yaf/yaftplay/CMakeLists.txt
new file mode 100644
index 00000000..eeb05ea8
--- /dev/null
+++ b/mpeglib/example/yaf/yaftplay/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-tplay (executable) ####################
+
+tde_add_executable( yaf-tplay
+ SOURCES tplay_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/example/yaf/yafvorbis/CMakeLists.txt b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt
new file mode 100644
index 00000000..bc223991
--- /dev/null
+++ b/mpeglib/example/yaf/yafvorbis/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-vorbis (executable) ###################
+
+tde_add_executable( yaf-vorbis
+ SOURCES vorbis_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/example/yaf/yafxplayer/CMakeLists.txt b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt
new file mode 100644
index 00000000..95f2c5b3
--- /dev/null
+++ b/mpeglib/example/yaf/yafxplayer/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DDIRECT_INCLUDE
+)
+
+
+##### yafplayer (library) #######################
+
+tde_add_library( yafxplayer SHARED
+ SOURCES
+ commandTableXPlayer.cpp
+ inputDecoderXPlayer.cpp
+ xplayer_control.cpp
+ runtimeTableXPlayer.cpp
+ inputDecoderYAF.cpp
+ yafOutputStream.cpp
+ LINK
+ yafcore-shared
+ mpeg-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ inputDecoderYAF.h
+ inputDecoderXPlayer.h
+ yafOutputStream.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/yaf/yafxplayer
+)
diff --git a/mpeglib/example/yaf/yafyuv/CMakeLists.txt b/mpeglib/example/yaf/yafyuv/CMakeLists.txt
new file mode 100644
index 00000000..37c6b622
--- /dev/null
+++ b/mpeglib/example/yaf/yafyuv/CMakeLists.txt
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### yaf-yuv (executable) ######################
+
+tde_add_executable( yaf-yuv
+ SOURCES yuv_control.cpp
+ LINK
+ yafcore-shared yafxplayer-shared
+ mpeg-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/mpeglib/lib/CMakeLists.txt b/mpeglib/lib/CMakeLists.txt
new file mode 100644
index 00000000..0cb4b49a
--- /dev/null
+++ b/mpeglib/lib/CMakeLists.txt
@@ -0,0 +1,67 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( decoder )
+add_subdirectory( frame )
+add_subdirectory( input )
+add_subdirectory( mpegplay )
+add_subdirectory( mpgplayer )
+add_subdirectory( oggvorbis )
+add_subdirectory( output )
+add_subdirectory( splay )
+add_subdirectory( tplay )
+add_subdirectory( util )
+add_subdirectory( yuv )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${ARTS_LIBRARY_DIRS}
+)
+
+
+##### mpeg-lib (library) ########################
+
+tde_add_library( mpeg SHARED
+ SOURCES dummy.cpp
+ RELEASE ${MPEGLIB_VERSION}
+ EMBED
+ mpeg_mpgplayer-static
+ mpeg_mpegplay-static
+ mpeg_splay-static
+ mpeg_oggvorbisbase-static
+ mpeg_tplay-static
+ mpeg_decoder-static
+ mpeg_output-static
+ mpeg_input-static
+ mpeg_util-static
+ mpeg_utilabstract-static
+ mpeg_utilaudio-static
+ mpeg_utilsimplefile-static
+ mpeg_utilrender-static
+ mpeg_utilrenderdither-static
+ mpeg_utilrenderdither2YUV-static
+ mpeg_utilrenderx11-static
+ mpeg_utilmmx-static
+ mpeg_frame-static
+ mpeg_yuvPlugin-static
+ LINK
+ mcop kmedia2_idl soundserver_idl artsflow_idl artsmodules-shared
+ X11 ${XEXT_LIBRARIES} m ${XV_LIBRARIES} ${DGA_LIBRARIES} ${XVIDMODE_LIBRARIES}
+ ${CDPARANOIA_LIBRARIES} ${VORBIS_LIBRARIES} ${VORBISFILE_LIBRARIES} pthread
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/mpeglib/lib/decoder/CMakeLists.txt b/mpeglib/lib/decoder/CMakeLists.txt
new file mode 100644
index 00000000..eb1371a9
--- /dev/null
+++ b/mpeglib/lib/decoder/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_decoder (library) ####################
+
+tde_add_library( mpeg_decoder STATIC_PIC
+ SOURCES
+ decoderPlugin.cpp command.cpp
+ commandPipe.cpp nukePlugin.cpp
+ vorbisPlugin.cpp cddaPlugin.cpp
+ splayPlugin.cpp mpegPlugin.cpp
+ mpgPlugin.cpp tplayPlugin.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ decoderPlugin.h command.h
+ commandPipe.h nukePlugin.h
+ vorbisPlugin.h cddaPlugin.h
+ splayPlugin.h mpegPlugin.h
+ mpgPlugin.h tplayPlugin.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/decoder
+)
diff --git a/mpeglib/lib/frame/CMakeLists.txt b/mpeglib/lib/frame/CMakeLists.txt
new file mode 100644
index 00000000..e8517950
--- /dev/null
+++ b/mpeglib/lib/frame/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_frame (library) ######################
+
+tde_add_library( mpeg_frame STATIC_PIC
+ SOURCES
+ pcmFrame.cpp
+ audioFrame.cpp floatFrame.cpp frame.cpp
+ frameQueue.cpp IOFrameQueue.cpp
+ audioFrameQueue.cpp framer.cpp
+ rawDataBuffer.cpp rawFrame.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ pcmFrame.h audioFrame.h
+ floatFrame.h frameQueue.h frame.h
+ IOFrameQueue.h audioFrameQueue.h
+ framer.h rawDataBuffer.h rawFrame.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/frame
+)
diff --git a/mpeglib/lib/input/CMakeLists.txt b/mpeglib/lib/input/CMakeLists.txt
new file mode 100644
index 00000000..37e1f539
--- /dev/null
+++ b/mpeglib/lib/input/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_input (library) ######################
+
+tde_add_library( mpeg_input STATIC_PIC
+ SOURCES
+ inputStream.cpp fileInputStream.cpp
+ inputPlugin.cpp
+ cdromToc.cpp cdromRawAccess.cpp
+ cdromInputStream.cpp
+ bufferInputStream.cpp
+ simpleRingBuffer.cpp
+ cdromAccess.cpp inputDetector.cpp
+ httpInputStream.cpp
+ threadSafeInputStream.cpp
+ cddaInputStream.cpp
+ fileAccessWrapper.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ inputStream.h fileInputStream.h
+ inputPlugin.h
+ cdromInputStream.h bufferInputStream.h
+ inputDetector.h httpInputStream.h
+ threadSafeInputStream.h cddaInputStream.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/input
+)
diff --git a/mpeglib/lib/input/cdromRawAccess.cpp b/mpeglib/lib/input/cdromRawAccess.cpp
index b0df4747..e23158f6 100644
--- a/mpeglib/lib/input/cdromRawAccess.cpp
+++ b/mpeglib/lib/input/cdromRawAccess.cpp
@@ -55,7 +55,7 @@ int CDRomRawAccess::open(const char* filename) {
if (strlen(filename) <= 1) {
filename="/dev/cdrom";
}
- char* openfile=strchr(filename,'/');
+ const char* openfile=strchr(filename,'/');
cout << "openfile:"<<openfile<<endl;
cdfile=fopen(openfile, "rb");
lOpen=false;
diff --git a/mpeglib/lib/input/inputDetector.cpp b/mpeglib/lib/input/inputDetector.cpp
index 28bcad5c..56fae0e2 100644
--- a/mpeglib/lib/input/inputDetector.cpp
+++ b/mpeglib/lib/input/inputDetector.cpp
@@ -119,7 +119,7 @@ char* InputDetector::getExtension(const char* url) {
return NULL;
}
char* back=NULL;
- char* extStart=strrchr(url,'.');
+ const char* extStart=strrchr(url,'.');
if (extStart != NULL) {
cout << "extStart:"<<extStart<<endl;
back=strdup(extStart);
@@ -172,7 +172,7 @@ char* InputDetector::getFilename(const char* url) {
if (url == NULL) {
return NULL;
}
- char* startSlash=strrchr(url,'/');
+ const char* startSlash=strrchr(url,'/');
if (startSlash == NULL) {
return NULL;
}
diff --git a/mpeglib/lib/mpegplay/CMakeLists.txt b/mpeglib/lib/mpegplay/CMakeLists.txt
new file mode 100644
index 00000000..2ae612bb
--- /dev/null
+++ b/mpeglib/lib/mpegplay/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_mpegplay (library) ###################
+
+tde_add_library( mpeg_mpegplay STATIC_PIC
+ SOURCES
+ mpegVideoHeader.cpp mpegVideoStream.cpp
+ globals.cpp jrevdct.cpp
+ recon.cpp decoderClass.cpp
+ decoderTables.cpp motionVector.cpp
+ slice.cpp gop.cpp
+ mmxidct.cpp
+ mpegSystemHeader.cpp mpegSystemStream.cpp
+ picture.cpp mpegExtension.cpp
+ macroBlock.cpp
+ mpegVideoLength.cpp
+ mpegVideoBitWindow.cpp videoDecoder.cpp
+ copyFunctions_asm.cpp copyFunctions_mmx.cpp
+ mmxidct_asm.S copyFunctions.cpp
+ tsSystemStream.cpp psSystemStream.cpp
+ pesSystemStream.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ mpegSystemStream.h mpegVideoLength.h
+ mpegSystemHeader.h tsSystemStream.h
+ psSystemStream.h pesSystemStream.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/mpegutil
+)
diff --git a/mpeglib/lib/mpgplayer/CMakeLists.txt b/mpeglib/lib/mpgplayer/CMakeLists.txt
new file mode 100644
index 00000000..4f5db11b
--- /dev/null
+++ b/mpeglib/lib/mpgplayer/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_mpgplayer (library) ##################
+
+tde_add_library( mpeg_mpgplayer STATIC_PIC
+ SOURCES mpegStreamPlayer.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES mpegStreamPlayer.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/mpegutil
+)
diff --git a/mpeglib/lib/oggvorbis/CMakeLists.txt b/mpeglib/lib/oggvorbis/CMakeLists.txt
new file mode 100644
index 00000000..2921e299
--- /dev/null
+++ b/mpeglib/lib/oggvorbis/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_oggvorbisbase (library) ##############
+
+tde_add_library( mpeg_oggvorbisbase STATIC_PIC
+ SOURCES
+ ovFramer.cpp vorbisDecoder.cpp
+ oggFrame.cpp vorbisInfo.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ ovFramer.h vorbisDecoder.h oggFrame.h vorbisInfo.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/oggvorbis
+)
diff --git a/mpeglib/lib/output/CMakeLists.txt b/mpeglib/lib/output/CMakeLists.txt
new file mode 100644
index 00000000..4b6fa20f
--- /dev/null
+++ b/mpeglib/lib/output/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_output (library) #####################
+
+tde_add_library( mpeg_output STATIC_PIC
+ SOURCES
+ outPlugin.cpp outputStream.cpp
+ dspX11OutputStream.cpp
+ windowOut.cpp
+ audioTime.cpp
+ audioData.cpp audioDataArray.cpp
+ avSyncer.cpp performance.cpp
+ artsOutputStream.cpp
+ pluginInfo.cpp yuvDumper.cpp
+ threadSafeOutputStream.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ outputStream.h pluginInfo.h
+ outPlugin.h dspX11OutputStream.h
+ artsOutputStream.h audioTime.h
+ avSyncer.h threadSafeOutputStream.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/output
+)
diff --git a/mpeglib/lib/splay/CMakeLists.txt b/mpeglib/lib/splay/CMakeLists.txt
new file mode 100644
index 00000000..d299cd78
--- /dev/null
+++ b/mpeglib/lib/splay/CMakeLists.txt
@@ -0,0 +1,50 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_splay (library) ######################
+
+tde_add_library( mpeg_splay STATIC_PIC
+ SOURCES
+ mpegAudioHeader.cpp mpegAudioStream.cpp
+ huffmantable.cpp
+ mpeglayer1.cpp
+ mpeglayer2.cpp
+ mpeglayer3.cpp
+ mpegtable.cpp
+ mpegtoraw.cpp
+ dxHead.cpp
+ mpegAudioBitWindow.cpp huffmanlookup.cpp
+ splayDecoder.cpp
+ dump.cpp synth_filter.cpp
+ synthesis.cpp synth_Std.cpp synth_Down.cpp
+ mpegAudioFrame.cpp
+ mpegAudioInfo.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ splayDecoder.h mpegAudioInfo.h mpegAudioFrame.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/splay
+)
diff --git a/mpeglib/lib/tplay/CMakeLists.txt b/mpeglib/lib/tplay/CMakeLists.txt
new file mode 100644
index 00000000..7a7cf2dd
--- /dev/null
+++ b/mpeglib/lib/tplay/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_tplay (library) ######################
+
+tde_add_library( mpeg_tplay STATIC_PIC
+ SOURCES
+ au.cpp tplayfunctions.cpp wav.cpp
+)
diff --git a/mpeglib/lib/util/CMakeLists.txt b/mpeglib/lib/util/CMakeLists.txt
new file mode 100644
index 00000000..877688c1
--- /dev/null
+++ b/mpeglib/lib/util/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( abstract )
+add_subdirectory( audio )
+add_subdirectory( file )
+add_subdirectory( mmx )
+add_subdirectory( render )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_util (library) #######################
+
+tde_add_library( mpeg_util STATIC_PIC
+ SOURCES
+ timeStamp.cpp
+ timeStampArray.cpp
+ dynBuffer.cpp syncClock.cpp
+ syncClockMPEG.cpp timeWrapper.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ timeStamp.h dynBuffer.h
+ timeStampArray.h syncClock.h timeWrapper.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util
+)
diff --git a/mpeglib/lib/util/abstract/CMakeLists.txt b/mpeglib/lib/util/abstract/CMakeLists.txt
new file mode 100644
index 00000000..38cdd152
--- /dev/null
+++ b/mpeglib/lib/util/abstract/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilabstract (library) ###############
+
+tde_add_library( mpeg_utilabstract STATIC_PIC
+ SOURCES
+ abs_thread_sdl.cpp threadQueue.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ abs_thread.h threadQueue.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/abstract
+)
diff --git a/mpeglib/lib/util/audio/CMakeLists.txt b/mpeglib/lib/util/audio/CMakeLists.txt
new file mode 100644
index 00000000..829e37f6
--- /dev/null
+++ b/mpeglib/lib/util/audio/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilaudio (library) ##################
+
+tde_add_library( mpeg_utilaudio STATIC_PIC
+ SOURCES
+ audioIO.cpp dspWrapper.cpp
+)
diff --git a/mpeglib/lib/util/file/CMakeLists.txt b/mpeglib/lib/util/file/CMakeLists.txt
new file mode 100644
index 00000000..3253cb9d
--- /dev/null
+++ b/mpeglib/lib/util/file/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilsimplefile (library) #############
+
+tde_add_library( mpeg_utilsimplefile STATIC_PIC
+ SOURCES fileAccess.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES fileAccess.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/file
+)
diff --git a/mpeglib/lib/util/mmx/CMakeLists.txt b/mpeglib/lib/util/mmx/CMakeLists.txt
new file mode 100644
index 00000000..1d3e5011
--- /dev/null
+++ b/mpeglib/lib/util/mmx/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilmmx (library) ####################
+
+tde_add_library( mpeg_utilmmx STATIC_PIC
+ SOURCES
+ cpu_accel.c mmx.c
+)
+
+set_property( TARGET mpeg_utilmmx-static
+ APPEND PROPERTY COMPILE_DEFINITIONS PIC )
+
+
+##### other data ################################
+
+install(
+ FILES
+ mmx.h mmx_asm.h mm_accel.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/mmx
+)
diff --git a/mpeglib/lib/util/render/CMakeLists.txt b/mpeglib/lib/util/render/CMakeLists.txt
new file mode 100644
index 00000000..2ed3b971
--- /dev/null
+++ b/mpeglib/lib/util/render/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( dither )
+add_subdirectory( dither2YUV )
+add_subdirectory( sdl )
+add_subdirectory( x11 )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilrender (library) #################
+
+tde_add_library( mpeg_utilrender STATIC_PIC
+ SOURCES
+ yuvPicture.cpp imageBase.cpp
+ renderMachine.cpp surface.cpp
+ pictureArray.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES
+ yuvPicture.h pictureArray.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/util/render
+)
diff --git a/mpeglib/lib/util/render/dither/CMakeLists.txt b/mpeglib/lib/util/render/dither/CMakeLists.txt
new file mode 100644
index 00000000..e2520de1
--- /dev/null
+++ b/mpeglib/lib/util/render/dither/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilrenderdither (library) ###########
+
+tde_add_library( mpeg_utilrenderdither STATIC_PIC
+ SOURCES
+ ditherWrapper.cpp
+ dither8Bit.cpp
+ colorTable8Bit.cpp colorTableHighBit.cpp
+ dither16Bit.cpp dither32Bit.cpp
+ ditherRGB_flipped.cpp ditherRGB.cpp
+ ditherer_mmx16.cpp dither32mmx.cpp
+)
diff --git a/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt b/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt
new file mode 100644
index 00000000..ea6ad820
--- /dev/null
+++ b/mpeglib/lib/util/render/dither2YUV/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilrenderdither2YUV (library) #######
+
+tde_add_library( mpeg_utilrenderdither2YUV STATIC_PIC
+ SOURCES
+ dither2YUV.cpp rgb2yuv16.cpp rgb2yuv32.cpp
+)
diff --git a/mpeglib/lib/util/render/sdl/CMakeLists.txt b/mpeglib/lib/util/render/sdl/CMakeLists.txt
new file mode 100644
index 00000000..a6bfc4d0
--- /dev/null
+++ b/mpeglib/lib/util/render/sdl/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilrendersdl (library) ##############
+
+tde_add_library( mpeg_utilrendersdl STATIC_PIC
+ SOURCES
+ imageDeskSDL.cpp sdlSurface.cpp
+)
diff --git a/mpeglib/lib/util/render/x11/CMakeLists.txt b/mpeglib/lib/util/render/x11/CMakeLists.txt
new file mode 100644
index 00000000..7c36e325
--- /dev/null
+++ b/mpeglib/lib/util/render/x11/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_utilrenderx11 (library) ##############
+
+tde_add_library( mpeg_utilrenderx11 STATIC_PIC
+ SOURCES
+ initDisplay.cpp
+ imageDeskX11.cpp
+ imageDGAFull.cpp imageXVDesk.cpp
+ x11Surface.cpp
+)
diff --git a/mpeglib/lib/yuv/CMakeLists.txt b/mpeglib/lib/yuv/CMakeLists.txt
new file mode 100644
index 00000000..ba551fc1
--- /dev/null
+++ b/mpeglib/lib/yuv/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### mpeg_yuvPlugin (library) ##################
+
+tde_add_library( mpeg_yuvPlugin STATIC_PIC
+ SOURCES yuvPlugin.cpp
+)
+
+
+##### other data ################################
+
+install(
+ FILES yuvPlugin.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/mpeglib/decoder
+)