chromium/third_party/libwebm/source/mkvmuxer/mkvmuxerutil.cc

// Copyright (c) 2012 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS.  All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.

#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 {

// Date elements are always 8 octets in size.
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) {}

}  // namespace

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 /* value */) {}

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) {}

}  // namespace mkvmuxer