Pixel format decompression class. More...

#include "murl_util_pixel_decompressor.h"

Public Types

typedef void(* Method) (UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 dstSize, UInt32 srcSize, UInt32 pixelSizeX, UInt32 pixelSizeY, UInt32 dstPitch)
 Definition of the decoder function pointer. More...
 

Static Public Member Functions

static Method GetDecompressor (IEnums::PixelFormat &destFormat, IEnums::PixelFormat srcFormat)
 Get the decoder function pointer for specified pixel formats. More...
 
static Method GetFromBC6RGBSF (IEnums::PixelFormat &destFormat)
 Get the converter function pointer from BC6_RGB_SF_8BPP source format. More...
 
static void BC6RGBSFToRGBF48 (UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 dstSize, UInt32 srcSize, UInt32 pixelSizeX, UInt32 pixelSizeY, UInt32 dstPitch)
 The BC6_RGB_SF_8BPP to RF16_GF16_BF16 conversion function. More...
 
static Method GetFromBC6RGBUF (IEnums::PixelFormat &destFormat)
 Get the converter function pointer from BC6_RGB_UF_8BPP source format. More...
 
static void BC6RGBUFToRGBF48 (UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 dstSize, UInt32 srcSize, UInt32 pixelSizeX, UInt32 pixelSizeY, UInt32 dstPitch)
 The BC6_RGB_UF_8BPP to RF16_GF16_BF16 conversion function. More...
 
static Method GetFromBC7RGBA (IEnums::PixelFormat &destFormat, Bool srgb)
 Get the converter function pointer from BC7_RGBA_8BPP source format. More...
 
static void BC7RGBAToRGBA32 (UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 dstSize, UInt32 srcSize, UInt32 pixelSizeX, UInt32 pixelSizeY, UInt32 dstPitch)
 The L8 to RGBA32 conversion function. More...
 

Detailed Description

Pixel format decompression class.

Member Typedef Documentation

◆ Method

typedef void(* Murl::Util::PixelDecompressor::Method) (UInt8 *dstPtr, const UInt8 *srcPtr, UInt32 dstSize, UInt32 srcSize, UInt32 pixelSizeX, UInt32 pixelSizeY, UInt32 dstPitch)

Definition of the decoder function pointer.

Parameters
dstPtrPointer to the destination memory.
srcPtrPointer to the source memory.
pixelSizeXThe width of the compressed image data in pixels.
pixelSizeYThe height of the compressed image data in pixels.
dstPitchThe line pitch (i.e. bytes per line) of the uncompressed image data.

Member Function Documentation

◆ GetDecompressor()

static Method Murl::Util::PixelDecompressor::GetDecompressor ( IEnums::PixelFormat destFormat,
IEnums::PixelFormat  srcFormat 
)
static

Get the decoder function pointer for specified pixel formats.

Parameters
destFormatThe destination pixel format.
srcFormatThe source pixel format.
Returns
The converter function pointer or null if the conversion is not available.

◆ GetFromBC6RGBSF()

static Method Murl::Util::PixelDecompressor::GetFromBC6RGBSF ( IEnums::PixelFormat destFormat)
static

Get the converter function pointer from BC6_RGB_SF_8BPP source format.

Parameters
destFormatThe destination pixel format.
Returns
The converter function pointer or null if the conversion is not available.

◆ BC6RGBSFToRGBF48()

static void Murl::Util::PixelDecompressor::BC6RGBSFToRGBF48 ( UInt8 dstPtr,
const UInt8 srcPtr,
UInt32  dstSize,
UInt32  srcSize,
UInt32  pixelSizeX,
UInt32  pixelSizeY,
UInt32  dstPitch 
)
static

The BC6_RGB_SF_8BPP to RF16_GF16_BF16 conversion function.

Parameters
dstPtrPointer to the destination memory.
srcPtrPointer to the source memory.
numberOfPixelsThe number of pixels to convert.

◆ GetFromBC6RGBUF()

static Method Murl::Util::PixelDecompressor::GetFromBC6RGBUF ( IEnums::PixelFormat destFormat)
static

Get the converter function pointer from BC6_RGB_UF_8BPP source format.

Parameters
destFormatThe destination pixel format.
Returns
The converter function pointer or null if the conversion is not available.

◆ BC6RGBUFToRGBF48()

static void Murl::Util::PixelDecompressor::BC6RGBUFToRGBF48 ( UInt8 dstPtr,
const UInt8 srcPtr,
UInt32  dstSize,
UInt32  srcSize,
UInt32  pixelSizeX,
UInt32  pixelSizeY,
UInt32  dstPitch 
)
static

The BC6_RGB_UF_8BPP to RF16_GF16_BF16 conversion function.

Parameters
dstPtrPointer to the destination memory.
srcPtrPointer to the source memory.
numberOfPixelsThe number of pixels to convert.

◆ GetFromBC7RGBA()

static Method Murl::Util::PixelDecompressor::GetFromBC7RGBA ( IEnums::PixelFormat destFormat,
Bool  srgb 
)
static

Get the converter function pointer from BC7_RGBA_8BPP source format.

Parameters
destFormatThe destination pixel format.
Returns
The converter function pointer or null if the conversion is not available.

◆ BC7RGBAToRGBA32()

static void Murl::Util::PixelDecompressor::BC7RGBAToRGBA32 ( UInt8 dstPtr,
const UInt8 srcPtr,
UInt32  dstSize,
UInt32  srcSize,
UInt32  pixelSizeX,
UInt32  pixelSizeY,
UInt32  dstPitch 
)
static

The L8 to RGBA32 conversion function.

Parameters
dstPtrPointer to the destination memory.
srcPtrPointer to the source memory.
numberOfPixelsThe number of pixels to convert.

The documentation for this class was generated from the following file:
  • murl_util_pixel_decompressor.h


Copyright © 2011-2018 Spraylight GmbH.