Documentation
¶
Overview ¶
Package vc1 decodes SMPTE 421M (VC-1) Advanced Profile video in Go: progressive, interlaced frame and interlaced field pictures, 4:2:0 8-bit, as Blu-ray and HD DVD carry it. It is a fallback where no GPU decodes a disc's VC-1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes a VC-1 Advanced Profile elementary stream, access unit by access unit (each a frame: its start codes and their units).
func (*Decoder) Decode ¶
Decode decodes an access unit given at pts, giving out the pictures that are complete, in display order.
type Picture ¶
type Picture struct {
Width, Height int
Y, Cb, Cr []byte
StrideY, StrideC int
PTS int64
// Interlaced frames' fields are of two moments, TopFieldFirst says
// which comes first.
Interlaced, TopFieldFirst bool
// FrameRateNum and FrameRateDen are the sequence's frame rate (0 when
// it does not say).
FrameRateNum, FrameRateDen int
// Primaries, Transfer and Matrix are the sequence's colour description
// (H.273 code points; 2, unspecified, when there is none).
Primaries, Transfer, Matrix int
}
Picture is a decoded frame, in display order: 8-bit 4:2:0 planes, the coded size of a larger buffer.