Involved Source Files Package riff implements the Resource Interchange File Format, used by media
formats such as AVI, WAVE and WEBP.
A RIFF stream contains a sequence of chunks. Each chunk consists of an 8-byte
header (containing a 4-byte chunk type and a 4-byte chunk length), the chunk
data (presented as an io.Reader), and some padding bytes.
A detailed description of the format is at
http://www.tactilemedia.com/info/MCI_Control_Info.html
Reader reads chunks from an underlying io.Reader. Next returns the next chunk's ID, length and data. It returns io.EOF if there
are no more chunks. The io.Reader returned becomes stale after the next Next
call, and should no longer be used.
It is valid to call Next even if all of the previous chunk's data has not
been read.
func NewListReader(chunkLen uint32, chunkData io.Reader) (listType FourCC, data *Reader, err error)
func NewReader(r io.Reader) (formType FourCC, data *Reader, err error)
Package-Level Functions (total 2)
NewListReader returns a LIST chunk's list type, such as "movi" or "wavl",
and its chunks as a *Reader.
NewReader returns the RIFF stream's form type, such as "AVI " or "WAVE", and
its chunks as a *Reader.
Package-Level Variables (only one)
LIST is the "LIST" FourCC.
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.