Documentation
¶
Overview ¶
Package videoalpha reads whether a video file declares an alpha channel, for the backends whose players do not say so before they draw: VP8 and VP9 in Matroska or WebM with the track's AlphaMode set, and HEVC whose decoder configuration carries the alpha channel information SEI, as Apple's HEVC with alpha has it. It reads a local file's container headers alone, never its frames, within a bound, and imports nothing of the module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Codec ¶
type Codec uint8
Codec is the codec of a video track that declares an alpha channel, or None.
const ( None Codec = iota // VP8 is VP8 with alpha in Matroska or WebM, its alpha coded as a second stream in each block's additions. VP8 // VP9 is VP9 with alpha in Matroska or WebM, as VP8's. VP9 // HEVC is HEVC with an alpha layer in a QuickTime or MPEG-4 file, as Apple's encoders write it. HEVC )
func File ¶
File returns the alpha codec of the video file at path, None when it declares none or cannot be read.