summaryrefslogtreecommitdiffstats
path: root/mpeglib/example/yaf
diff options
context:
space:
mode:
Diffstat (limited to 'mpeglib/example/yaf')
-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
10 files changed, 327 insertions, 0 deletions
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}
+)