#include "mkvmuxer/mkvmuxerutil.h"
#ifdef __ANDROID__
#include <fcntl.h>
#include <unistd.h>
#endif
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <new>
#include "common/webmids.h"
#include "mkvmuxer/mkvmuxer.h"
#include "mkvmuxer/mkvwriter.h"
namespace mkvmuxer {
namespace {
const int kDateElementSize = …;
uint64 WriteBlock(IMkvWriter* writer, const Frame* const frame, int64 timecode,
uint64 timecode_scale) { … }
uint64 WriteSimpleBlock(IMkvWriter* writer, const Frame* const frame,
int64 timecode) { … }
}
int32 GetCodedUIntSize(uint64 value) { … }
int32 GetUIntSize(uint64 value) { … }
int32 GetIntSize(int64 value) { … }
uint64 EbmlMasterElementSize(uint64 type, uint64 value) { … }
uint64 EbmlElementSize(uint64 type, int64 value) { … }
uint64 EbmlElementSize(uint64 type, uint64 value) { … }
uint64 EbmlElementSize(uint64 type, uint64 value, uint64 fixed_size) { … }
uint64 EbmlElementSize(uint64 type, float ) { … }
uint64 EbmlElementSize(uint64 type, const char* value) { … }
uint64 EbmlElementSize(uint64 type, const uint8* value, uint64 size) { … }
uint64 EbmlDateElementSize(uint64 type) { … }
int32 SerializeInt(IMkvWriter* writer, int64 value, int32 size) { … }
int32 SerializeFloat(IMkvWriter* writer, float f) { … }
int32 WriteUInt(IMkvWriter* writer, uint64 value) { … }
int32 WriteUIntSize(IMkvWriter* writer, uint64 value, int32 size) { … }
int32 WriteID(IMkvWriter* writer, uint64 type) { … }
bool WriteEbmlMasterElement(IMkvWriter* writer, uint64 type, uint64 size) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, uint64 value) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, uint64 value,
uint64 fixed_size) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, int64 value) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, float value) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, const char* value) { … }
bool WriteEbmlElement(IMkvWriter* writer, uint64 type, const uint8* value,
uint64 size) { … }
bool WriteEbmlDateElement(IMkvWriter* writer, uint64 type, int64 value) { … }
uint64 WriteFrame(IMkvWriter* writer, const Frame* const frame,
Cluster* cluster) { … }
uint64 WriteVoidElement(IMkvWriter* writer, uint64 size) { … }
void GetVersion(int32* major, int32* minor, int32* build, int32* revision) { … }
uint64 MakeUID(unsigned int* seed) { … }
bool IsMatrixCoefficientsValueValid(uint64_t value) { … }
bool IsChromaSitingHorzValueValid(uint64_t value) { … }
bool IsChromaSitingVertValueValid(uint64_t value) { … }
bool IsColourRangeValueValid(uint64_t value) { … }
bool IsTransferCharacteristicsValueValid(uint64_t value) { … }
bool IsPrimariesValueValid(uint64_t value) { … }
}