NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.3.0.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
ColorLUTPalette

Perform image color processing using various types of bit range restricted palette color look up tables. More...

Functions

NppStatus nppiLUTPalette_8u_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 8-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_8u24u_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 8-bit unsigned bit range restricted 24-bit palette look-up-table color conversion with 24-bit destination output per pixel. More...
 
NppStatus nppiLUTPalette_8u24u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_8u32u_C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 8-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit destination output per pixel. More...
 
NppStatus nppiLUTPalette_8u32u_C1R (const Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_8u_C3R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Three channel 8-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize)
 
NppStatus nppiLUTPalette_8u_C4R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[4], int nBitSize, NppStreamContext nppStreamCtx)
 Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[4], int nBitSize)
 
NppStatus nppiLUTPalette_8u_AC4R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha. More...
 
NppStatus nppiLUTPalette_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize)
 
NppStatus nppiLUTPalette_16u_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 16-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_16u_C1R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_16u8u_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 16-bit unsigned bit range restricted 8-bit unsigned palette look-up-table color conversion with 8-bit unsigned destination output per pixel. More...
 
NppStatus nppiLUTPalette_16u8u_C1R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_16u24u_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 16-bit unsigned bit range restricted 24-bit unsigned palette look-up-table color conversion with 24-bit unsigned destination output per pixel. More...
 
NppStatus nppiLUTPalette_16u24u_C1R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_16u32u_C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
 One channel 16-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit unsigned destination output per pixel. More...
 
NppStatus nppiLUTPalette_16u32u_C1R (const Npp16u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize)
 
NppStatus nppiLUTPalette_16u_C3R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Three channel 16-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_16u_C3R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize)
 
NppStatus nppiLUTPalette_16u_C4R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[4], int nBitSize, NppStreamContext nppStreamCtx)
 Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion. More...
 
NppStatus nppiLUTPalette_16u_C4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[4], int nBitSize)
 
NppStatus nppiLUTPalette_16u_AC4R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha. More...
 
NppStatus nppiLUTPalette_16u_AC4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize)
 
NppStatus nppiLUTPaletteSwap_8u_C3A0C4R_Ctx (const Npp8u *pSrc, int nSrcStep, int nAlphaValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Three channel 8-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 8-bit unsigned destination output with alpha. More...
 
NppStatus nppiLUTPaletteSwap_8u_C3A0C4R (const Npp8u *pSrc, int nSrcStep, int nAlphaValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize)
 
NppStatus nppiLUTPaletteSwap_16u_C3A0C4R_Ctx (const Npp16u *pSrc, int nSrcStep, int nAlphaValue, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
 Three channel 16-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 16-bit unsigned destination output with alpha. More...
 
NppStatus nppiLUTPaletteSwap_16u_C3A0C4R (const Npp16u *pSrc, int nSrcStep, int nAlphaValue, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize)
 

Detailed Description

Perform image color processing using various types of bit range restricted palette color look up tables.

Function Documentation

NppStatus nppiLUTPalette_16u24u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_16u24u_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 16-bit unsigned bit range restricted 24-bit unsigned palette look-up-table color conversion with 24-bit unsigned destination output per pixel.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (3 unsigned bytes per pixel).
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u32u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_16u32u_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 16-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit unsigned destination output per pixel.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (4 bytes per pixel).
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u8u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_16u8u_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 16-bit unsigned bit range restricted 8-bit unsigned palette look-up-table color conversion with 8-bit unsigned destination output per pixel.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (1 unsigned byte per pixel).
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPalette_16u_AC4R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. Alpha channel is the last channel and is not processed.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_16u_C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 16-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u_C3R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPalette_16u_C3R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Three channel 16-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[4],
int  nBitSize 
)
NppStatus nppiLUTPalette_16u_C4R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[4],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u24u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_8u24u_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 8-bit unsigned bit range restricted 24-bit palette look-up-table color conversion with 24-bit destination output per pixel.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (3 bytes per pixel).
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u32u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_8u32u_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp32u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 8-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit destination output per pixel.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (4 bytes per pixel).
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPalette_8u_AC4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. Alpha channel is the last channel and is not processed.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize 
)
NppStatus nppiLUTPalette_8u_C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTable,
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

One channel 8-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablePointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPalette_8u_C3R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Three channel 8-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPalette_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[4],
int  nBitSize 
)
NppStatus nppiLUTPalette_8u_C4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[4],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPaletteSwap_16u_C3A0C4R ( const Npp16u pSrc,
int  nSrcStep,
int  nAlphaValue,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPaletteSwap_16u_C3A0C4R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
int  nAlphaValue,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp16u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Three channel 16-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 16-bit unsigned destination output with alpha.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. This function also reverses the source pixel channel order in the destination so the Alpha channel is the first channel.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step (3 unsigned short integers per pixel).
nAlphaValueSigned alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (4 unsigned short integers per pixel with alpha).
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 65535 will cause destination pixel alpha channel values to be unmodified.
nBitSizeNumber of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiLUTPaletteSwap_8u_C3A0C4R ( const Npp8u pSrc,
int  nSrcStep,
int  nAlphaValue,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize 
)
NppStatus nppiLUTPaletteSwap_8u_C3A0C4R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
int  nAlphaValue,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pTables[3],
int  nBitSize,
NppStreamContext  nppStreamCtx 
)

Three channel 8-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 8-bit unsigned destination output with alpha.

The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. This function also reverses the source pixel channel order in the destination so the Alpha channel is the first channel.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step (3 bytes per pixel).
nAlphaValueSigned alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step (4 bytes per pixel with alpha).
oSizeROIRegion-of-Interest (ROI).
pTablesHost pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 255 will cause destination pixel alpha channel values to be unmodified.
nBitSizeNumber of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Copyright © 2009-2020 NVIDIA Corporation