Documentation
¶
Overview ¶
Package pgs reads Blu-ray subtitles (Presentation Graphic Streams): their display sets made into the pictures they show, and when.
Index ¶
Constants ¶
const ( SegPDS = 0x14 // palette definition SegODS = 0x15 // object definition SegPCS = 0x16 // presentation composition SegWDS = 0x17 // window definition SegEND = 0x80 )
Segment types.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Composition ¶
type Composition struct {
PTS int64 // 90 kHz
W, H int // the plane's size
Objects []Placed
Palette *Palette
}
Composition is what a display set shows from its time on: nothing (it clears the screen) or objects in a palette.
func (*Composition) Draw ¶
func (c *Composition) Draw() *Picture
Draw draws a composition's objects into the smallest picture holding them.
func (*Composition) Empty ¶
func (c *Composition) Empty() bool
Empty reports whether the composition shows nothing.
func (*Composition) Forced ¶
func (c *Composition) Forced() bool
Forced reports whether everything it shows is forced (shown with the subtitles off: foreign dialogue, signs).
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder follows a stream's display sets.