org.ogre4j
Interface IDDSCodec

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, ICodec, IGeneralAllocatedObject, IImageCodec, INativeObject
All Known Implementing Classes:
DDSCodec

public interface IDDSCodec
extends INativeObject, IImageCodec


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ogre4j.IImageCodec
IImageCodec.IImageData
 
Nested classes/interfaces inherited from interface org.ogre4j.ICodec
ICodec.ICodecData, ICodec.ICodecDataPtr, ICodec.ICodecIterator, ICodec.ICodecList, ICodec.IDecodeResult
 
Method Summary
 void code(IDataStreamPtr returnValue, IMemoryDataStreamPtr input, ICodec.ICodecDataPtr pData)
          Codes the data in the input stream and saves the result in the output stream.
 void codeToFile(IMemoryDataStreamPtr input, java.lang.String outFileName, ICodec.ICodecDataPtr pData)
          Codes the data in the input chunk and saves the result in the output filename provided.
 void decode(ICodec.IDecodeResult returnValue, IDataStreamPtr input)
          Codes the data from the input chunk into the output chunk.
 java.lang.String getType()
          Returns the type of the codec as a String
 java.lang.String magicNumberToFileExt(java.lang.String magicNumberPtr, int maxbytes)
          Maps a magic number header to a file extension, if this codec recognises it.
 
Methods inherited from interface org.ogre4j.IImageCodec
getDataType
 
Methods inherited from interface org.ogre4j.ICodec
magicNumberMatch
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

code

void code(IDataStreamPtr returnValue,
          IMemoryDataStreamPtr input,
          ICodec.ICodecDataPtr pData)
Description copied from interface: ICodec
Codes the data in the input stream and saves the result in the output stream.

Specified by:
code in interface ICodec

codeToFile

void codeToFile(IMemoryDataStreamPtr input,
                java.lang.String outFileName,
                ICodec.ICodecDataPtr pData)
Description copied from interface: ICodec
Codes the data in the input chunk and saves the result in the output filename provided. Provided for efficiency since coding to memory is progressive therefore memory required is unknown leading to reallocations.

Specified by:
codeToFile in interface ICodec

decode

void decode(ICodec.IDecodeResult returnValue,
            IDataStreamPtr input)
Description copied from interface: ICodec
Codes the data from the input chunk into the output chunk.

Specified by:
decode in interface ICodec

magicNumberToFileExt

java.lang.String magicNumberToFileExt(java.lang.String magicNumberPtr,
                                      int maxbytes)
Description copied from interface: ICodec
Maps a magic number header to a file extension, if this codec recognises it.

Specified by:
magicNumberToFileExt in interface ICodec

getType

java.lang.String getType()
Description copied from interface: ICodec
Returns the type of the codec as a String

Specified by:
getType in interface ICodec


Copyright © 2007 netAllied GmbH. All Rights Reserved.