Class EXRChannelInfo

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

    public class EXRChannelInfo
    extends Struct
    implements NativeResource


     struct EXRChannelInfo {
         char name[256];
         int pixel_type;
         int x_sampling;
         int y_sampling;
         unsigned char p_linear;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • EXRChannelInfo

        public EXRChannelInfo​(java.nio.ByteBuffer container)
        Creates a EXRChannelInfo 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
      • name

        public java.nio.ByteBuffer name()
        Returns a ByteBuffer view of the name field.
      • nameString

        public java.lang.String nameString()
        Decodes the null-terminated string stored in the name field.
      • pixel_type

        public int pixel_type()
        Returns the value of the pixel_type field.
      • x_sampling

        public int x_sampling()
        Returns the value of the x_sampling field.
      • y_sampling

        public int y_sampling()
        Returns the value of the y_sampling field.
      • p_linear

        public byte p_linear()
        Returns the value of the p_linear field.
      • name

        public EXRChannelInfo name​(java.nio.ByteBuffer value)
        Copies the specified encoded string to the name field.
      • pixel_type

        public EXRChannelInfo pixel_type​(int value)
        Sets the specified value to the pixel_type field.
      • x_sampling

        public EXRChannelInfo x_sampling​(int value)
        Sets the specified value to the x_sampling field.
      • y_sampling

        public EXRChannelInfo y_sampling​(int value)
        Sets the specified value to the y_sampling field.
      • p_linear

        public EXRChannelInfo p_linear​(byte value)
        Sets the specified value to the p_linear field.
      • set

        public EXRChannelInfo set​(java.nio.ByteBuffer name,
                                  int pixel_type,
                                  int x_sampling,
                                  int y_sampling,
                                  byte p_linear)
        Initializes this struct with the specified values.
      • set

        public EXRChannelInfo set​(EXRChannelInfo src)
        Copies the specified struct data to this struct.
        src - the source struct
        this struct
      • createSafe

        public static EXRChannelInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

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

        public static EXRChannelInfo.Buffer createSafe​(long address,
                                                       int capacity)
        Like create, but returns null if address is NULL.
      • nname

        public static java.nio.ByteBuffer nname​(long struct)
        Unsafe version of name().
      • nnameString

        public static java.lang.String nnameString​(long struct)
        Unsafe version of nameString().
      • npixel_type

        public static int npixel_type​(long struct)
        Unsafe version of pixel_type().
      • nx_sampling

        public static int nx_sampling​(long struct)
        Unsafe version of x_sampling().
      • ny_sampling

        public static int ny_sampling​(long struct)
        Unsafe version of y_sampling().
      • np_linear

        public static byte np_linear​(long struct)
        Unsafe version of p_linear().
      • nname

        public static void nname​(long struct,
                                 java.nio.ByteBuffer value)
        Unsafe version of name.
      • npixel_type

        public static void npixel_type​(long struct,
                                       int value)
        Unsafe version of pixel_type.
      • nx_sampling

        public static void nx_sampling​(long struct,
                                       int value)
        Unsafe version of x_sampling.
      • ny_sampling

        public static void ny_sampling​(long struct,
                                       int value)
        Unsafe version of y_sampling.
      • np_linear

        public static void np_linear​(long struct,
                                     byte value)
        Unsafe version of p_linear.