import "golang.org/x/image/vp8"
Package vp8 implements a decoder for the VP8 lossy image format.
The VP8 specification is RFC 6386.
decode.go filter.go idct.go partition.go pred.go predfunc.go quant.go reconstruct.go token.go
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes VP8 bitstreams into frames. Decoding one frame consists of calling Init, DecodeFrameHeader and then DecodeFrame in that order. A Decoder can be re-used to decode multiple frames.
NewDecoder returns a new Decoder.
DecodeFrame decodes the frame and returns it as an YCbCr image. The image's contents are valid up until the next call to Decoder.Init.
func (d *Decoder) DecodeFrameHeader() (fh FrameHeader, err error)
DecodeFrameHeader decodes the frame header.
Init initializes the decoder to read at most n bytes from r.
type FrameHeader struct { KeyFrame bool VersionNumber uint8 ShowFrame bool FirstPartitionLen uint32 Width int Height int XScale uint8 YScale uint8 }
FrameHeader is a frame header, as specified in section 9.1.
Package vp8 imports 3 packages (graph) and is imported by 3 packages. Updated 6 days ago. Refresh now. Tools for package owners.