C# 클래스 SCSharp.Smk.SmackerDecoder

파일 보기 프로젝트 열기: kangaroo/scsharp 1 사용 예제들

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