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
Показать файл Открыть проект Примеры использования класса

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

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