Class NppiJpegFrameDescr

  • All Implemented Interfaces:
    AutoCloseable

    @Properties(inherit=nppicom.class)
    public class NppiJpegFrameDescr
    extends Pointer
    JPEG frame descriptor. Can hold from 1 to 4 components. NOTE THAT ALL OF THESE FUNCTIONS WILL BE DEPRECATED IN THE NEXT RELEASE OF NPP, USE NVJPEG INSTEAD.
    • Constructor Detail

      • NppiJpegFrameDescr

        public NppiJpegFrameDescr()
        Default native constructor.
      • NppiJpegFrameDescr

        public NppiJpegFrameDescr​(long size)
        Native array allocator. Access with Pointer.position(long).
    • Method Detail

      • nComponents

        @Cast("Npp8u")
        public byte nComponents()
        Number of components in frame
      • oSizeInBlocks

        @ByRef
        public NppiSize oSizeInBlocks()
        Size of component with 1x1 subsampling (usually luma) in DCT blocks.
      • aComponentSubsampling

        @ByRef
        public NppiSize aComponentSubsampling​(int i)
        Subsampling factors of component, as described in frame header
      • apComponentBuffer

        @Cast("Npp16s*")
        public ShortPointer apComponentBuffer​(int i)
        Buffer containing DCT coefficients. Use \ref nppiJpegDecodeGetDCTBufferSize to determine size of this buffer. After decoding, coefficients will be stored in zig-zag order, block by block. So the c-th coeffient of block (x, y) will be stored at buffer[64 * (y * interleavedComponentWidthInBlocks + x) + c].