Class DeepImage.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new DeepImage.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by DeepImage.SIZEOF, and its mark will be undefined.

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

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • channel_names

        public PointerBuffer channel_names()
        Returns a PointerBuffer view of the data pointed to by the channel_names field.
      • offset_table

        public PointerBuffer offset_table​(int capacity)
        Returns a PointerBuffer view of the data pointed to by the offset_table field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • num_channels

        public int num_channels()
        Returns the value of the num_channels field.
      • width

        public int width()
        Returns the value of the width field.
      • height

        public int height()
        Returns the value of the height field.
      • num_channels

        public DeepImage.Buffer num_channels​(int value)
        Sets the specified value to the num_channels field.
      • width

        public DeepImage.Buffer width​(int value)
        Sets the specified value to the width field.
      • height

        public DeepImage.Buffer height​(int value)
        Sets the specified value to the height field.