Class EXRVersion

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class EXRVersion
    extends Struct
    implements NativeResource

    Member documentation

    • version – this must be 2
    • tiled – tile format image
    • long_name – long name attribute
    • non_image – deep image(EXR 2.0)
    • multipart – multi-part(EXR 2.0)

    Layout

    
     struct EXRVersion {
         int version;
         int tiled;
         int long_name;
         int non_image;
         int multipart;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • VERSION, TILED, LONG_NAME, NON_IMAGE, MULTIPART

        The struct member offsets.
    • Constructor Detail

      • EXRVersion

        public EXRVersion​(java.nio.ByteBuffer container)
        Creates a EXRVersion 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • version

        public int version()
        Returns the value of the version field.
      • tiled

        public boolean tiled()
        Returns the value of the tiled field.
      • long_name

        public boolean long_name()
        Returns the value of the long_name field.
      • non_image

        public boolean non_image()
        Returns the value of the non_image field.
      • multipart

        public boolean multipart()
        Returns the value of the multipart field.
      • version

        public EXRVersion version​(int value)
        Sets the specified value to the version field.
      • tiled

        public EXRVersion tiled​(boolean value)
        Sets the specified value to the tiled field.
      • long_name

        public EXRVersion long_name​(boolean value)
        Sets the specified value to the long_name field.
      • non_image

        public EXRVersion non_image​(boolean value)
        Sets the specified value to the non_image field.
      • multipart

        public EXRVersion multipart​(boolean value)
        Sets the specified value to the multipart field.
      • set

        public EXRVersion set​(int version,
                              boolean tiled,
                              boolean long_name,
                              boolean non_image,
                              boolean multipart)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

        public static EXRVersion callocStack()
        Returns a new EXRVersion instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • callocStack

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

        public static EXRVersion.Buffer callocStack​(int capacity)
        Returns a new EXRVersion.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

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

        public static int nversion​(long struct)
        Unsafe version of version().
      • ntiled

        public static int ntiled​(long struct)
        Unsafe version of tiled().
      • nlong_name

        public static int nlong_name​(long struct)
        Unsafe version of long_name().
      • nnon_image

        public static int nnon_image​(long struct)
        Unsafe version of non_image().
      • nmultipart

        public static int nmultipart​(long struct)
        Unsafe version of multipart().
      • nversion

        public static void nversion​(long struct,
                                    int value)
        Unsafe version of version.
      • ntiled

        public static void ntiled​(long struct,
                                  int value)
        Unsafe version of tiled.
      • nlong_name

        public static void nlong_name​(long struct,
                                      int value)
        Unsafe version of long_name.
      • nnon_image

        public static void nnon_image​(long struct,
                                      int value)
        Unsafe version of non_image.
      • nmultipart

        public static void nmultipart​(long struct,
                                      int value)
        Unsafe version of multipart.