Skip to content

Commit

Permalink
Merge remote-tracking branch 'robux4/removals'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbunkus committed Mar 2, 2024
2 parents 42b44fa + 471da3a commit 9f27b2d
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 134 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ if(DEV_MODE)
endif()

set(libmatroska_SOURCES
src/FileKax.cpp
src/KaxAttached.cpp
src/KaxAttachments.cpp
src/KaxBlock.cpp
Expand All @@ -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
Expand Down
42 changes: 0 additions & 42 deletions matroska/FileKax.h

This file was deleted.

38 changes: 0 additions & 38 deletions matroska/KaxTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define LIBMATROSKA_TYPES_H

#include "matroska/KaxConfig.h"
#include <ebml/EbmlTypes.h>

/*!
\enum track_type
Expand All @@ -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 {

Expand Down
1 change: 0 additions & 1 deletion matroska/KaxVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
37 changes: 0 additions & 37 deletions src/FileKax.cpp

This file was deleted.

5 changes: 0 additions & 5 deletions src/KaxVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/ebml/test00.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/mux/test6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
\author Steve Lhomme <robux4 @ users.sf.net>
*/

#include "matroska/FileKax.h"
#include "matroska/KaxSegment.h"
#include "matroska/KaxTracks.h"
#include "matroska/KaxCluster.h"
Expand Down
6 changes: 0 additions & 6 deletions test/mux/test8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

#include "matroska/KaxSegment.h"
#include "matroska/FileKax.h"
#include "matroska/KaxContexts.h"
#include "matroska/KaxTracks.h"
#include "matroska/KaxCluster.h"
Expand Down Expand Up @@ -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)

Expand All @@ -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)
Expand Down Expand Up @@ -91,8 +87,6 @@ int main(int argc, char **argv)
{
if (EbmlId(*ElementLevel0) == EBML_ID(KaxSegment)) {
Segment = static_cast<KaxSegment*>(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);

Expand Down
1 change: 0 additions & 1 deletion test/tags/test9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
\author Moritz Bunkus <mosu @ users.sf.net>
*/

#include <matroska/FileKax.h>
#include <matroska/KaxBlock.h>
#include <matroska/KaxCluster.h>
#include <matroska/KaxCues.h>
Expand Down

0 comments on commit 9f27b2d

Please sign in to comment.