mcpp index

compat.libwebm

libwebm 1.0.0.32 — the WebM (Matroska) container: muxer and parser, BSD-3-Clause

mcpp add compat.libwebm@1.0.0.32

Usage

From this repository's own test project — built and run by CI, not written for the website.

// compat.libwebm — a WebM file written and read back.
//
// WHAT THIS ASSERTS AND WHY
//
//   the muxer     mkvmuxer::Segment over a writer of our own (memory, seekable):
//                 a VP9 video track with its colour (BT.709, limited range), an
//                 Opus audio track with its codec private data and delay, frames
//                 at their nanosecond timestamps, key frames, cues, the duration
//                 written back at the end (mkvmuxer.cc, mkvmuxerutil.cc)
//   the writer    mkvmuxer::MkvWriter: the same file written to disk
//                 (mkvwriter.cc), byte for byte the memory one
//   the parser    mkvparser over a reader of our own (memory) and over
//                 MkvReader (the file; mkvreader.cc): the EBML header's doc
//                 type, the tracks, their codecs, colour and private data,
//                 every frame in order with its time, track and bytes, the
//                 cues, the duration (mkvparser.cc)
//   hdr_util      the colour read back into mkvmuxer's form (common/hdr_util.cc)
//   reproducible  the same frames and track UIDs twice: the same bytes
//
// A pass means the muxer and the parser agree with one another.

#include <common/hdr_util.h>
// …

tests/examples/libwebm/tests/libwebm.cpp · project tests/examples/libwebm

Build

targets
webm (lib)
language
c++23
import std
no
include dirs
*

Sources (7)

  • */common/file_util.cc
  • */common/hdr_util.cc
  • */mkvmuxer/mkvmuxer.cc
  • */mkvmuxer/mkvmuxerutil.cc
  • */mkvmuxer/mkvwriter.cc
  • */mkvparser/mkvparser.cc
  • */mkvparser/mkvreader.cc

Versions

VersionPlatforms Mirrorssha256
1.0.0.32 latest LinuxWindowsmacOS CN GLOBAL 7fd5e085bda9…