diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e76378b..d97c2480 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,6 @@ if(DEV_MODE) endif() set(libmatroska_SOURCES - src/FileKax.cpp src/KaxAttached.cpp src/KaxAttachments.cpp src/KaxBlock.cpp @@ -57,7 +56,6 @@ set(libmatroska_SOURCES src/KaxVersion.cpp) set(libmatroska_PUBLIC_HEADERS - matroska/FileKax.h matroska/KaxBlockData.h matroska/KaxBlock.h matroska/KaxCluster.h diff --git a/matroska/FileKax.h b/matroska/FileKax.h deleted file mode 100644 index aad76299..00000000 --- a/matroska/FileKax.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright © 2002-2010 Steve Lhomme. -// SPDX-License-Identifier: LGPL-2.1-or-later - -/*! - \file - \author Steve Lhomme -*/ -#ifndef LIBMATROSKA_FILE_H -#define LIBMATROSKA_FILE_H - -//#include - -#include "matroska/KaxTypes.h" -#include -//#include "MainHeader.h" -//#include "TrackType.h" -//#include "StreamInfo.h" -//#include "Cluster.h" -//#include "CodecHeader.h" - -namespace libmatroska { - -//class Track; -//class Frame; - -/*! - \class MATROSKA_DLL_API FileMatroska - \brief General container of all the parameters and data of an Matroska file - \todo Handle the filename and next filename - \todo Handle the IOCallback selection/type -*/ -class MATROSKA_DLL_API FileMatroska { - public: - FileMatroska(libebml::IOCallback & output); - ~FileMatroska() = default; - libebml::IOCallback & myFile; - -}; - -} // namespace libmatroska - -#endif // FILE_KAX_HPP diff --git a/matroska/KaxTypes.h b/matroska/KaxTypes.h index bc27398e..bbd941a8 100644 --- a/matroska/KaxTypes.h +++ b/matroska/KaxTypes.h @@ -8,7 +8,6 @@ #define LIBMATROSKA_TYPES_H #include "matroska/KaxConfig.h" -#include /*! \enum track_type @@ -25,43 +24,6 @@ typedef enum track_type { track_control = 0x20 ///< Control-codes for menus and other stuff } track_type; -/*! - \enum matroska_error_t - \brief a callback that the library use to inform of errors happening - \note this should be used by the libmatroska internals -*/ -typedef enum { - error_null_pointer ///< NULL pointer where something else is expected -} matroska_error_t; - -typedef void *matroska_stream; - -/*! - \var void* matroska_id - \brief UID used to access an Matroska file instance -*/ -typedef void* matroska_id; -/*! - \var void* matroska_track - \brief UID used to access a track -*/ -typedef void* matroska_track; -/*! - \var char* c_string - \brief C-String, ie a buffer with characters terminated by \0 -*/ -typedef char* c_string; -/*! - \var unsigned int matroska_file_mode - \brief A bit buffer, each bit representing a value for the file opening - \todo replace the unsigned int by a sized type (8 or 16 bits) -*/ -typedef char * matroska_file_mode; -/*! - \var void (*matroska_error_callback)(matroska_error_t error_code, char* error_message) - \brief a callback that the library use to inform of errors happening -*/ -typedef void (*matroska_error_callback)(matroska_error_t error_code, char* error_message); namespace libmatroska { diff --git a/matroska/KaxVersion.h b/matroska/KaxVersion.h index f66573b7..2bd11181 100644 --- a/matroska/KaxVersion.h +++ b/matroska/KaxVersion.h @@ -18,7 +18,6 @@ namespace libmatroska { #define LIBMATROSKA_VERSION 0x020000 extern const MATROSKA_DLL_API std::string KaxCodeVersion; -extern const MATROSKA_DLL_API std::string KaxCodeDate; /*! \todo Improve the CRC/ECC system (backward and forward possible ?) to fit streaming/live writing/simple reading diff --git a/src/FileKax.cpp b/src/FileKax.cpp deleted file mode 100644 index ab22726b..00000000 --- a/src/FileKax.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright © 2002-2003 Steve Lhomme. -// SPDX-License-Identifier: LGPL-2.1-or-later - -/*! - \file - \author Steve Lhomme -*/ -//#include "StdInclude.h" -#include "matroska/FileKax.h" -#include -#include -//#include "Cluster.h" -//#include "Track.h" -//#include "Block.h" -//#include "Frame.h" -//#include "Version.h" - -using namespace libebml; - -namespace libmatroska { - -//typedef Track *TrackID; - -FileMatroska::FileMatroska(IOCallback & output) - :myFile(output) -{ -} - -/* FileMatroska::~FileMatroska() -{ - // if (myCurrCluster != NULL) - // throw 0; // there are some data left to write - // if (myCurrReadCluster != NULL || myCurrReadBlock != NULL) - // throw 0; // there are some data left to write -} */ - -} // namespace libmatroska diff --git a/src/KaxVersion.cpp b/src/KaxVersion.cpp index d450d530..34655b31 100644 --- a/src/KaxVersion.cpp +++ b/src/KaxVersion.cpp @@ -12,9 +12,4 @@ namespace libmatroska { const std::string KaxCodeVersion = "2.0.0"; -// Up to version 1.4.4 this library exported a build date string. As -// this made the build non-reproducible, replace it by a placeholder to -// remain binary compatible. -const std::string KaxCodeDate = "Unknown"; - } // namespace libmatroska diff --git a/test/ebml/test00.cpp b/test/ebml/test00.cpp index 09cd46e4..04ba7a45 100644 --- a/test/ebml/test00.cpp +++ b/test/ebml/test00.cpp @@ -37,7 +37,7 @@ const char RW_FILENAME[] = "test.kax"; */ int main(void) { - printf("Test00 :\nEBML %s %s / Matroska %s %s\n", EbmlCodeVersion.c_str(), EbmlCodeDate.c_str(), KaxCodeVersion.c_str(), KaxCodeDate.c_str()); + printf("Test00 :\nEBML %s / Matroska %s\n", EbmlCodeVersion.c_str(), KaxCodeVersion.c_str()); StdIOCallback Ebml_file(RW_FILENAME, ::MODE_CREATE); ///// Writing test diff --git a/test/mux/test6.cpp b/test/mux/test6.cpp index 3c32f92c..c571ae9a 100644 --- a/test/mux/test6.cpp +++ b/test/mux/test6.cpp @@ -7,7 +7,6 @@ \author Steve Lhomme */ -#include "matroska/FileKax.h" #include "matroska/KaxSegment.h" #include "matroska/KaxTracks.h" #include "matroska/KaxCluster.h" diff --git a/test/mux/test8.cpp b/test/mux/test8.cpp index c75fc210..436d00ae 100644 --- a/test/mux/test8.cpp +++ b/test/mux/test8.cpp @@ -8,7 +8,6 @@ */ #include "matroska/KaxSegment.h" -#include "matroska/FileKax.h" #include "matroska/KaxContexts.h" #include "matroska/KaxTracks.h" #include "matroska/KaxCluster.h" @@ -43,8 +42,6 @@ int main(int argc, char **argv) try { StdIOCallback Cluster_file((argc>=2 ? argv[1] : "muxed.mkv"), MODE_READ); - // create the Matroska file -/// FileKax MuxedFile(Cluster_file); // bool bAllowDummy = false; // don't read elements we don't know bool bAllowDummy = true; // even read elements we don't know (needed for CRC checking) @@ -56,7 +53,6 @@ int main(int argc, char **argv) EbmlElement * ElementLevel3 = nullptr; EbmlElement * ElementLevel4 = nullptr; -/// MuxedFile.ReadHead(); // find the EBML head in the file ElementLevel0 = aStream.FindNextID(EBML_INFO(EbmlHead), 0xFFFFFFFFL); if (ElementLevel0 != NULL) @@ -91,8 +87,6 @@ int main(int argc, char **argv) { if (EbmlId(*ElementLevel0) == EBML_ID(KaxSegment)) { Segment = static_cast(ElementLevel0); -// MuxedFile.ReadTracks(); -// MuxedFile.ReadCodec(); // scan the file for a Tracks element (all previous Level1 elements are discarded) ElementLevel1 = aStream.FindNextElement(EBML_CONTEXT(ElementLevel0), UpperElementLevel, 0, bAllowDummy); diff --git a/test/tags/test9.cpp b/test/tags/test9.cpp index 16d6ebbd..14e7016f 100644 --- a/test/tags/test9.cpp +++ b/test/tags/test9.cpp @@ -7,7 +7,6 @@ \author Moritz Bunkus */ -#include #include #include #include