Class EXRVersion

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

    public class EXRVersion
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • version

        public int version()
        this must be 2
      • tiled

        public boolean tiled()
        tile format image; not zero for only a single-part "normal" tiled file (according to spec.)
      • long_name

        public boolean long_name()
        long name attribute
      • non_image

        public boolean non_image()
        deep image(EXR 2.0); for a multi-part file, indicates that at least one part is of type deep* (according to spec.)
      • multipart

        public boolean multipart()
        multi-part(EXR 2.0)
      • 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.
      • calloc

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

        public static EXRVersion create()
        Returns a new EXRVersion instance allocated with BufferUtils.
      • 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​(int capacity)
        Returns a new EXRVersion.Buffer instance allocated with BufferUtils.
        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.
      • mallocStack

        @Deprecated
        public static EXRVersion mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static EXRVersion callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • mallocStack

        @Deprecated
        public static EXRVersion.Buffer mallocStack​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
      • callocStack

        @Deprecated
        public static EXRVersion.Buffer callocStack​(int capacity,
                                                    org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
      • malloc

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

        public static EXRVersion calloc​(org.lwjgl.system.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
      • malloc

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

        public static EXRVersion.Buffer calloc​(int capacity,
                                               org.lwjgl.system.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.