Documentation ¶
Overview ¶
Package d2video provides a bink video decoder
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinkAudioAlgorithm ¶
type BinkAudioAlgorithm uint32
BinkAudioAlgorithm represents the type of bink audio algorithm
const ( // BinkAudioAlgorithmFFT is the FTT audio algorithm BinkAudioAlgorithmFFT BinkAudioAlgorithm = iota // BinkAudioAlgorithmDCT is the DCT audio algorithm BinkAudioAlgorithmDCT )
type BinkAudioTrack ¶
type BinkAudioTrack struct { AudioChannels uint16 AudioSampleRateHz uint16 Stereo bool Algorithm BinkAudioAlgorithm AudioTrackID uint32 }
BinkAudioTrack represents an audio track
type BinkDecoder ¶
type BinkDecoder struct { AudioTracks []BinkAudioTrack FrameIndexTable []uint32 VideoWidth uint32 VideoHeight uint32 FPS uint32 FrameTimeMS uint32 VideoMode BinkVideoMode HasAlphaPlane bool Grayscale bool // contains filtered or unexported fields }
BinkDecoder represents the bink decoder
func CreateBinkDecoder ¶
func CreateBinkDecoder(source []byte) (*BinkDecoder, error)
CreateBinkDecoder returns a new instance of the bink decoder
func (*BinkDecoder) GetNextFrame ¶
func (v *BinkDecoder) GetNextFrame() error
GetNextFrame gets the next frame
type BinkVideoMode ¶
type BinkVideoMode uint32
BinkVideoMode is the video mode type
const ( // BinkVideoModeNormal is a normal video BinkVideoModeNormal BinkVideoMode = iota // BinkVideoModeHeightDoubled is a height-doubled video BinkVideoModeHeightDoubled // BinkVideoModeHeightInterlaced is a height-interlaced video BinkVideoModeHeightInterlaced // BinkVideoModeWidthDoubled is a width-doubled video BinkVideoModeWidthDoubled // BinkVideoModeWidthAndHeightDoubled is a width and height-doubled video BinkVideoModeWidthAndHeightDoubled // BinkVideoModeWidthAndHeightInterlaced is a width and height interlaced video BinkVideoModeWidthAndHeightInterlaced )
Click to show internal directories.
Click to hide internal directories.