d2video

package
v0.0.0-...-c8cfab0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinkAudioAlgorithm

type BinkAudioAlgorithm uint32
const (
	BinkAudioAlgorithmFFT BinkAudioAlgorithm = 0
	BinkAudioAlgorithmDCT BinkAudioAlgorithm = 1
)

type BinkAudioTrack

type BinkAudioTrack struct {
	AudioChannels     uint16
	AudioSampleRateHz uint16
	Stereo            bool
	Algorithm         BinkAudioAlgorithm
	AudioTrackId      uint32
}

type BinkDecoder

type BinkDecoder struct {
	VideoWidth  uint32
	VideoHeight uint32
	FPS         uint32
	FrameTimeMS uint32

	VideoMode       BinkVideoMode
	HasAlphaPlane   bool
	Grayscale       bool
	AudioTracks     []BinkAudioTrack
	FrameIndexTable []uint32 // Mask bit 0, as this is defined as a keyframe
	// contains filtered or unexported fields
}

func CreateBinkDecoder

func CreateBinkDecoder(source []byte) *BinkDecoder

func (*BinkDecoder) GetNextFrame

func (v *BinkDecoder) GetNextFrame()

type BinkVideoMode

type BinkVideoMode uint32
const (
	BinkVideoModeNormal                   BinkVideoMode = 0
	BinkVideoModeHeightDoubled            BinkVideoMode = 1
	BinkVideoModeHeightInterlaced         BinkVideoMode = 2
	BinkVideoModeWidthDoubled             BinkVideoMode = 3
	BinkVideoModeWidthAndHeightDoubled    BinkVideoMode = 4
	BinkVideoModeWidthAndHeightInterlaced BinkVideoMode = 5
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL