Open CASCADE Technology 7.9.0
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.
 
static Handle< Image_CompressedPixMapLoad (const Handle< Image_SupportedFormats > &theSupported, const Handle< NCollection_Buffer > &theBuffer, const Standard_Integer theFaceIndex)
 Load the face from DDS file.
 

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 Handle< NCollection_Buffer > & theBuffer,
const Standard_Integer theFaceIndex )
static

Load the face from DDS file.

Parameters
[in]theSupportedlist of supported image formats
[in]theBufferpre-loaded file data, should be at least of 128 bytes long defining DDS header.
[in]theFaceIndexface 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

◆ Load() [2/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
[in]theSupportedlist of supported image formats
[in]theFilefile path
[in]theFaceIndexface index, within [0, Image_CompressedPixMap::NbFaces()) range; use -1 to skip reading the face data
[in]theFileOffsetoffset to the DDS 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: