Documentation ¶
Overview ¶
Package ivfreader implements IVF media container reader
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IVFFileHeader ¶
type IVFFileHeader struct { FourCC string // 8-11 Width uint16 // 12-13 Height uint16 // 14-15 TimebaseDenominator uint32 // 16-19 TimebaseNumerator uint32 // 20-23 NumFrames uint32 // 24-27 // contains filtered or unexported fields }
IVFFileHeader 32-byte header for IVF files https://wiki.multimedia.cx/index.php/IVF
type IVFFrameHeader ¶
IVFFrameHeader 12-byte header for IVF frames https://wiki.multimedia.cx/index.php/IVF
type IVFReader ¶
type IVFReader struct {
// contains filtered or unexported fields
}
IVFReader is used to read IVF files and return frame payloads
func (*IVFReader) ParseNextFrame ¶
func (i *IVFReader) ParseNextFrame() ([]byte, *IVFFrameHeader, error)
ParseNextFrame reads from stream and returns IVF frame payload, header, and an error if there is incomplete frame data. Returns all nil values when no more frames are available.
Click to show internal directories.
Click to hide internal directories.