Class ExrChunkInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class ExrChunkInfo extends Struct<ExrChunkInfo> implements NativeResource
struct ExrChunkInfo {
    uint64_t file_offset;
    uint32_t compressed_size;
    uint32_t uncompressed_size;
    int32_t y_start;
    int32_t tile_x;
    int32_t tile_y;
    int32_t level_x;
    int32_t level_y;
    uint32_t chunk_type;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FILE_OFFSET

      public static final int FILE_OFFSET
      The struct member offsets.
    • COMPRESSED_SIZE

      public static final int COMPRESSED_SIZE
      The struct member offsets.
    • UNCOMPRESSED_SIZE

      public static final int UNCOMPRESSED_SIZE
      The struct member offsets.
    • Y_START

      public static final int Y_START
      The struct member offsets.
    • TILE_X

      public static final int TILE_X
      The struct member offsets.
    • TILE_Y

      public static final int TILE_Y
      The struct member offsets.
    • LEVEL_X

      public static final int LEVEL_X
      The struct member offsets.
    • LEVEL_Y

      public static final int LEVEL_Y
      The struct member offsets.
    • CHUNK_TYPE

      public static final int CHUNK_TYPE
      The struct member offsets.
  • Constructor Details

    • ExrChunkInfo

      public ExrChunkInfo(ByteBuffer container)
      Creates a ExrChunkInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<ExrChunkInfo>
    • file_offset

      @NativeType("uint64_t") public long file_offset()
      Returns:
      the value of the file_offset field.
    • compressed_size

      @NativeType("uint32_t") public int compressed_size()
      Returns:
      the value of the compressed_size field.
    • uncompressed_size

      @NativeType("uint32_t") public int uncompressed_size()
      Returns:
      the value of the uncompressed_size field.
    • y_start

      @NativeType("int32_t") public int y_start()
      Returns:
      the value of the y_start field.
    • tile_x

      @NativeType("int32_t") public int tile_x()
      Returns:
      the value of the tile_x field.
    • tile_y

      @NativeType("int32_t") public int tile_y()
      Returns:
      the value of the tile_y field.
    • level_x

      @NativeType("int32_t") public int level_x()
      Returns:
      the value of the level_x field.
    • level_y

      @NativeType("int32_t") public int level_y()
      Returns:
      the value of the level_y field.
    • chunk_type

      @NativeType("uint32_t") public int chunk_type()
      Returns:
      the value of the chunk_type field.
    • file_offset

      public ExrChunkInfo file_offset(@NativeType("uint64_t") long value)
      Sets the specified value to the file_offset field.
    • compressed_size

      public ExrChunkInfo compressed_size(@NativeType("uint32_t") int value)
      Sets the specified value to the compressed_size field.
    • uncompressed_size

      public ExrChunkInfo uncompressed_size(@NativeType("uint32_t") int value)
      Sets the specified value to the uncompressed_size field.
    • y_start

      public ExrChunkInfo y_start(@NativeType("int32_t") int value)
      Sets the specified value to the y_start field.
    • tile_x

      public ExrChunkInfo tile_x(@NativeType("int32_t") int value)
      Sets the specified value to the tile_x field.
    • tile_y

      public ExrChunkInfo tile_y(@NativeType("int32_t") int value)
      Sets the specified value to the tile_y field.
    • level_x

      public ExrChunkInfo level_x(@NativeType("int32_t") int value)
      Sets the specified value to the level_x field.
    • level_y

      public ExrChunkInfo level_y(@NativeType("int32_t") int value)
      Sets the specified value to the level_y field.
    • chunk_type

      public ExrChunkInfo chunk_type(@NativeType("uint32_t") int value)
      Sets the specified value to the chunk_type field.
    • set

      public ExrChunkInfo set(long file_offset, int compressed_size, int uncompressed_size, int y_start, int tile_x, int tile_y, int level_x, int level_y, int chunk_type)
      Initializes this struct with the specified values.
    • set

      public ExrChunkInfo set(ExrChunkInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static ExrChunkInfo malloc()
      Returns a new ExrChunkInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static ExrChunkInfo calloc()
      Returns a new ExrChunkInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static ExrChunkInfo create()
      Returns a new ExrChunkInfo instance allocated with BufferUtils.
    • create

      public static ExrChunkInfo create(long address)
      Returns a new ExrChunkInfo instance for the specified memory address.
    • createSafe

      public static @Nullable ExrChunkInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrChunkInfo.Buffer malloc(int capacity)
      Returns a new ExrChunkInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static ExrChunkInfo.Buffer calloc(int capacity)
      Returns a new ExrChunkInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrChunkInfo.Buffer create(int capacity)
      Returns a new ExrChunkInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static ExrChunkInfo.Buffer create(long address, int capacity)
      Create a ExrChunkInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable ExrChunkInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static ExrChunkInfo malloc(MemoryStack stack)
      Returns a new ExrChunkInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static ExrChunkInfo calloc(MemoryStack stack)
      Returns a new ExrChunkInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static ExrChunkInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new ExrChunkInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static ExrChunkInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new ExrChunkInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nfile_offset

      public static long nfile_offset(long struct)
      Unsafe version of file_offset().
    • ncompressed_size

      public static int ncompressed_size(long struct)
      Unsafe version of compressed_size().
    • nuncompressed_size

      public static int nuncompressed_size(long struct)
      Unsafe version of uncompressed_size().
    • ny_start

      public static int ny_start(long struct)
      Unsafe version of y_start().
    • ntile_x

      public static int ntile_x(long struct)
      Unsafe version of tile_x().
    • ntile_y

      public static int ntile_y(long struct)
      Unsafe version of tile_y().
    • nlevel_x

      public static int nlevel_x(long struct)
      Unsafe version of level_x().
    • nlevel_y

      public static int nlevel_y(long struct)
      Unsafe version of level_y().
    • nchunk_type

      public static int nchunk_type(long struct)
      Unsafe version of chunk_type().
    • nfile_offset

      public static void nfile_offset(long struct, long value)
      Unsafe version of file_offset.
    • ncompressed_size

      public static void ncompressed_size(long struct, int value)
      Unsafe version of compressed_size.
    • nuncompressed_size

      public static void nuncompressed_size(long struct, int value)
      Unsafe version of uncompressed_size.
    • ny_start

      public static void ny_start(long struct, int value)
      Unsafe version of y_start.
    • ntile_x

      public static void ntile_x(long struct, int value)
      Unsafe version of tile_x.
    • ntile_y

      public static void ntile_y(long struct, int value)
      Unsafe version of tile_y.
    • nlevel_x

      public static void nlevel_x(long struct, int value)
      Unsafe version of level_x.
    • nlevel_y

      public static void nlevel_y(long struct, int value)
      Unsafe version of level_y.
    • nchunk_type

      public static void nchunk_type(long struct, int value)
      Unsafe version of chunk_type.