C# 클래스 Axiom.Media.DDSCodec

Codec specialized in loading DDS (Direct Draw Surface) images.
We implement our own codec here since we need to be able to keep DXT data compressed if the card supports it.
상속: ImageCodec
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 메소드들

메소드 설명
Decode ( Stream input, Stream output ) : object

Codes the data from the input chunk into the output chunk.

Encode ( Stream input, Stream output ) : void

Encodes the data in the input stream and saves the result in the output stream.

EncodeToFile ( Stream input, string filename, object codecData ) : void

Encodes data to a file.

MagicNumberToFileExt ( char magicNumber, UInt32 maxbytes ) : String
Shutdown ( ) : void
Startup ( ) : void

보호된 메소드들

메소드 설명
DDSCodec ( ) : System

Creates a new instance of DDSCodec

비공개 메소드들

메소드 설명
ConvertFourCCFormat ( UInt32 fourcc ) : PixelFormat
ConvertPixelFormat ( UInt32 rgbBits, UInt32 rMask, UInt32 gMask, UInt32 bMask, UInt32 aMask ) : PixelFormat
FlipEndian ( IntPtr pData, UInt32 size ) : void
FlipEndian ( IntPtr pData, UInt32 size, UInt32 count ) : void
UnpackDXTAlpha ( DXTExplicitAlphaBlock block, ColorEx pCol ) : void
UnpackDXTAlpha ( DXTInterpolatedAlphaBlock block, ColorEx pCol ) : void
UnpackDXTColour ( PixelFormat pf, DXTColorBlock block, ColorEx pCol ) : void

메소드 상세

DDSCodec() 보호된 메소드

Creates a new instance of DDSCodec
protected DDSCodec ( ) : System
리턴 System

Decode() 공개 메소드

Codes the data from the input chunk into the output chunk.
public Decode ( Stream input, Stream output ) : object
input Stream Input stream (encoded data).
output Stream Output stream (decoded data).
리턴 object

Encode() 공개 메소드

Encodes the data in the input stream and saves the result in the output stream.
public Encode ( Stream input, Stream output ) : void
input Stream Input stream (decoded data).
output Stream Output stream (encoded data).
리턴 void

EncodeToFile() 공개 메소드

Encodes data to a file.
public EncodeToFile ( Stream input, string filename, object codecData ) : void
input Stream Stream containing data to write.
filename string
codecData object Extra data to use in order to describe the codec data.
리턴 void

MagicNumberToFileExt() 공개 메소드

public MagicNumberToFileExt ( char magicNumber, UInt32 maxbytes ) : String
magicNumber char
maxbytes System.UInt32
리턴 String

Shutdown() 공개 정적인 메소드

public static Shutdown ( ) : void
리턴 void

Startup() 공개 정적인 메소드

public static Startup ( ) : void
리턴 void