C# Класс SCSharp.Smk.SmackerDecoder

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
DecodeVideo void
SmackerDecoder System
UpdatePalette void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
GetColorPalette ( uint nColors ) : System.Drawing.Imaging.ColorPalette

Hack as described on MSDN to get a clean palette

Приватные методы

Метод Описание
DecodeVideo ( ) : void
SmackerDecoder ( SCSharp.Smk.SmackerFile file ) : System

Creates a new decoder for the specified file

UpdatePalette ( ) : void

Описание методов

GetAudioData() публичный Метод

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
Результат byte[]

GetColorPalette() защищенный Метод

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)
Результат System.Drawing.Imaging.ColorPalette

GetIndex() публичный Метод

public GetIndex ( uint x, uint y ) : uint
x uint
y uint
Результат uint

GetVideoDataBitmap() публичный Метод

Encapsulates the video data from the last decoded frame in a System.Drawing.Bitmap
public GetVideoDataBitmap ( ) : Bitmap
Результат System.Drawing.Bitmap

ReadNextFrame() публичный Метод

Reads the next frame.
public ReadNextFrame ( ) : void
Результат void

Reset() публичный Метод

Resets the decoder to the first frame, if there is a ring frame the first frame is skipped as it should.
public Reset ( ) : void
Результат void

SeekTo() публичный Метод

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
Результат void