mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
de0e63f0ea
This first of all does some refactoring of how metadata is encoded in MediaEncoder. This is now guided by the new Muxer class. If we're ready to pass data to the muxer and it does not have metadata yet, we provide metadata before giving it any media data. This metadata is passed to the muxer in a single call. The metadata provided in this call must stay valid for the entire recording. This removes MediaEncoder::GetEncodedMetadata(). This also removes the ctor argument from the WebMWriter since it can now rely on the single SetMetadata() instead. To comply with the ContainerWriter::SetMetadata() docs, WebMWriter::SetMetadata() will now also sanity check metadata. ContainerWriter instances are updated somewhat, to accommodate these changes. Lastly, and most important, the new Muxer class manages muxing of the (up to) two tracks into a single container, ensuring that timestamps increase monotonically throughout a recording. Differential Revision: https://phabricator.services.mozilla.com/D35306 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
moz.build | ||
OggCodecState.cpp | ||
OggCodecState.h | ||
OggCodecStore.cpp | ||
OggCodecStore.h | ||
OggDecoder.cpp | ||
OggDecoder.h | ||
OggDemuxer.cpp | ||
OggDemuxer.h | ||
OggWriter.cpp | ||
OggWriter.h | ||
OpusParser.cpp | ||
OpusParser.h |