Documentation
¶
Overview ¶
Package av1 reads the parts of an AV1 bitstream containers need: OBU framing, the sequence header, and the AV1CodecConfigurationRecord (av1C) that Matroska CodecPrivate and the ISO BMFF av1C box both carry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalid = errors.New("av1: invalid bitstream")
ErrInvalid reports a malformed OBU or sequence header.
Functions ¶
func AppendWithoutTemporalDelimiters ¶
AppendWithoutTemporalDelimiters appends the OBUs of data to dst, skipping temporal delimiter OBUs. It returns data itself without copying into dst when data contains no temporal delimiter OBUs.
func ConfigFromFrames ¶
func StripTemporalDelimiters ¶
StripTemporalDelimiters returns a temporal unit without its temporal delimiter OBUs, as ISO BMFF and Matroska samples store it. It returns data itself when there is none to strip.
Types ¶
type Config ¶
type Config struct {
SeqProfile int
SeqLevelIdx0 int
SeqTier0 bool
HighBitDepth bool
TwelveBit bool
Monochrome bool
ChromaSubsamplingX bool
ChromaSubsamplingY bool
ChromaSamplePosition int
InitialPresentationDelaySet bool
InitialPresentationDelayMinusOne int
ConfigOBUCount int
SequenceHeaderOBUPresent bool
}
Config is a parsed AV1CodecConfigurationRecord.
func ParseConfig ¶
ParseConfig reads an av1C record: its header fields and config OBUs.