public class nppicom extends nppicom
| Modifier and Type | Field and Description |
|---|---|
static int |
NPPI_JPEG_DECODE_CPU
enum NppiJpegDecodeJobKind
|
static int |
NPPI_JPEG_DECODE_FINALIZE
enum NppiJpegDecodeJobKind
|
static int |
NPPI_JPEG_DECODE_GPU
enum NppiJpegDecodeJobKind
|
static int |
NPPI_JPEG_DECODE_MEMZERO
enum NppiJpegDecodeJobKind
|
static int |
NPPI_JPEG_DECODE_N_BUFFERS
Number of additional buffers that may be used by JPEG decode jobs.
|
static int |
NPPI_JPEG_DECODE_PRE
enum NppiJpegDecodeJobKind
|
static int |
NPPI_JPEG_DECODE_SIMPLE
enum NppiJpegDecodeJobKind
|
| Constructor and Description |
|---|
nppicom() |
| Modifier and Type | Method and Description |
|---|---|
static int |
nppiDCTFree(NppiDCTState pState)
Frees the additional resources of the DCT state structure.
|
static int |
nppiDCTInitAlloc_Ctx(NppiDCTState ppState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTInitAlloc_Ctx(PointerPointer ppState,
NppStreamContext nppStreamCtx)
Initializes DCT state structure and allocates additional resources.
|
static int |
nppiDCTInitAlloc(NppiDCTState ppState) |
static int |
nppiDCTInitAlloc(PointerPointer ppState) |
static int |
nppiDCTInv4x4_WebP_16s_C1R_Ctx(short[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTInv4x4_WebP_16s_C1R_Ctx(ShortBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTInv4x4_WebP_16s_C1R_Ctx(ShortPointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx)
Inverse DCT in WebP decoding.
|
static int |
nppiDCTInv4x4_WebP_16s_C1R(short[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
NppiSize oSizeROI) |
static int |
nppiDCTInv4x4_WebP_16s_C1R(ShortBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
NppiSize oSizeROI) |
static int |
nppiDCTInv4x4_WebP_16s_C1R(ShortPointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
NppiSize oSizeROI) |
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
short[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ShortBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
ShortPointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding, 16-bit short integer.
|
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
short[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ShortBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
ShortPointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
short[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ShortBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
ShortPointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding, 16-bit short integer.
|
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
short[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ShortBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
ShortPointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
short[] pQuantFwdTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ShortBuffer pQuantFwdTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
ShortPointer pQuantFwdTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding.
|
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
byte[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ByteBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
BytePointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding.
|
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
byte[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ByteBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
BytePointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(byte[] pSrc,
int nSrcStep,
short[] pDst,
int nDstStep,
short[] pQuantFwdTable,
NppiSize oSizeROI) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(ByteBuffer pSrc,
int nSrcStep,
ShortBuffer pDst,
int nDstStep,
ShortBuffer pQuantFwdTable,
NppiSize oSizeROI) |
static int |
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(BytePointer pSrc,
int nSrcStep,
ShortPointer pDst,
int nDstStep,
ShortPointer pQuantFwdTable,
NppiSize oSizeROI) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
short[] pQuantInvTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ShortBuffer pQuantInvTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
ShortPointer pQuantInvTable,
NppiSize oSizeROI,
NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding.
|
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
byte[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ByteBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
BytePointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState,
NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding.
|
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
byte[] pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ByteBuffer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
BytePointer pQuantizationTable,
NppiSize oSizeROI,
NppiDCTState pState) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(short[] pSrc,
int nSrcStep,
byte[] pDst,
int nDstStep,
short[] pQuantInvTable,
NppiSize oSizeROI) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(ShortBuffer pSrc,
int nSrcStep,
ByteBuffer pDst,
int nDstStep,
ShortBuffer pQuantInvTable,
NppiSize oSizeROI) |
static int |
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(ShortPointer pSrc,
int nSrcStep,
BytePointer pDst,
int nDstStep,
ShortPointer pQuantInvTable,
NppiSize oSizeROI) |
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(byte[] pSrc,
int nLength,
int restartInterval,
int Ss,
int Se,
int Ah,
int Al,
short[] pDst,
int nDstStep,
NppiDecodeHuffmanSpec pHuffmanTableDC,
NppiDecodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI) |
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(ByteBuffer pSrc,
int nLength,
int restartInterval,
int Ss,
int Se,
int Ah,
int Al,
ShortBuffer pDst,
int nDstStep,
NppiDecodeHuffmanSpec pHuffmanTableDC,
NppiDecodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI) |
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(BytePointer pSrc,
int nLength,
int restartInterval,
int Ss,
int Se,
int Ah,
int Al,
ShortPointer pDst,
int nDstStep,
NppiDecodeHuffmanSpec pHuffmanTableDC,
NppiDecodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI)
Huffman Decoding of the JPEG decoding on the host.
|
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(byte[] pSrc,
int nLength,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
short[] apDst,
int[] aDstStep,
NppiDecodeHuffmanSpec apHuffmanDCTable,
NppiDecodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI) |
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(ByteBuffer pSrc,
int nLength,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ShortBuffer apDst,
IntBuffer aDstStep,
NppiDecodeHuffmanSpec apHuffmanDCTable,
NppiDecodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI) |
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(BytePointer pSrc,
int nLength,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
PointerPointer apDst,
IntPointer aDstStep,
PointerPointer apHuffmanDCTable,
PointerPointer apHuffmanACTable,
NppiSize aSizeROI)
Huffman Decoding of the JPEG decoding on the host.
|
static int |
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(BytePointer pSrc,
int nLength,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ShortPointer apDst,
IntPointer aDstStep,
NppiDecodeHuffmanSpec apHuffmanDCTable,
NppiDecodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI) |
static int |
nppiDecodeHuffmanSpecFreeHost_JPEG(NppiDecodeHuffmanSpec pHuffmanSpec)
Frees the host memory allocated by nppiDecodeHuffmanSpecInitAllocHost_JPEG.
|
static int |
nppiDecodeHuffmanSpecGetBufSize_JPEG(int[] pSize) |
static int |
nppiDecodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize) |
static int |
nppiDecodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
Returns the length of the NppiDecodeHuffmanSpec structure.
|
static int |
nppiDecodeHuffmanSpecInitAllocHost_JPEG(byte[] pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiDecodeHuffmanSpecInitAllocHost_JPEG(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiDecodeHuffmanSpecInitAllocHost_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiDecodeHuffmanSpecInitAllocHost_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
PointerPointer ppHuffmanSpec)
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host.
|
static int |
nppiDecodeHuffmanSpecInitHost_JPEG(byte[] pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec pHuffmanSpec) |
static int |
nppiDecodeHuffmanSpecInitHost_JPEG(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec pHuffmanSpec) |
static int |
nppiDecodeHuffmanSpecInitHost_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
NppiDecodeHuffmanSpec pHuffmanSpec)
Creates a Huffman table in a format that is suitable for the decoder on the host.
|
static int |
nppiEncodeHuffmanGetSize(NppiSize oSize,
int nChannels,
SizeTPointer pBufSize)
Calculates the size of the temporary buffer for baseline Huffman encoding.
|
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(short[] pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
byte[] pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(ShortBuffer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
ByteBuffer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(ShortPointer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx)
Huffman Encoding of the JPEG Encoding.
|
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R(short[] pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
byte[] pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R(ShortBuffer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
ByteBuffer pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P1R(ShortPointer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
NppiEncodeHuffmanSpec pHuffmanTableDC,
NppiEncodeHuffmanSpec pHuffmanTableAC,
NppiSize oSizeROI,
BytePointer pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(PointerPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
PointerPointer apHuffmanDCTable,
PointerPointer apHuffmanACTable,
NppiSize aSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx)
Huffman Encoding of the JPEG Encoding.
|
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(short[] apSrc,
int[] aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
byte[] pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(ShortBuffer apSrc,
IntBuffer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
ByteBuffer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(ShortPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R(PointerPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
PointerPointer apHuffmanDCTable,
PointerPointer apHuffmanACTable,
NppiSize aSizeROI,
BytePointer pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R(short[] apSrc,
int[] aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
byte[] pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R(ShortBuffer apSrc,
IntBuffer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
ByteBuffer pTempStorage) |
static int |
nppiEncodeHuffmanScan_JPEG_8u16s_P3R(ShortPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer nLength,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize aSizeROI,
BytePointer pTempStorage) |
static int |
nppiEncodeHuffmanSpecFree_JPEG(NppiEncodeHuffmanSpec pHuffmanSpec)
Frees the memory allocated by nppiEncodeHuffmanSpecInitAlloc_JPEG.
|
static int |
nppiEncodeHuffmanSpecGetBufSize_JPEG(int[] pSize) |
static int |
nppiEncodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize) |
static int |
nppiEncodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
Returns the length of the NppiEncodeHuffmanSpec structure.
|
static int |
nppiEncodeHuffmanSpecInit_JPEG_Ctx(byte[] pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanSpecInit_JPEG_Ctx(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanSpecInit_JPEG_Ctx(BytePointer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec,
NppStreamContext nppStreamCtx)
Creates a Huffman table in a format that is suitable for the encoder.
|
static int |
nppiEncodeHuffmanSpecInit_JPEG(byte[] pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInit_JPEG(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInit_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec pHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(byte[] pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(BytePointer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(BytePointer pRawHuffmanTable,
int eTableType,
PointerPointer ppHuffmanSpec,
NppStreamContext nppStreamCtx)
Allocates memory and creates a Huffman table in a format that is suitable for the encoder.
|
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG(byte[] pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG(ByteBuffer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
NppiEncodeHuffmanSpec ppHuffmanSpec) |
static int |
nppiEncodeHuffmanSpecInitAlloc_JPEG(BytePointer pRawHuffmanTable,
int eTableType,
PointerPointer ppHuffmanSpec) |
static int |
nppiEncodeOptimizeHuffmanGetSize(NppiSize oSize,
int nChannels,
int[] pBufSize) |
static int |
nppiEncodeOptimizeHuffmanGetSize(NppiSize oSize,
int nChannels,
IntBuffer pBufSize) |
static int |
nppiEncodeOptimizeHuffmanGetSize(NppiSize oSize,
int nChannels,
IntPointer pBufSize)
Calculates the size of the temporary buffer for optimize Huffman coding.
|
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(short[] pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] pLength,
byte[] hpCodesDC,
byte[] hpTableDC,
byte[] hpCodesAC,
byte[] hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
byte[] pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(ShortBuffer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer pLength,
ByteBuffer hpCodesDC,
ByteBuffer hpTableDC,
ByteBuffer hpCodesAC,
ByteBuffer hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
ByteBuffer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(ShortPointer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
BytePointer hpCodesDC,
BytePointer hpTableDC,
BytePointer hpCodesAC,
BytePointer hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx)
Optimize Huffman Encoding of the JPEG Encoding.
|
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(short[] pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] pLength,
byte[] hpCodesDC,
byte[] hpTableDC,
byte[] hpCodesAC,
byte[] hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
byte[] pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(ShortBuffer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer pLength,
ByteBuffer hpCodesDC,
ByteBuffer hpTableDC,
ByteBuffer hpCodesAC,
ByteBuffer hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
ByteBuffer pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(ShortPointer pSrc,
int nSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
BytePointer hpCodesDC,
BytePointer hpTableDC,
BytePointer hpCodesAC,
BytePointer hpTableAC,
NppiEncodeHuffmanSpec pHuffmanDCTable,
NppiEncodeHuffmanSpec pHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(PointerPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
PointerPointer hpCodesDC,
PointerPointer hpTableDC,
PointerPointer hpCodesAC,
PointerPointer hpTableAC,
PointerPointer apHuffmanDCTable,
PointerPointer apHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx)
Optimize Huffman Encoding of the JPEG Encoding.
|
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(short[] apSrc,
int[] aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] pLength,
byte[] hpCodesDC,
byte[] hpTableDC,
byte[] hpCodesAC,
byte[] hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
byte[] pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(ShortBuffer apSrc,
IntBuffer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer pLength,
ByteBuffer hpCodesDC,
ByteBuffer hpTableDC,
ByteBuffer hpCodesAC,
ByteBuffer hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
ByteBuffer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(ShortPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
BytePointer hpCodesDC,
BytePointer hpTableDC,
BytePointer hpCodesAC,
BytePointer hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage,
NppStreamContext nppStreamCtx) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(PointerPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
PointerPointer hpCodesDC,
PointerPointer hpTableDC,
PointerPointer hpCodesAC,
PointerPointer hpTableAC,
PointerPointer apHuffmanDCTable,
PointerPointer apHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(short[] apSrc,
int[] aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
byte[] pDst,
int[] pLength,
byte[] hpCodesDC,
byte[] hpTableDC,
byte[] hpCodesAC,
byte[] hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
byte[] pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(ShortBuffer apSrc,
IntBuffer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
ByteBuffer pDst,
IntBuffer pLength,
ByteBuffer hpCodesDC,
ByteBuffer hpTableDC,
ByteBuffer hpCodesAC,
ByteBuffer hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
ByteBuffer pTempStorage) |
static int |
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(ShortPointer apSrc,
IntPointer aSrcStep,
int nRestartInterval,
int nSs,
int nSe,
int nAh,
int nAl,
BytePointer pDst,
IntPointer pLength,
BytePointer hpCodesDC,
BytePointer hpTableDC,
BytePointer hpCodesAC,
BytePointer hpTableAC,
NppiEncodeHuffmanSpec apHuffmanDCTable,
NppiEncodeHuffmanSpec apHuffmanACTable,
NppiSize oSizeROI,
BytePointer pTempStorage) |
static long |
nppiJpegDecodeGetDCTBufferSize(NppiSize oBlocks)
Returns how much memory has to be allocated for DCT coefficient buffers
declared in \ref NppiJpegDecodeJobMemory.
|
static long |
nppiJpegDecodeGetScanDeadzoneSize()
This function returns how much additional memory has to be available
after the end of compressed scan data.
|
static int |
nppiJpegDecodeJob_Ctx(NppiJpegDecodeJob pJob,
NppiJpegDecodeJobMemory pMemory,
NppStreamContext nppStreamCtx)
Executes a job -- part of decoding.
|
static int |
nppiJpegDecodeJob(NppiJpegDecodeJob pJob,
NppiJpegDecodeJobMemory pMemory) |
static int |
nppiJpegDecodeJobCreateFinalize(NppiJpegDecodeJob pJob)
Initializes a job that has to be called at the end of decoding,
in order to convert temporary representation of DCT coefficients
to the final one.
|
static int |
nppiJpegDecodeJobCreateMemzero(NppiJpegDecodeJob pJob)
Initializes a job that has to be called at the beginning of decoding.
|
static int |
nppiJpegDecodeJobMemorySize(NppiJpegDecodeJob pJob,
SizeTPointer aSize)
Calculates sizes of additional buffers used by the job.
|
static int |
nppiQuantFwdRawTableInit_JPEG_8u(byte[] hpQuantRawTable,
int nQualityFactor) |
static int |
nppiQuantFwdRawTableInit_JPEG_8u(ByteBuffer hpQuantRawTable,
int nQualityFactor) |
static int |
nppiQuantFwdRawTableInit_JPEG_8u(BytePointer hpQuantRawTable,
int nQualityFactor)
Apply quality factor to raw 8-bit quantization table.
|
static int |
nppiQuantFwdTableInit_JPEG_8u16u(byte[] hpQuantRawTable,
short[] hpQuantFwdRawTable) |
static int |
nppiQuantFwdTableInit_JPEG_8u16u(ByteBuffer hpQuantRawTable,
ShortBuffer hpQuantFwdRawTable) |
static int |
nppiQuantFwdTableInit_JPEG_8u16u(BytePointer hpQuantRawTable,
ShortPointer hpQuantFwdRawTable)
Initializes a quantization table for nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R().
|
static int |
nppiQuantInvTableInit_JPEG_8u16u(byte[] hpQuantRawTable,
short[] hpQuantFwdRawTable) |
static int |
nppiQuantInvTableInit_JPEG_8u16u(ByteBuffer hpQuantRawTable,
ShortBuffer hpQuantFwdRawTable) |
static int |
nppiQuantInvTableInit_JPEG_8u16u(BytePointer hpQuantRawTable,
ShortPointer hpQuantFwdRawTable)
Initializes a quantization table for nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R().
|
public static final int NPPI_JPEG_DECODE_SIMPLE
public static final int NPPI_JPEG_DECODE_PRE
public static final int NPPI_JPEG_DECODE_CPU
public static final int NPPI_JPEG_DECODE_GPU
public static final int NPPI_JPEG_DECODE_MEMZERO
public static final int NPPI_JPEG_DECODE_FINALIZE
public static final int NPPI_JPEG_DECODE_N_BUFFERS
NppiJpegDecodeJobMemory,
Constant Field Values@Cast(value="NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast(value="Npp8u*") BytePointer hpQuantRawTable, int nQualityFactor)
hpQuantRawTable - Raw quantization table.nQualityFactor - Quality factor for the table. Range is [1:100].@Cast(value="NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast(value="Npp8u*") ByteBuffer hpQuantRawTable, int nQualityFactor)
@Cast(value="NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast(value="Npp8u*") byte[] hpQuantRawTable, int nQualityFactor)
@Cast(value="NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") BytePointer hpQuantRawTable, @Cast(value="Npp16u*") ShortPointer hpQuantFwdRawTable)
hpQuantRawTable - Host pointer to raw quantization table as returned by
nppiQuantFwdRawTableInit_JPEG_8u(). The raw quantization table is assumed to be in
zigzag order.hpQuantFwdRawTable - Forward quantization table for use with nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R().@Cast(value="NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") ByteBuffer hpQuantRawTable, @Cast(value="Npp16u*") ShortBuffer hpQuantFwdRawTable)
@Cast(value="NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") byte[] hpQuantRawTable, @Cast(value="Npp16u*") short[] hpQuantFwdRawTable)
@Cast(value="NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") BytePointer hpQuantRawTable, @Cast(value="Npp16u*") ShortPointer hpQuantFwdRawTable)
hpQuantRawTable - Raw quantization table.hpQuantFwdRawTable - Inverse quantization table.@Cast(value="NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") ByteBuffer hpQuantRawTable, @Cast(value="Npp16u*") ShortBuffer hpQuantFwdRawTable)
@Cast(value="NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast(value="const Npp8u*") byte[] hpQuantRawTable, @Cast(value="Npp16u*") short[] hpQuantFwdRawTable)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - \ref source_image_line_step.pDst - \ref destination_image_pointer.nDstStep - \ref destination_image_line_step.pQuantFwdTable - Forward quantization tables for JPEG encoding created
using nppiQuantInvTableInit_JPEG_8u16u().oSizeROI - \ref roi_specification.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantFwdTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantFwdTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantFwdTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - Image width in pixels x 8 x sizeof(Npp16s).pDst - \ref destination_image_pointer.nDstStep - Image width in pixels x 8 x sizeof(Npp16s).pQuantInvTable - Inverse quantization tables for JPEG decoding created
using nppiQuantInvTableInit_JPEG_8u16u().oSizeROI - \ref roi_specification.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantInvTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantInvTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantInvTable, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTInitAlloc_Ctx(@Cast(value="NppiDCTState**") PointerPointer ppState, @ByVal NppStreamContext nppStreamCtx)
ppState - Pointer to pointer to DCT state structure.nppStreamCtx - \ref application_managed_stream_context.nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(), nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW.@Cast(value="NppStatus") public static int nppiDCTInitAlloc_Ctx(@ByPtrPtr NppiDCTState ppState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTInitAlloc(@Cast(value="NppiDCTState**") PointerPointer ppState)
@Cast(value="NppStatus") public static int nppiDCTInitAlloc(@ByPtrPtr NppiDCTState ppState)
@Cast(value="NppStatus") public static int nppiDCTFree(NppiDCTState pState)
pState - Pointer to DCT state structure.nppiDCTInitAlloc@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - \ref source_image_line_step.pDst - \ref destination_image_pointer.nDstStep - Image width in pixels x 8 x sizeof(Npp16s).pQuantizationTable - Quantization Table in zig-zag order.oSizeROI - \ref roi_specification.pState - Pointer to DCT state structure. This structure must be
initialized allocated and initialized using nppiDCTInitAlloc().nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - Image width in pixels x 8 x sizeof(Npp16s).pDst - \ref destination_image_pointer.nDstStep - \ref destination_image_line_step.pQuantizationTable - Quantization Table in zig-zag order.oSizeROI - \ref roi_specification.pState - Pointer to DCT state structure. This structure must be
initialized allocated and initialized using nppiDCTInitAlloc().nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - \ref source_image_line_step.pDst - \ref destination_image_pointer.nDstStep - Image width in pixels x 8 x sizeof(Npp16s).pQuantizationTable - Quantization Table in zig-zag order.oSizeROI - \ref roi_specification.pState - Pointer to DCT state structure. This structure must be
initialized allocated and initialized using nppiDCTInitAlloc().nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast(value="const Npp8u*") byte[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - Image width in pixels x 8 x sizeof(Npp16s).pDst - \ref destination_image_pointer.nDstStep - \ref destination_image_line_step.pQuantizationTable - Quantization Table in zig-zag order.oSizeROI - \ref roi_specification.pState - Pointer to DCT state structure. This structure must be
initialized allocated and initialized using nppiDCTInitAlloc().nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp8u*") BytePointer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp8u*") ByteBuffer pDst, int nDstStep, @Cast(value="const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp8u*") byte[] pDst, int nDstStep, @Cast(value="const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
pSize - Pointer to a variable that will receive the length of the NppiDecodeHuffmanSpec structure.@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(int[] pSize)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
pRawHuffmanTable - Huffman table formated as specified in the JPEG standard.eTableType - Enum specifying type of table (nppiDCTable or nppiACTable).pHuffmanSpec - Pointer to the Huffman table for the decoder@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @Cast(value="NppiDecodeHuffmanSpec**") PointerPointer ppHuffmanSpec)
pRawHuffmanTable - Huffman table formated as specified in the JPEG standard.eTableType - Enum specifying type of table (nppiDCTable or nppiACTable).ppHuffmanSpec - Pointer to returned pointer to the Huffman table for the decoder@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanSpecFreeHost_JPEG(NppiDecodeHuffmanSpec pHuffmanSpec)
pHuffmanSpec - Pointer to the Huffman table for the decoder
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast(value="const Npp8u*") BytePointer pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int restartInterval, @Cast(value="Npp32s") int Ss, @Cast(value="Npp32s") int Se, @Cast(value="Npp32s") int Ah, @Cast(value="Npp32s") int Al, @Cast(value="Npp16s*") ShortPointer pDst, @Cast(value="Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
pSrc - Byte-stuffed huffman encoded JPEG scan.nLength - Byte length of the input.restartInterval - Restart Interval, see JPEG standard.Ss - Start Coefficient, see JPEG standard.Se - End Coefficient, see JPEG standard.Ah - Bit Approximation High, see JPEG standard.Al - Bit Approximation Low, see JPEG standard.pDst - \ref destination_image_pointer.nDstStep - \ref destination_image_line_step.pHuffmanTableDC - DC Huffman table.pHuffmanTableAC - AC Huffman table.oSizeROI - \ref roi_specification.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast(value="const Npp8u*") ByteBuffer pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int restartInterval, @Cast(value="Npp32s") int Ss, @Cast(value="Npp32s") int Se, @Cast(value="Npp32s") int Ah, @Cast(value="Npp32s") int Al, @Cast(value="Npp16s*") ShortBuffer pDst, @Cast(value="Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast(value="const Npp8u*") byte[] pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int restartInterval, @Cast(value="Npp32s") int Ss, @Cast(value="Npp32s") int Se, @Cast(value="Npp32s") int Ah, @Cast(value="Npp32s") int Al, @Cast(value="Npp16s*") short[] pDst, @Cast(value="Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast(value="const Npp8u*") BytePointer pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp16s**") PointerPointer apDst, @Cast(value="Npp32s*") IntPointer aDstStep, @Cast(value="NppiDecodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast(value="NppiDecodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI)
pSrc - Byte-stuffed huffman encoded JPEG scan.nLength - Byte length of the input.nRestartInterval - Restart Interval, see JPEG standard.nSs - Start Coefficient, see JPEG standard.nSe - End Coefficient, see JPEG standard.nAh - Bit Approximation High, see JPEG standard.nAl - Bit Approximation Low, see JPEG standard.apDst - \ref destination_image_pointer.aDstStep - \ref destination_image_line_step.apHuffmanDCTable - DC Huffman tables.apHuffmanACTable - AC Huffman tables.aSizeROI - \ref roi_specification.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast(value="const Npp8u*") BytePointer pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp16s**") @ByPtrPtr ShortPointer apDst, @Cast(value="Npp32s*") IntPointer aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast(value="const Npp8u*") ByteBuffer pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp16s**") @ByPtrPtr ShortBuffer apDst, @Cast(value="Npp32s*") IntBuffer aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
@Cast(value="NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast(value="const Npp8u*") byte[] pSrc, @Cast(value="Npp32s") int nLength, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp16s**") @ByPtrPtr short[] apDst, @Cast(value="Npp32s*") int[] aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
pSize - Pointer to a variable that will receive the length of the NppiEncodeHuffmanSpec structure.@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(int[] pSize)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
pRawHuffmanTable - Huffman table formated as specified in the JPEG standard.eTableType - Enum specifying type of table (nppiDCTable or nppiACTable).pHuffmanSpec - Pointer to the Huffman table for the decodernppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
pRawHuffmanTable - Huffman table formated as specified in the JPEG standard.eTableType - Enum specifying type of table (nppiDCTable or nppiACTable).ppHuffmanSpec - Pointer to returned pointer to the Huffman table for the encodernppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast(value="const Npp8u*") BytePointer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast(value="const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast(value="const Npp8u*") byte[] pRawHuffmanTable, @Cast(value="NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanSpecFree_JPEG(NppiEncodeHuffmanSpec pHuffmanSpec)
pHuffmanSpec - Pointer to the Huffman table for the encoder.
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref destination_image_pointer.nSrcStep - \ref destination_image_line_step.nRestartInterval - Restart Interval, see JPEG standard. Currently only values <=0 are supported.nSs - Start Coefficient, see JPEG standard.nSe - End Coefficient, see JPEG standard.nAh - Bit Approximation High, see JPEG standard.nAl - Bit Approximation Low, see JPEG standard.pDst - Byte-stuffed huffman encoded JPEG scan.nLength - Byte length of the huffman encoded JPEG scan.pHuffmanTableDC - DC Huffman table.pHuffmanTableAC - AC Huffman table.oSizeROI - \ref roi_specification.pTempStorage - Temporary storage.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") short[] pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") ShortPointer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") ShortBuffer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") short[] pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") PointerPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
apSrc - \ref destination_image_pointer.aSrcStep - \ref destination_image_line_step.nRestartInterval - Restart Interval, see JPEG standard. Currently only values <=0 are supported.nSs - Start Coefficient, see JPEG standard.nSe - End Coefficient, see JPEG standard.nAh - Bit Approximation High, see JPEG standard.nAl - Bit Approximation Low, see JPEG standard.pDst - Byte-stuffed huffman encoded JPEG scan.nLength - Byte length of the huffman encoded JPEG scan.apHuffmanDCTable - DC Huffman tables.apHuffmanACTable - AC Huffman tables.aSizeROI - \ref roi_specification.pTempStorage - Temporary storage.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast(value="Npp32s*") IntBuffer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr short[] apSrc, @Cast(value="Npp32s*") int[] aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") PointerPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast(value="Npp32s*") IntBuffer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr short[] apSrc, @Cast(value="Npp32s*") int[] aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u*") BytePointer hpCodesDC, @Cast(value="Npp8u*") BytePointer hpTableDC, @Cast(value="Npp8u*") BytePointer hpCodesAC, @Cast(value="Npp8u*") BytePointer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref destination_image_pointer.nSrcStep - \ref destination_image_line_step.nRestartInterval - Restart Interval, see JPEG standard. Currently only values <=0 are supported.nSs - Start Coefficient, see JPEG standard.nSe - End Coefficient, see JPEG standard.nAh - Bit Approximation High, see JPEG standard.nAl - Bit Approximation Low, see JPEG standard.pDst - Byte-stuffed huffman encoded JPEG scan.pLength - Pointer to the byte length of the huffman encoded JPEG scan.hpCodesDC - Host pointer to the code of the huffman tree for DC component.hpTableDC - Host pointer to the table of the huffman tree for DC component.hpCodesAC - Host pointer to the code of the huffman tree for AC component.hpTableAC - Host pointer to the table of the huffman tree for AC component.pHuffmanDCTable - DC Huffman table.pHuffmanACTable - AC Huffman table.oSizeROI - \ref roi_specification.pTempStorage - Temporary storage.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer pLength, @Cast(value="Npp8u*") ByteBuffer hpCodesDC, @Cast(value="Npp8u*") ByteBuffer hpTableDC, @Cast(value="Npp8u*") ByteBuffer hpCodesAC, @Cast(value="Npp8u*") ByteBuffer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast(value="const Npp16s*") short[] pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] pLength, @Cast(value="Npp8u*") byte[] hpCodesDC, @Cast(value="Npp8u*") byte[] hpTableDC, @Cast(value="Npp8u*") byte[] hpCodesAC, @Cast(value="Npp8u*") byte[] hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") ShortPointer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u*") BytePointer hpCodesDC, @Cast(value="Npp8u*") BytePointer hpTableDC, @Cast(value="Npp8u*") BytePointer hpCodesAC, @Cast(value="Npp8u*") BytePointer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") ShortBuffer pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer pLength, @Cast(value="Npp8u*") ByteBuffer hpCodesDC, @Cast(value="Npp8u*") ByteBuffer hpTableDC, @Cast(value="Npp8u*") ByteBuffer hpCodesAC, @Cast(value="Npp8u*") ByteBuffer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast(value="const Npp16s*") short[] pSrc, @Cast(value="Npp32s") int nSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] pLength, @Cast(value="Npp8u*") byte[] hpCodesDC, @Cast(value="Npp8u*") byte[] hpTableDC, @Cast(value="Npp8u*") byte[] hpCodesAC, @Cast(value="Npp8u*") byte[] hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") PointerPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u**") PointerPointer hpCodesDC, @Cast(value="Npp8u**") PointerPointer hpTableDC, @Cast(value="Npp8u**") PointerPointer hpCodesAC, @Cast(value="Npp8u**") PointerPointer hpTableAC, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
apSrc - \ref destination_image_pointer.aSrcStep - \ref destination_image_line_step.nRestartInterval - Restart Interval, see JPEG standard. Currently only values <=0 are supported.nSs - Start Coefficient, see JPEG standard.nSe - End Coefficient, see JPEG standard.nAh - Bit Approximation High, see JPEG standard.nAl - Bit Approximation Low, see JPEG standard.pDst - Byte-stuffed huffman encoded JPEG scan.pLength - Pointer to the byte length of the huffman encoded JPEG scan.hpCodesDC - Host pointer to the code of the huffman tree for DC component.hpTableDC - Host pointer to the table of the huffman tree for DC component.hpCodesAC - Host pointer to the code of the huffman tree for AC component.hpTableAC - Host pointer to the table of the huffman tree for AC component.apHuffmanDCTable - DC Huffman tables.apHuffmanACTable - AC Huffman tables.oSizeROI - \ref roi_specification.pTempStorage - Temporary storage.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast(value="Npp32s*") IntBuffer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer pLength, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast(value="Npp16s**") @ByPtrPtr short[] apSrc, @Cast(value="Npp32s*") int[] aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] pLength, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") PointerPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u**") PointerPointer hpCodesDC, @Cast(value="Npp8u**") PointerPointer hpTableDC, @Cast(value="Npp8u**") PointerPointer hpCodesAC, @Cast(value="Npp8u**") PointerPointer hpTableAC, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast(value="NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast(value="Npp32s*") IntPointer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") BytePointer pDst, @Cast(value="Npp32s*") IntPointer pLength, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr BytePointer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") BytePointer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast(value="Npp32s*") IntBuffer aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") ByteBuffer pDst, @Cast(value="Npp32s*") IntBuffer pLength, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr ByteBuffer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") ByteBuffer pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast(value="Npp16s**") @ByPtrPtr short[] apSrc, @Cast(value="Npp32s*") int[] aSrcStep, @Cast(value="Npp32s") int nRestartInterval, @Cast(value="Npp32s") int nSs, @Cast(value="Npp32s") int nSe, @Cast(value="Npp32s") int nAh, @Cast(value="Npp32s") int nAl, @Cast(value="Npp8u*") byte[] pDst, @Cast(value="Npp32s*") int[] pLength, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpCodesDC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpTableDC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpCodesAC, @Cast(value="Npp8u**") @ByPtrPtr byte[] hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast(value="Npp8u*") byte[] pTempStorage)
@Cast(value="NppStatus") public static int nppiEncodeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, @Cast(value="size_t*") SizeTPointer pBufSize)
oSize - Image Dimension.nChannels - Number of channels in the image.pBufSize - Pointer to variable that returns the size of the
temporary buffer.nppiEncodeHuffmanScan_JPEG_8u16s_P1R(), nppiEncodeHuffmanScan_JPEG_8u16s_P3R().@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, IntPointer pBufSize)
oSize - Image Dimension.nChannels - Number of channels in the image.pBufSize - Pointer to variable that returns the size of the
temporary buffer.@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, IntBuffer pBufSize)
@Cast(value="NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, int[] pBufSize)
@Cast(value="NppStatus") public static int nppiJpegDecodeJobMemorySize(@Const NppiJpegDecodeJob pJob, @Cast(value="size_t*") SizeTPointer aSize)
pJob - has to point to properly initialized jobaSize - [out] will be filled with \ref NPPI_JPEG_DECODE_N_BUFFERS sizes,
aSize[i] telling how much memory has to be allocated for apCpuBuffer[i] and apGpuBuffer[i].NppiJpegDecodeJobMemory@Cast(value="NppStatus") public static int nppiJpegDecodeJob_Ctx(@Const NppiJpegDecodeJob pJob, @Const NppiJpegDecodeJobMemory pMemory, @ByVal NppStreamContext nppStreamCtx)
pJob - has to be initialized by \ref nppiJpegDecodeJobCreateMemzero
or \ref nppiJpegDecodeJobCreateFinalize or manually.pMemory - has to point to valid structure, except for MEMZERO and FINALIZE
scans, for which it can be NULL.nppStreamCtx - \ref application_managed_stream_context.nppiJpegDecodeJobMemorySize,
nppiJpegDecodeJobCreateMemzero,
This function can be used in two ways, depending on how much control do you need:
1. Decode whole scan in one job. That is accomplished when the job.eKind is
set to \ref NPPI_JPEG_DECODE_SIMPLE. Nppi function handless all in-scan synchronization
(if needed).
This is described in example.
2. Split decoding of scan into multiple jobs. In this case, caller is responsible
necessary synchronizations. If multiple jobs
from the same scan claim to use the same additional buffer, it means that
the jobs are exchaning information throught this buffer and the buffer should not be
reused or reallocated meanwhile, additionaly if the buffer is used first by PRE job,
and then by CPU job, caller has to call cudaStreamSynchronize before CPU job.
\ref NppiJpegDecodeJobKind for more information.
Example (pseudo)code for decoding JPEG:
(Error handling code omitted for brevity. Each function which may return
an error should be checked)
{@code
// Allocate DCT buffers (using nppiJpegDecodeGetDCTBufferSize)
NppiJpegFrameDescr frame;
// Fill frame info...
NppiJpegScanDescr scan;
NppiJpegDecodeJob job;
job.pFrame = frame;
job.pScan = scan;
nppiJpegDecodeJobCreateMemzero(&job);
nppiJpegDecodeJob(&job, NULL);
for (int i = 0; i < nScans; ++i)
{
// Fill scan info...
job.eKind = NPPI_JPEG_DECODE_SIMPLE;
size_t sizes[NPPI_JPEG_DECODE_N_BUFFERS];
nppiJpegDecodeJobMemorySize(&job, sizes);
NppiJpegJobMemory memory;
// Allocate and fill scan buffers (using nppiJpegDecodeGetScanBufferSize)...
// Fill the memory struct according to sizes...
nppiJpegDecodeJob(&job, &memory);
// Synchronization is needed only if you reuse buffers between scans.
cudaStreamSynchronize(nppGetStream()); or CudaStreamSynchronize(nppStreamCtx.hStream);
}
nppiJpegDecodeJobCreateFinalize(&job);
nppiJpegDecodeJob(&job, NULL);
// Perform further steps of decoding (iDCT etc.)
}@Cast(value="NppStatus") public static int nppiJpegDecodeJob(@Const NppiJpegDecodeJob pJob, @Const NppiJpegDecodeJobMemory pMemory)
@Cast(value="NppStatus") public static int nppiJpegDecodeJobCreateMemzero(NppiJpegDecodeJob pJob)
pJob: - pJob.pFrame should point to valid frame description.
*pJob.pScan will be overwritten.
If the caller had manually zeroed the memory for DCT buffers,
(note: whole \ref nppiJpegDecodeGetDCTBufferSize has to be zeroed).
this job doesn't have to be executed.
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="NppStatus") public static int nppiJpegDecodeJobCreateFinalize(NppiJpegDecodeJob pJob)
pJob: - pJob.pFrame should point to valid frame description
*pJob.pScan will be overwritten.
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="size_t") public static long nppiJpegDecodeGetScanDeadzoneSize()
pCpuScan and pGpuScan in \ref NppiJpegDecodeJobMemory
should have size at least pScan->length + nppiJpegDecodeGetScanDeadzoneSize().
The additional memory is needed because the decoder may perform
some speculative reads after the end of compressed scan data.
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="size_t") public static long nppiJpegDecodeGetDCTBufferSize(@ByVal NppiSize oBlocks)
number of blocks * 64 * sizeof (short), because decoder
may use slightly bigger temporary representation of data.oBlocks - Size of the interleaved component in blocks.
(That means that the size of component in blocks has to be aligned according
to subsampling of this component and frame).
This function assumes no ununsed space between rows,
so at the end stride = oBlocks.width * 64 * sizeof (short).
NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.@Cast(value="NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
pSrc - \ref source_image_pointer.nSrcStep - \ref source_image_line_step.pDst - \ref destination_image_pointer.nDstStep - \ref destination_image_line_step.oSizeROI - \ref roi_specification.nppStreamCtx - \ref application_managed_stream_context.@Cast(value="NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast(value="const Npp16s*") short[] pSrc, int nSrcStep, @Cast(value="Npp16s*") short[] pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
@Cast(value="NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R(@Cast(value="const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortPointer pDst, int nDstStep, @ByVal NppiSize oSizeROI)
@Cast(value="NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R(@Cast(value="const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast(value="Npp16s*") ShortBuffer pDst, int nDstStep, @ByVal NppiSize oSizeROI)
Copyright © 2019. All rights reserved.