Open CASCADE Technology  7.5.0
Static Public Member Functions
Image_DDSParser Class Reference

Auxiliary tool for parsing DDS file structure (without decoding). More...

#include <Image_DDSParser.hxx>

Static Public Member Functions

static Handle< Image_CompressedPixMapLoad (const Handle< Image_SupportedFormats > &theSupported, const TCollection_AsciiString &theFile, const Standard_Integer theFaceIndex, const int64_t theFileOffset=0)
 Load the face from DDS file. More...
 
static Handle< Image_CompressedPixMapLoad (const Handle< Image_SupportedFormats > &theSupported, const Handle< NCollection_Buffer > &theBuffer, const Standard_Integer theFaceIndex)
 Load the face from DDS file. More...
 

Detailed Description

Auxiliary tool for parsing DDS file structure (without decoding).

Member Function Documentation

◆ Load() [1/2]

static Handle< Image_CompressedPixMap > Image_DDSParser::Load ( const Handle< Image_SupportedFormats > &  theSupported,
const TCollection_AsciiString theFile,
const Standard_Integer  theFaceIndex,
const int64_t  theFileOffset = 0 
)
static

Load the face from DDS file.

Parameters
theSupported[in] list of supported image formats
theFile[in] file path
theFaceIndex[in] face index, within [0, Image_CompressedPixMap::NbFaces()) range; use -1 to skip reading the face data
theFileOffset[in] offset to the DDS data
Returns
loaded face or NULL if file cannot be read or not valid DDS file

◆ Load() [2/2]

static Handle< Image_CompressedPixMap > Image_DDSParser::Load ( const Handle< Image_SupportedFormats > &  theSupported,
const Handle< NCollection_Buffer > &  theBuffer,
const Standard_Integer  theFaceIndex 
)
static

Load the face from DDS file.

Parameters
theSupported[in] list of supported image formats
theBuffer[in] pre-loaded file data, should be at least of 128 bytes long defining DDS header.
theFaceIndex[in] face index, within [0, Image_CompressedPixMap::NbFaces()) range; use -1 to skip reading the face data
Returns
loaded face or NULL if file cannot be read or not valid DDS file

The documentation for this class was generated from the following file: