Class nppicom

    • 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
    • Constructor Detail

      • nppicom

        public nppicom()
    • 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*")
                                                                  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*")
                                                              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*")
                                                                  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*")
                                                              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

        @Cast("NppStatus")
        public static int nppiDCTInitAlloc​(@Cast("NppiDCTState**")
                                           PointerPointer 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*")
                                                                      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*")
                                                                  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*")
                                                                      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*")
                                                                  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*")
                                                                        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*")
                                                                    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*")
                                                                        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*")
                                                                    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*")
                                                                  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_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.
      • 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 decoder
        nppStreamCtx - \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

        @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 encoder
        nppStreamCtx - \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

        @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*")
                                                              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_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.
      • 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

        @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.
      • 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 job
        aSize - [out] will be filled with \ref NPPI_JPEG_DECODE_N_BUFFERS sizes, aSize[i] telling how much memory has to be allocated for apCpuBuffer[i] and apGpuBuffer[i].
        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
      • 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.pFrame should point to valid frame description. *pJob.pScan will be overwritten. If the caller had manually zeroed the memory for DCT buffers, (note: whole \ref nppiJpegDecodeGetDCTBufferSize has to be zeroed). this job doesn't have to be executed. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
      • 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: pCpuScan and pGpuScan in \ref NppiJpegDecodeJobMemory should have size at least pScan->length + nppiJpegDecodeGetScanDeadzoneSize(). The additional memory is needed because the decoder may perform some speculative reads after the end of compressed scan data. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
      • 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 simply number 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*")
                                                         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*")
                                                     short[] pSrc,
                                                     int nSrcStep,
                                                     @Cast("Npp16s*")
                                                     short[] pDst,
                                                     int nDstStep,
                                                     @ByVal
                                                     NppiSize oSizeROI)