C# Class NScumm.Core.Video.PsxStreamDecoder.PsxVideoTrack

Inheritance: VideoTrack
Datei anzeigen Open project: scemino/nscumm

Public Methods

Method Description
DecodeFrame ( Stream frame, int sectorCount ) : void
DecodeNextFrame ( ) : Surface
GetNextFrameStartTime ( ) : uint
PsxVideoTrack ( Stream firstSector, CDSpeed speed, uint frameCount, PixelFormat screenFormat ) : NScumm.Core.Audio
SetEndOfTrack ( ) : void

Private Methods

Method Description
AC_HUFF_VAL ( int z, int a ) : uint
BLOCK_OVERFLOW_CHECK ( int count ) : void
DC_HUFF_VAL ( int b, int n, int p ) : uint
DecodeBlock ( BitStream bits, byte block, int offset, int pitch, ushort scale, ushort version, PlaneType plane ) : void
DecodeMacroBlock ( BitStream bits, int mbX, int mbY, ushort scale, ushort version ) : void
DequantizeBlock ( int coefficients, float block, ushort scale ) : void
GET_AC_COEFFICIENT ( uint code ) : int
GET_AC_ZERO_RUN ( uint code ) : int
GET_DC_BITS ( uint x ) : int
GET_DC_NEG ( uint x ) : int
GET_DC_POS ( uint x ) : int
Idct ( float dequantData, float result ) : void
ReadAC ( BitStream bits, int block, int offset ) : void
ReadDC ( BitStream bits, ushort version, PlaneType plane ) : int
ReadSignedCoefficient ( BitStream bits ) : int

Method Details

DecodeFrame() public method

public DecodeFrame ( Stream frame, int sectorCount ) : void
frame Stream
sectorCount int
return void

DecodeNextFrame() public method

public DecodeNextFrame ( ) : Surface
return NScumm.Core.Graphics.Surface

GetNextFrameStartTime() public method

public GetNextFrameStartTime ( ) : uint
return uint

PsxVideoTrack() public method

public PsxVideoTrack ( Stream firstSector, CDSpeed speed, uint frameCount, PixelFormat screenFormat ) : NScumm.Core.Audio
firstSector Stream
speed CDSpeed
frameCount uint
screenFormat PixelFormat
return NScumm.Core.Audio

SetEndOfTrack() public method

public SetEndOfTrack ( ) : void
return void