DXApplyColorChannelLookupArray function

Applies a color channel lookup table to an array of DXBASESAMPLE structures.

Syntax

DXBASESAMPLE* DXApplyColorChannelLookupArray(
  _In_       DXBASESAMPLE  *pBuffer,
  _In_       unsigned long cSamples,
  _In_ const BYTE          *pAlphaTable,
  _In_ const BYTE          *pRedTable,
  _In_ const BYTE          *pGreenTable,
  _In_ const BYTE          *pBlueTable
);

Parameters

  • pBuffer [in]
    A pointer to a source array of DXBASESAMPLE structures.

  • cSamples [in]
    A value of type unsigned long that specifies the number of samples to convert.

  • pAlphaTable [in]
    A pointer to a value of type BYTE that specifies the alpha channel lookup table.

  • pRedTable [in]
    A pointer to a value of type BYTE that specifies the red lookup table.

  • pGreenTable [in]
    A pointer to a value of type BYTE that specifies the green lookup table.

  • pBlueTable [in]
    A pointer to a value of type BYTE that specifies the blue lookup table.

Return value

Returns a pointer to the converted array of DXBASESAMPLE structures.

Remarks

You can use this function to apply a separate lookup table to each color channel. Usually, you use the IDXLUTBuilder interface to create a lookup table, and the IDXLookupTable::GetTables method to fill the arrays. You can also create your own lookup table arrays.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxhelper.h