Package org.bytedeco.cuda.global
Class nppicom
- java.lang.Object
-
- org.bytedeco.cuda.presets.nppicom
-
- org.bytedeco.cuda.global.nppicom
-
- All Implemented Interfaces:
InfoMapper
public class nppicom extends nppicom
-
-
Field Summary
Fields Modifier and Type Field Description static intNPPI_JPEG_DECODE_CPUenum NppiJpegDecodeJobKindstatic intNPPI_JPEG_DECODE_FINALIZEenum NppiJpegDecodeJobKindstatic intNPPI_JPEG_DECODE_GPUenum NppiJpegDecodeJobKindstatic intNPPI_JPEG_DECODE_MEMZEROenum NppiJpegDecodeJobKindstatic intNPPI_JPEG_DECODE_N_BUFFERSNumber of additional buffers that may be used by JPEG decode jobs.static intNPPI_JPEG_DECODE_PREenum NppiJpegDecodeJobKindstatic intNPPI_JPEG_DECODE_SIMPLEenum NppiJpegDecodeJobKind
-
Constructor Summary
Constructors Constructor Description nppicom()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnppiDCTFree(NppiDCTState pState)Frees the additional resources of the DCT state structure.static intnppiDCTInitAlloc(NppiDCTState ppState)static intnppiDCTInitAlloc(PointerPointer ppState)static intnppiDCTInitAlloc_Ctx(NppiDCTState ppState, NppStreamContext nppStreamCtx)static intnppiDCTInitAlloc_Ctx(PointerPointer ppState, NppStreamContext nppStreamCtx)Initializes DCT state structure and allocates additional resources.static intnppiDCTInv4x4_WebP_16s_C1R(short[] pSrc, int nSrcStep, short[] pDst, int nDstStep, NppiSize oSizeROI)static intnppiDCTInv4x4_WebP_16s_C1R(ShortBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, NppiSize oSizeROI)static intnppiDCTInv4x4_WebP_16s_C1R(ShortPointer pSrc, int nSrcStep, ShortPointer pDst, int nDstStep, NppiSize oSizeROI)static intnppiDCTInv4x4_WebP_16s_C1R_Ctx(short[] pSrc, int nSrcStep, short[] pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTInv4x4_WebP_16s_C1R_Ctx(ShortBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTInv4x4_WebP_16s_C1R_Ctx(ShortPointer pSrc, int nSrcStep, ShortPointer pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)Inverse DCT in WebP decoding.static intnppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, short[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ShortBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(BytePointer pSrc, int nSrcStep, ShortPointer pDst, int nDstStep, ShortPointer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, short[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ShortBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuant16Fwd8x8LS_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 intnppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, short[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ShortBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(ShortPointer pSrc, int nSrcStep, BytePointer pDst, int nDstStep, ShortPointer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, short[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ShortBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuant16Inv8x8LS_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 intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, short[] pQuantFwdTable, NppiSize oSizeROI)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ShortBuffer pQuantFwdTable, NppiSize oSizeROI)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(BytePointer pSrc, int nSrcStep, ShortPointer pDst, int nDstStep, ShortPointer pQuantFwdTable, NppiSize oSizeROI)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, short[] pQuantFwdTable, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ShortBuffer pQuantFwdTable, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTQuantFwd8x8LS_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 intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, byte[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ByteBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(BytePointer pSrc, int nSrcStep, ShortPointer pDst, int nDstStep, BytePointer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(byte[] pSrc, int nSrcStep, short[] pDst, int nDstStep, byte[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(ByteBuffer pSrc, int nSrcStep, ShortBuffer pDst, int nDstStep, ByteBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuantFwd8x8LS_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 intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, short[] pQuantInvTable, NppiSize oSizeROI)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ShortBuffer pQuantInvTable, NppiSize oSizeROI)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(ShortPointer pSrc, int nSrcStep, BytePointer pDst, int nDstStep, ShortPointer pQuantInvTable, NppiSize oSizeROI)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, short[] pQuantInvTable, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ShortBuffer pQuantInvTable, NppiSize oSizeROI, NppStreamContext nppStreamCtx)static intnppiDCTQuantInv8x8LS_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 intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, byte[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ByteBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(ShortPointer pSrc, int nSrcStep, BytePointer pDst, int nDstStep, BytePointer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(short[] pSrc, int nSrcStep, byte[] pDst, int nDstStep, byte[] pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(ShortBuffer pSrc, int nSrcStep, ByteBuffer pDst, int nDstStep, ByteBuffer pQuantizationTable, NppiSize oSizeROI, NppiDCTState pState, NppStreamContext nppStreamCtx)static intnppiDCTQuantInv8x8LS_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanScanHost_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 intnppiDecodeHuffmanSpecFreeHost_JPEG(NppiDecodeHuffmanSpec pHuffmanSpec)Frees the host memory allocated by nppiDecodeHuffmanSpecInitAllocHost_JPEG.static intnppiDecodeHuffmanSpecGetBufSize_JPEG(int[] pSize)static intnppiDecodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)static intnppiDecodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)Returns the length of the NppiDecodeHuffmanSpec structure.static intnppiDecodeHuffmanSpecInitAllocHost_JPEG(byte[] pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec ppHuffmanSpec)static intnppiDecodeHuffmanSpecInitAllocHost_JPEG(ByteBuffer pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec ppHuffmanSpec)static intnppiDecodeHuffmanSpecInitAllocHost_JPEG(BytePointer pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec ppHuffmanSpec)static intnppiDecodeHuffmanSpecInitAllocHost_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 intnppiDecodeHuffmanSpecInitHost_JPEG(byte[] pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)static intnppiDecodeHuffmanSpecInitHost_JPEG(ByteBuffer pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)static intnppiDecodeHuffmanSpecInitHost_JPEG(BytePointer pRawHuffmanTable, int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)Creates a Huffman table in a format that is suitable for the decoder on the host.static intnppiEncodeHuffmanGetSize(NppiSize oSize, int nChannels, SizeTPointer pBufSize)Calculates the size of the temporary buffer for baseline Huffman encoding.static intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanScan_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 intnppiEncodeHuffmanSpecFree_JPEG(NppiEncodeHuffmanSpec pHuffmanSpec)Frees the memory allocated by nppiEncodeHuffmanSpecInitAlloc_JPEG.static intnppiEncodeHuffmanSpecGetBufSize_JPEG(int[] pSize)static intnppiEncodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)static intnppiEncodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)Returns the length of the NppiEncodeHuffmanSpec structure.static intnppiEncodeHuffmanSpecInit_JPEG(byte[] pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)static intnppiEncodeHuffmanSpecInit_JPEG(ByteBuffer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)static intnppiEncodeHuffmanSpecInit_JPEG(BytePointer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)static intnppiEncodeHuffmanSpecInit_JPEG_Ctx(byte[] pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, NppStreamContext nppStreamCtx)static intnppiEncodeHuffmanSpecInit_JPEG_Ctx(ByteBuffer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, NppStreamContext nppStreamCtx)static intnppiEncodeHuffmanSpecInit_JPEG_Ctx(BytePointer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, NppStreamContext nppStreamCtx)Creates a Huffman table in a format that is suitable for the encoder.static intnppiEncodeHuffmanSpecInitAlloc_JPEG(byte[] pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec)static intnppiEncodeHuffmanSpecInitAlloc_JPEG(ByteBuffer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec)static intnppiEncodeHuffmanSpecInitAlloc_JPEG(BytePointer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec)static intnppiEncodeHuffmanSpecInitAlloc_JPEG(BytePointer pRawHuffmanTable, int eTableType, PointerPointer ppHuffmanSpec)static intnppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(byte[] pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec, NppStreamContext nppStreamCtx)static intnppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(ByteBuffer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec, NppStreamContext nppStreamCtx)static intnppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(BytePointer pRawHuffmanTable, int eTableType, NppiEncodeHuffmanSpec ppHuffmanSpec, NppStreamContext nppStreamCtx)static intnppiEncodeHuffmanSpecInitAlloc_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 intnppiEncodeOptimizeHuffmanGetSize(NppiSize oSize, int nChannels, int[] pBufSize)static intnppiEncodeOptimizeHuffmanGetSize(NppiSize oSize, int nChannels, IntBuffer pBufSize)static intnppiEncodeOptimizeHuffmanGetSize(NppiSize oSize, int nChannels, IntPointer pBufSize)Calculates the size of the temporary buffer for optimize Huffman coding.static intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 intnppiEncodeOptimizeHuffmanScan_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 longnppiJpegDecodeGetDCTBufferSize(NppiSize oBlocks)Returns how much memory has to be allocated for DCT coefficient buffers declared in \ref NppiJpegDecodeJobMemory.static longnppiJpegDecodeGetScanDeadzoneSize()This function returns how much additional memory has to be available after the end of compressed scan data.static intnppiJpegDecodeJob(NppiJpegDecodeJob pJob, NppiJpegDecodeJobMemory pMemory)static intnppiJpegDecodeJob_Ctx(NppiJpegDecodeJob pJob, NppiJpegDecodeJobMemory pMemory, NppStreamContext nppStreamCtx)Executes a job -- part of decoding.static intnppiJpegDecodeJobCreateFinalize(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 intnppiJpegDecodeJobCreateMemzero(NppiJpegDecodeJob pJob)Initializes a job that has to be called at the beginning of decoding.static intnppiJpegDecodeJobMemorySize(NppiJpegDecodeJob pJob, SizeTPointer aSize)Calculates sizes of additional buffers used by the job.static intnppiQuantFwdRawTableInit_JPEG_8u(byte[] hpQuantRawTable, int nQualityFactor)static intnppiQuantFwdRawTableInit_JPEG_8u(ByteBuffer hpQuantRawTable, int nQualityFactor)static intnppiQuantFwdRawTableInit_JPEG_8u(BytePointer hpQuantRawTable, int nQualityFactor)Apply quality factor to raw 8-bit quantization table.static intnppiQuantFwdTableInit_JPEG_8u16u(byte[] hpQuantRawTable, short[] hpQuantFwdRawTable)static intnppiQuantFwdTableInit_JPEG_8u16u(ByteBuffer hpQuantRawTable, ShortBuffer hpQuantFwdRawTable)static intnppiQuantFwdTableInit_JPEG_8u16u(BytePointer hpQuantRawTable, ShortPointer hpQuantFwdRawTable)Initializes a quantization table for nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R().static intnppiQuantInvTableInit_JPEG_8u16u(byte[] hpQuantRawTable, short[] hpQuantFwdRawTable)static intnppiQuantInvTableInit_JPEG_8u16u(ByteBuffer hpQuantRawTable, ShortBuffer hpQuantFwdRawTable)static intnppiQuantInvTableInit_JPEG_8u16u(BytePointer hpQuantRawTable, ShortPointer hpQuantFwdRawTable)Initializes a quantization table for nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R().
-
-
-
Field Detail
-
NPPI_JPEG_DECODE_SIMPLE
public static final int NPPI_JPEG_DECODE_SIMPLE
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_PRE
public static final int NPPI_JPEG_DECODE_PRE
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_CPU
public static final int NPPI_JPEG_DECODE_CPU
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_GPU
public static final int NPPI_JPEG_DECODE_GPU
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_MEMZERO
public static final int NPPI_JPEG_DECODE_MEMZERO
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_FINALIZE
public static final int NPPI_JPEG_DECODE_FINALIZE
enum NppiJpegDecodeJobKind- See Also:
- Constant Field Values
-
NPPI_JPEG_DECODE_N_BUFFERS
public static final int NPPI_JPEG_DECODE_N_BUFFERS
Number of additional buffers that may be used by JPEG decode jobs. This number may change in the future, but it remain small.- See Also:
NppiJpegDecodeJobMemory, Constant Field Values
-
-
Method Detail
-
nppiQuantFwdRawTableInit_JPEG_8u
@Cast("NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast("Npp8u*") BytePointer hpQuantRawTable, int nQualityFactor)
Apply quality factor to raw 8-bit quantization table. This is effectively and in-place method that modifies a given raw quantization table based on a quality factor. Note that this method is a host method and that the pointer to the raw quantization table is a host pointer.- Parameters:
hpQuantRawTable- Raw quantization table.nQualityFactor- Quality factor for the table. Range is [1:100].- Returns:
- Error code: ::NPP_NULL_POINTER_ERROR is returned if hpQuantRawTable is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiQuantFwdRawTableInit_JPEG_8u
@Cast("NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast("Npp8u*") ByteBuffer hpQuantRawTable, int nQualityFactor)
-
nppiQuantFwdRawTableInit_JPEG_8u
@Cast("NppStatus") public static int nppiQuantFwdRawTableInit_JPEG_8u(@Cast("Npp8u*") byte[] hpQuantRawTable, int nQualityFactor)
-
nppiQuantFwdTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast("const Npp8u*") BytePointer hpQuantRawTable, @Cast("Npp16u*") ShortPointer hpQuantFwdRawTable)
Initializes a quantization table for nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(). The method creates a 16-bit version of the raw table and converts the data order from zigzag layout to original row-order layout since raw quantization tables are typically stored in zigzag format. This method is a host method. It consumes and produces host data. I.e. the pointers passed to this function must be host pointers. The resulting table needs to be transferred to device memory in order to be used with nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R() function.- Parameters:
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().- Returns:
- Error code: ::NPP_NULL_POINTER_ERROR pQuantRawTable is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiQuantFwdTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast("const Npp8u*") ByteBuffer hpQuantRawTable, @Cast("Npp16u*") ShortBuffer hpQuantFwdRawTable)
-
nppiQuantFwdTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantFwdTableInit_JPEG_8u16u(@Cast("const Npp8u*") byte[] hpQuantRawTable, @Cast("Npp16u*") short[] hpQuantFwdRawTable)
-
nppiQuantInvTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast("const Npp8u*") BytePointer hpQuantRawTable, @Cast("Npp16u*") ShortPointer hpQuantFwdRawTable)
Initializes a quantization table for nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(). The nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R() method uses a quantization table in a 16-bit format allowing for faster processing. In addition it converts the data order from zigzag layout to original row-order layout. Typically raw quantization tables are stored in zigzag format. This method is a host method and consumes and produces host data. I.e. the pointers passed to this function must be host pointers. The resulting table needs to be transferred to device memory in order to be used with nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R() function.- Parameters:
hpQuantRawTable- Raw quantization table.hpQuantFwdRawTable- Inverse quantization table.- Returns:
- ::NPP_NULL_POINTER_ERROR pQuantRawTable or pQuantFwdRawTable is0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiQuantInvTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast("const Npp8u*") ByteBuffer hpQuantRawTable, @Cast("Npp16u*") ShortBuffer hpQuantFwdRawTable)
-
nppiQuantInvTableInit_JPEG_8u16u
@Cast("NppStatus") public static int nppiQuantInvTableInit_JPEG_8u16u(@Cast("const Npp8u*") byte[] hpQuantRawTable, @Cast("Npp16u*") short[] hpQuantFwdRawTable)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding. Input is expected in 8x8 macro blocks and output is expected to be in 64x1 macro blocks.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_Ctx(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantFwdTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantFwdTable, @ByVal NppiSize oSizeROI)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantFwdTable, @ByVal NppiSize oSizeROI)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantFwdTable, @ByVal NppiSize oSizeROI)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding. Input is expected in 64x1 macro blocks and output is expected to be in 8x8 macro blocks.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_Ctx(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantInvTable, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantInvTable, @ByVal NppiSize oSizeROI)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantInvTable, @ByVal NppiSize oSizeROI)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantInvTable, @ByVal NppiSize oSizeROI)
-
nppiDCTInitAlloc_Ctx
@Cast("NppStatus") public static int nppiDCTInitAlloc_Ctx(@Cast("NppiDCTState**") PointerPointer ppState, @ByVal NppStreamContext nppStreamCtx)
Initializes DCT state structure and allocates additional resources.- Parameters:
ppState- Pointer to pointer to DCT state structure.nppStreamCtx- \ref application_managed_stream_context.- Returns:
- NPP_SUCCESS Indicates no error. Any other value indicates an error or a warning
-
nppiDCTInitAlloc_Ctx
@Cast("NppStatus") public static int nppiDCTInitAlloc_Ctx(@ByPtrPtr NppiDCTState ppState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTInitAlloc
@Cast("NppStatus") public static int nppiDCTInitAlloc(@Cast("NppiDCTState**") PointerPointer ppState)
-
nppiDCTInitAlloc
@Cast("NppStatus") public static int nppiDCTInitAlloc(@ByPtrPtr NppiDCTState ppState)
-
nppiDCTFree
@Cast("NppStatus") public static int nppiDCTFree(NppiDCTState pState)
Frees the additional resources of the DCT state structure.- Parameters:
pState- Pointer to DCT state structure.- Returns:
- NPP_SUCCESS Indicates no error. Any other value indicates an error or a warning
- See Also:
nppiDCTInitAlloc(org.bytedeco.javacpp.PointerPointer)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding. Input is expected in 8x8 macro blocks and output is expected to be in 64x1 macro blocks. The new version of the primitive takes the ROI in image pixel size and works with DCT coefficients that are in zig-zag order.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding. Input is expected in 64x1 macro blocks and output is expected to be in 8x8 macro blocks. The new version of the primitive takes the ROI in image pixel size and works with DCT coefficients that are in zig-zag order.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp8u*") BytePointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp8u*") ByteBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp8u*") byte[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
Forward DCT, quantization and level shift part of the JPEG encoding, 16-bit short integer. Input is expected in 8x8 macro blocks and output is expected to be in 64x1 macro blocks. The new version of the primitive takes the ROI in image pixel size and works with DCT coefficients that are in zig-zag order.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW_Ctx(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") BytePointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") ByteBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Fwd8x8LS_JPEG_8u16s_C1R_NEW(@Cast("const Npp8u*") byte[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
Inverse DCT, de-quantization and level shift part of the JPEG decoding, 16-bit short integer. Input is expected in 64x1 macro blocks and output is expected to be in 8x8 macro blocks. The new version of the primitive takes the ROI in image pixel size and works with DCT coefficients that are in zig-zag order.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW_Ctx(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp8u*") BytePointer pDst, int nDstStep, @Cast("const Npp16u*") ShortPointer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp8u*") ByteBuffer pDst, int nDstStep, @Cast("const Npp16u*") ShortBuffer pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW
@Cast("NppStatus") public static int nppiDCTQuant16Inv8x8LS_JPEG_16s8u_C1R_NEW(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp8u*") byte[] pDst, int nDstStep, @Cast("const Npp16u*") short[] pQuantizationTable, @ByVal NppiSize oSizeROI, NppiDCTState pState)
-
nppiDecodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
Returns the length of the NppiDecodeHuffmanSpec structure.- Parameters:
pSize- Pointer to a variable that will receive the length of the NppiDecodeHuffmanSpec structure.- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDecodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)
-
nppiDecodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecGetBufSize_JPEG(int[] pSize)
-
nppiDecodeHuffmanSpecInitHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
Creates a Huffman table in a format that is suitable for the decoder on the host.- Parameters:
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- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDecodeHuffmanSpecInitHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
-
nppiDecodeHuffmanSpecInitHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitHost_JPEG(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiDecodeHuffmanSpec pHuffmanSpec)
-
nppiDecodeHuffmanSpecInitAllocHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @Cast("NppiDecodeHuffmanSpec**") PointerPointer ppHuffmanSpec)
Allocates memory and creates a Huffman table in a format that is suitable for the decoder on the host.- Parameters:
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- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDecodeHuffmanSpecInitAllocHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
-
nppiDecodeHuffmanSpecInitAllocHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
-
nppiDecodeHuffmanSpecInitAllocHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecInitAllocHost_JPEG(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiDecodeHuffmanSpec ppHuffmanSpec)
-
nppiDecodeHuffmanSpecFreeHost_JPEG
@Cast("NppStatus") public static int nppiDecodeHuffmanSpecFreeHost_JPEG(NppiDecodeHuffmanSpec pHuffmanSpec)
Frees the host memory allocated by nppiDecodeHuffmanSpecInitAllocHost_JPEG.- Parameters:
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.
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast("const Npp8u*") BytePointer pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int restartInterval, @Cast("Npp32s") int Ss, @Cast("Npp32s") int Se, @Cast("Npp32s") int Ah, @Cast("Npp32s") int Al, @Cast("Npp16s*") ShortPointer pDst, @Cast("Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
Huffman Decoding of the JPEG decoding on the host. Input is expected in byte stuffed huffman encoded JPEG scan and output is expected to be 64x1 macro blocks.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast("const Npp8u*") ByteBuffer pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int restartInterval, @Cast("Npp32s") int Ss, @Cast("Npp32s") int Se, @Cast("Npp32s") int Ah, @Cast("Npp32s") int Al, @Cast("Npp16s*") ShortBuffer pDst, @Cast("Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P1R(@Cast("const Npp8u*") byte[] pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int restartInterval, @Cast("Npp32s") int Ss, @Cast("Npp32s") int Se, @Cast("Npp32s") int Ah, @Cast("Npp32s") int Al, @Cast("Npp16s*") short[] pDst, @Cast("Npp32s") int nDstStep, NppiDecodeHuffmanSpec pHuffmanTableDC, NppiDecodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI)
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast("const Npp8u*") BytePointer pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp16s**") PointerPointer apDst, @Cast("Npp32s*") IntPointer aDstStep, @Cast("NppiDecodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast("NppiDecodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI)
Huffman Decoding of the JPEG decoding on the host. Input is expected in byte stuffed huffman encoded JPEG scan and output is expected to be 64x1 macro blocks.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast("const Npp8u*") BytePointer pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp16s**") @ByPtrPtr ShortPointer apDst, @Cast("Npp32s*") IntPointer aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast("const Npp8u*") ByteBuffer pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp16s**") @ByPtrPtr ShortBuffer apDst, @Cast("Npp32s*") IntBuffer aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
-
nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiDecodeHuffmanScanHost_JPEG_8u16s_P3R(@Cast("const Npp8u*") byte[] pSrc, @Cast("Npp32s") int nLength, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp16s**") @ByPtrPtr short[] apDst, @Cast("Npp32s*") int[] aDstStep, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiDecodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI)
-
nppiEncodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(IntPointer pSize)
Returns the length of the NppiEncodeHuffmanSpec structure.- Parameters:
pSize- Pointer to a variable that will receive the length of the NppiEncodeHuffmanSpec structure.- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(IntBuffer pSize)
-
nppiEncodeHuffmanSpecGetBufSize_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecGetBufSize_JPEG(int[] pSize)
-
nppiEncodeHuffmanSpecInit_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
Creates a Huffman table in a format that is suitable for the encoder.- Parameters:
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.- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeHuffmanSpecInit_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanSpecInit_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG_Ctx(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanSpecInit_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
-
nppiEncodeHuffmanSpecInit_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
-
nppiEncodeHuffmanSpecInit_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInit_JPEG(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, NppiEncodeHuffmanSpec pHuffmanSpec)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @Cast("NppiEncodeHuffmanSpec**") PointerPointer ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
Allocates memory and creates a Huffman table in a format that is suitable for the encoder.- Parameters:
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.- Returns:
- Error codes: - ::NPP_NULL_POINTER_ERROR If one of the pointers is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG_Ctx(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @Cast("NppiEncodeHuffmanSpec**") PointerPointer ppHuffmanSpec)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast("const Npp8u*") BytePointer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast("const Npp8u*") ByteBuffer pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
-
nppiEncodeHuffmanSpecInitAlloc_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecInitAlloc_JPEG(@Cast("const Npp8u*") byte[] pRawHuffmanTable, @Cast("NppiHuffmanTableType") int eTableType, @ByPtrPtr NppiEncodeHuffmanSpec ppHuffmanSpec)
-
nppiEncodeHuffmanSpecFree_JPEG
@Cast("NppStatus") public static int nppiEncodeHuffmanSpecFree_JPEG(NppiEncodeHuffmanSpec pHuffmanSpec)
Frees the memory allocated by nppiEncodeHuffmanSpecInitAlloc_JPEG.- Parameters:
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.
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
Huffman Encoding of the JPEG Encoding. Input is expected to be 64x1 macro blocks and output is expected as byte stuffed huffman encoded JPEG scan.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. - ::NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY If the device has compute capability < 2.0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") short[] pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") ShortPointer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") ShortBuffer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") short[] pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] nLength, NppiEncodeHuffmanSpec pHuffmanTableDC, NppiEncodeHuffmanSpec pHuffmanTableAC, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") PointerPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
Huffman Encoding of the JPEG Encoding. Input is expected to be 64x1 macro blocks and output is expected as byte stuffed huffman encoded JPEG scan.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. - ::NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY If the device has compute capability < 2.0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast("Npp32s*") IntBuffer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr short[] apSrc, @Cast("Npp32s*") int[] aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") PointerPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast("Npp32s*") IntBuffer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage)
-
nppiEncodeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr short[] apSrc, @Cast("Npp32s*") int[] aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] nLength, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize aSizeROI, @Cast("Npp8u*") byte[] pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u*") BytePointer hpCodesDC, @Cast("Npp8u*") BytePointer hpTableDC, @Cast("Npp8u*") BytePointer hpCodesAC, @Cast("Npp8u*") BytePointer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
Optimize Huffman Encoding of the JPEG Encoding. Input is expected to be 64x1 macro blocks and output is expected as byte stuffed huffman encoded JPEG scan.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. - ::NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY If the device has compute capability < 2.0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer pLength, @Cast("Npp8u*") ByteBuffer hpCodesDC, @Cast("Npp8u*") ByteBuffer hpTableDC, @Cast("Npp8u*") ByteBuffer hpCodesAC, @Cast("Npp8u*") ByteBuffer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R_Ctx(@Cast("const Npp16s*") short[] pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] pLength, @Cast("Npp8u*") byte[] hpCodesDC, @Cast("Npp8u*") byte[] hpTableDC, @Cast("Npp8u*") byte[] hpCodesAC, @Cast("Npp8u*") byte[] hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") ShortPointer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u*") BytePointer hpCodesDC, @Cast("Npp8u*") BytePointer hpTableDC, @Cast("Npp8u*") BytePointer hpCodesAC, @Cast("Npp8u*") BytePointer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") ShortBuffer pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer pLength, @Cast("Npp8u*") ByteBuffer hpCodesDC, @Cast("Npp8u*") ByteBuffer hpTableDC, @Cast("Npp8u*") ByteBuffer hpCodesAC, @Cast("Npp8u*") ByteBuffer hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P1R(@Cast("const Npp16s*") short[] pSrc, @Cast("Npp32s") int nSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] pLength, @Cast("Npp8u*") byte[] hpCodesDC, @Cast("Npp8u*") byte[] hpTableDC, @Cast("Npp8u*") byte[] hpCodesAC, @Cast("Npp8u*") byte[] hpTableAC, NppiEncodeHuffmanSpec pHuffmanDCTable, NppiEncodeHuffmanSpec pHuffmanACTable, @ByVal NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") PointerPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u**") PointerPointer hpCodesDC, @Cast("Npp8u**") PointerPointer hpTableDC, @Cast("Npp8u**") PointerPointer hpCodesAC, @Cast("Npp8u**") PointerPointer hpTableAC, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
Optimize Huffman Encoding of the JPEG Encoding. Input is expected to be 64x1 macro blocks and output is expected as byte stuffed huffman encoded JPEG scan.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. - ::NPP_NOT_SUFFICIENT_COMPUTE_CAPABILITY If the device has compute capability < 2.0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u**") @ByPtrPtr BytePointer hpCodesDC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpTableDC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpCodesAC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast("Npp32s*") IntBuffer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer pLength, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpCodesDC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpTableDC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpCodesAC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R_Ctx(@Cast("Npp16s**") @ByPtrPtr short[] apSrc, @Cast("Npp32s*") int[] aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] pLength, @Cast("Npp8u**") @ByPtrPtr byte[] hpCodesDC, @Cast("Npp8u**") @ByPtrPtr byte[] hpTableDC, @Cast("Npp8u**") @ByPtrPtr byte[] hpCodesAC, @Cast("Npp8u**") @ByPtrPtr byte[] hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage, @ByVal NppStreamContext nppStreamCtx)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") PointerPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u**") PointerPointer hpCodesDC, @Cast("Npp8u**") PointerPointer hpTableDC, @Cast("Npp8u**") PointerPointer hpCodesAC, @Cast("Npp8u**") PointerPointer hpTableAC, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanDCTable, @Cast("NppiEncodeHuffmanSpec**") PointerPointer apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr ShortPointer apSrc, @Cast("Npp32s*") IntPointer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") BytePointer pDst, @Cast("Npp32s*") IntPointer pLength, @Cast("Npp8u**") @ByPtrPtr BytePointer hpCodesDC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpTableDC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpCodesAC, @Cast("Npp8u**") @ByPtrPtr BytePointer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") BytePointer pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr ShortBuffer apSrc, @Cast("Npp32s*") IntBuffer aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") ByteBuffer pDst, @Cast("Npp32s*") IntBuffer pLength, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpCodesDC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpTableDC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpCodesAC, @Cast("Npp8u**") @ByPtrPtr ByteBuffer hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") ByteBuffer pTempStorage)
-
nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanScan_JPEG_8u16s_P3R(@Cast("Npp16s**") @ByPtrPtr short[] apSrc, @Cast("Npp32s*") int[] aSrcStep, @Cast("Npp32s") int nRestartInterval, @Cast("Npp32s") int nSs, @Cast("Npp32s") int nSe, @Cast("Npp32s") int nAh, @Cast("Npp32s") int nAl, @Cast("Npp8u*") byte[] pDst, @Cast("Npp32s*") int[] pLength, @Cast("Npp8u**") @ByPtrPtr byte[] hpCodesDC, @Cast("Npp8u**") @ByPtrPtr byte[] hpTableDC, @Cast("Npp8u**") @ByPtrPtr byte[] hpCodesAC, @Cast("Npp8u**") @ByPtrPtr byte[] hpTableAC, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanDCTable, @ByPtrPtr NppiEncodeHuffmanSpec apHuffmanACTable, NppiSize oSizeROI, @Cast("Npp8u*") byte[] pTempStorage)
-
nppiEncodeHuffmanGetSize
@Cast("NppStatus") public static int nppiEncodeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, @Cast("size_t*") SizeTPointer pBufSize)
Calculates the size of the temporary buffer for baseline Huffman encoding.- Parameters:
oSize- Image Dimension.nChannels- Number of channels in the image.pBufSize- Pointer to variable that returns the size of the temporary buffer.- Returns:
- NPP_SUCCESS Indicates no error. Any other value indicates an error or a warning
-
nppiEncodeOptimizeHuffmanGetSize
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, IntPointer pBufSize)
Calculates the size of the temporary buffer for optimize Huffman coding.- Parameters:
oSize- Image Dimension.nChannels- Number of channels in the image.pBufSize- Pointer to variable that returns the size of the temporary buffer.- Returns:
- NPP_SUCCESS Indicates no error. Any other value indicates an error or a warning
-
nppiEncodeOptimizeHuffmanGetSize
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, IntBuffer pBufSize)
-
nppiEncodeOptimizeHuffmanGetSize
@Cast("NppStatus") public static int nppiEncodeOptimizeHuffmanGetSize(@ByVal NppiSize oSize, int nChannels, int[] pBufSize)
-
nppiJpegDecodeJobMemorySize
@Cast("NppStatus") public static int nppiJpegDecodeJobMemorySize(@Const NppiJpegDecodeJob pJob, @Cast("size_t*") SizeTPointer aSize)
Calculates sizes of additional buffers used by the job.- Parameters:
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 forapCpuBuffer[i]andapGpuBuffer[i].- Returns:
- * \ref NPP_SUCCESS * \ref NPP_BAD_ARGUMENT_ERROR when the scan doesn't represent valid JPEG scan * \ref NPP_NULL_POINTER_ERROR when one of necessary arguments is NULL NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
- See Also:
NppiJpegDecodeJobMemory
-
nppiJpegDecodeJob_Ctx
@Cast("NppStatus") public static int nppiJpegDecodeJob_Ctx(@Const NppiJpegDecodeJob pJob, @Const NppiJpegDecodeJobMemory pMemory, @ByVal NppStreamContext nppStreamCtx)
Executes a job -- part of decoding.- Parameters:
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.- Returns:
- * \ref NPP_SUCCESS * \ref NPP_BAD_ARGUMENT_ERROR when the scan doesn't represent valid JPEG scan * \ref NPP_NULL_POINTER_ERROR when one of necessary arguments of buffers is NULL * \ref NPP_ERROR when encountered CUDA error NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
- See Also:
nppiJpegDecodeJobMemorySize(org.bytedeco.cuda.nppicom.NppiJpegDecodeJob,org.bytedeco.javacpp.SizeTPointer),nppiJpegDecodeJobCreateMemzero(org.bytedeco.cuda.nppicom.NppiJpegDecodeJob),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)
-
nppiJpegDecodeJob
@Cast("NppStatus") public static int nppiJpegDecodeJob(@Const NppiJpegDecodeJob pJob, @Const NppiJpegDecodeJobMemory pMemory)
-
nppiJpegDecodeJobCreateMemzero
@Cast("NppStatus") public static int nppiJpegDecodeJobCreateMemzero(NppiJpegDecodeJob pJob)
Initializes a job that has to be called at the beginning of decoding.- Parameters:
pJob- :pJob.pFrameshould point to valid frame description.*pJob.pScanwill 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.
-
nppiJpegDecodeJobCreateFinalize
@Cast("NppStatus") public 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.- Parameters:
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.
-
nppiJpegDecodeGetScanDeadzoneSize
@Cast("size_t") public static long nppiJpegDecodeGetScanDeadzoneSize()
This function returns how much additional memory has to be available after the end of compressed scan data. The following buffers:pCpuScanandpGpuScanin \ref NppiJpegDecodeJobMemory should have size at leastpScan->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.
-
nppiJpegDecodeGetDCTBufferSize
@Cast("size_t") public static long nppiJpegDecodeGetDCTBufferSize(@ByVal NppiSize oBlocks)
Returns how much memory has to be allocated for DCT coefficient buffers declared in \ref NppiJpegDecodeJobMemory. The returned value may be bigger than simplynumber of blocks * 64 * sizeof (short), because decoder may use slightly bigger temporary representation of data.- Parameters:
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.
-
nppiDCTInv4x4_WebP_16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
Inverse DCT in WebP decoding. Input is the bitstream that contains the coefficients of 16x16 blocks. These coefficients are based on a 4x4 sub-block unit, e.g., Coeffs in 0th 4x4 block, 1st 4x4 block 2nd 4x4 block, etc. Output is the coefficients after inverse DCT transform. The output is put in an image format (i.e. raster scan order), different from the input order.- Parameters:
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.- Returns:
- Error codes: - ::NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height. - ::NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI. - ::NPP_NULL_POINTER_ERROR If the destination pointer is 0. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
-
nppiDCTInv4x4_WebP_16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTInv4x4_WebP_16s_C1R_Ctx
@Cast("NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R_Ctx(@Cast("const Npp16s*") short[] pSrc, int nSrcStep, @Cast("Npp16s*") short[] pDst, int nDstStep, @ByVal NppiSize oSizeROI, @ByVal NppStreamContext nppStreamCtx)
-
nppiDCTInv4x4_WebP_16s_C1R
@Cast("NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R(@Cast("const Npp16s*") ShortPointer pSrc, int nSrcStep, @Cast("Npp16s*") ShortPointer pDst, int nDstStep, @ByVal NppiSize oSizeROI)
-
nppiDCTInv4x4_WebP_16s_C1R
@Cast("NppStatus") public static int nppiDCTInv4x4_WebP_16s_C1R(@Cast("const Npp16s*") ShortBuffer pSrc, int nSrcStep, @Cast("Npp16s*") ShortBuffer pDst, int nDstStep, @ByVal NppiSize oSizeROI)
-
-