C# Class SCSharp.Smk.SmackerDecoder

Afficher le fichier Open project: kangaroo/scsharp Class Usage Examples

Private Properties

Свойство Type Description
DecodeVideo void
SmackerDecoder System
UpdatePalette void

Méthodes publiques

Méthode Description
GetAudioData ( int streamIndex ) : byte[]

Returns the audiodata from the specified audiostream

GetIndex ( uint x, uint y ) : uint
GetVideoDataBitmap ( ) : Bitmap

Encapsulates the video data from the last decoded frame in a System.Drawing.Bitmap

ReadNextFrame ( ) : void

Reads the next frame.

Reset ( ) : void

Resets the decoder to the first frame, if there is a ring frame the first frame is skipped as it should.

SeekTo ( int i ) : void

Set the decoder to decode the specified frame next

Méthodes protégées

Méthode Description
GetColorPalette ( uint nColors ) : System.Drawing.Imaging.ColorPalette

Hack as described on MSDN to get a clean palette

Private Methods

Méthode Description
DecodeVideo ( ) : void
SmackerDecoder ( SCSharp.Smk.SmackerFile file ) : System

Creates a new decoder for the specified file

UpdatePalette ( ) : void

Method Details

GetAudioData() public méthode

Returns the audiodata from the specified audiostream
public GetAudioData ( int streamIndex ) : byte[]
streamIndex int The index of the stream to return audio data for, should be between 0 and 7
Résultat byte[]

GetColorPalette() protected méthode

Hack as described on MSDN to get a clean palette
protected GetColorPalette ( uint nColors ) : System.Drawing.Imaging.ColorPalette
nColors uint the number of colors the palette should contain (between 2-256)
Résultat System.Drawing.Imaging.ColorPalette

GetIndex() public méthode

public GetIndex ( uint x, uint y ) : uint
x uint
y uint
Résultat uint

GetVideoDataBitmap() public méthode

Encapsulates the video data from the last decoded frame in a System.Drawing.Bitmap
public GetVideoDataBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap

ReadNextFrame() public méthode

Reads the next frame.
public ReadNextFrame ( ) : void
Résultat void

Reset() public méthode

Resets the decoder to the first frame, if there is a ring frame the first frame is skipped as it should.
public Reset ( ) : void
Résultat void

SeekTo() public méthode

Set the decoder to decode the specified frame next
public SeekTo ( int i ) : void
i int the index of the next frame the decoder should decode
Résultat void