Package org.lwjgl.stb

Class STBIR_RESIZE.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<STBIR_RESIZE>, NativeResource, Pointer
Enclosing class:
STBIR_RESIZE

public static class STBIR_RESIZE.Buffer extends StructBuffer<STBIR_RESIZE,STBIR_RESIZE.Buffer> implements NativeResource
An array of STBIR_RESIZE structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new STBIR_RESIZE.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 STBIR_RESIZE.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 Details

    • user_data

      public long user_data()
      Returns:
      the value of the user_data field.
    • input_pixels

      public ByteBuffer input_pixels(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the input_pixels field.
    • input_w

      public int input_w()
      Returns:
      the value of the input_w field.
    • input_h

      public int input_h()
      Returns:
      the value of the input_h field.
    • input_s0

      public double input_s0()
      Returns:
      the value of the input_s0 field.
    • input_t0

      public double input_t0()
      Returns:
      the value of the input_t0 field.
    • input_s1

      public double input_s1()
      Returns:
      the value of the input_s1 field.
    • input_t1

      public double input_t1()
      Returns:
      the value of the input_t1 field.
    • input_cb

      public @Nullable PointerBuffer input_cb(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the input_cb field.
    • output_pixels

      public @Nullable ByteBuffer output_pixels(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the output_pixels field.
    • output_w

      public int output_w()
      Returns:
      the value of the output_w field.
    • output_h

      public int output_h()
      Returns:
      the value of the output_h field.
    • output_subx

      public int output_subx()
      Returns:
      the value of the output_subx field.
    • output_suby

      public int output_suby()
      Returns:
      the value of the output_suby field.
    • output_subw

      public int output_subw()
      Returns:
      the value of the output_subw field.
    • output_subh

      public int output_subh()
      Returns:
      the value of the output_subh field.
    • output_cb

      public @Nullable PointerBuffer output_cb(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the output_cb field.
    • input_stride_in_bytes

      public int input_stride_in_bytes()
      Returns:
      the value of the input_stride_in_bytes field.
    • output_stride_in_bytes

      public int output_stride_in_bytes()
      Returns:
      the value of the output_stride_in_bytes field.
    • splits

      public int splits()
      Returns:
      the value of the splits field.
    • fast_alpha

      public boolean fast_alpha()
      Returns:
      the value of the fast_alpha field.
    • needs_rebuild

      public boolean needs_rebuild()
      Returns:
      the value of the needs_rebuild field.
    • called_alloc

      public boolean called_alloc()
      Returns:
      the value of the called_alloc field.
    • input_pixel_layout_public

      public int input_pixel_layout_public()
      Returns:
      the value of the input_pixel_layout_public field.
    • output_pixel_layout_public

      public int output_pixel_layout_public()
      Returns:
      the value of the output_pixel_layout_public field.
    • input_data_type

      public int input_data_type()
      Returns:
      the value of the input_data_type field.
    • output_data_type

      public int output_data_type()
      Returns:
      the value of the output_data_type field.
    • horizontal_filter

      public int horizontal_filter()
      Returns:
      the value of the horizontal_filter field.
    • vertical_filter

      public int vertical_filter()
      Returns:
      the value of the vertical_filter field.
    • horizontal_edge

      public int horizontal_edge()
      Returns:
      the value of the horizontal_edge field.
    • vertical_edge

      public int vertical_edge()
      Returns:
      the value of the vertical_edge field.
    • horizontal_filter_kernel

      public @Nullable PointerBuffer horizontal_filter_kernel(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the horizontal_filter_kernel field.
    • horizontal_filter_support

      public @Nullable PointerBuffer horizontal_filter_support(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the horizontal_filter_support field.
    • vertical_filter_kernel

      public @Nullable PointerBuffer vertical_filter_kernel(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the vertical_filter_kernel field.
    • vertical_filter_support

      public @Nullable PointerBuffer vertical_filter_support(int capacity)
      Returns:
      a PointerBuffer view of the data pointed to by the vertical_filter_support field.
    • samplers

      public long samplers()
      Returns:
      the value of the samplers field.
    • user_data

      public STBIR_RESIZE.Buffer user_data(long value)
      Sets the specified value to the user_data field.
    • input_pixels

      public STBIR_RESIZE.Buffer input_pixels(ByteBuffer value)
      Sets the address of the specified ByteBuffer to the input_pixels field.
    • input_w

      public STBIR_RESIZE.Buffer input_w(int value)
      Sets the specified value to the input_w field.
    • input_h

      public STBIR_RESIZE.Buffer input_h(int value)
      Sets the specified value to the input_h field.
    • input_s0

      public STBIR_RESIZE.Buffer input_s0(double value)
      Sets the specified value to the input_s0 field.
    • input_t0

      public STBIR_RESIZE.Buffer input_t0(double value)
      Sets the specified value to the input_t0 field.
    • input_s1

      public STBIR_RESIZE.Buffer input_s1(double value)
      Sets the specified value to the input_s1 field.
    • input_t1

      public STBIR_RESIZE.Buffer input_t1(double value)
      Sets the specified value to the input_t1 field.
    • input_cb

      public STBIR_RESIZE.Buffer input_cb(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the input_cb field.
    • output_pixels

      public STBIR_RESIZE.Buffer output_pixels(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the output_pixels field.
    • output_w

      public STBIR_RESIZE.Buffer output_w(int value)
      Sets the specified value to the output_w field.
    • output_h

      public STBIR_RESIZE.Buffer output_h(int value)
      Sets the specified value to the output_h field.
    • output_subx

      public STBIR_RESIZE.Buffer output_subx(int value)
      Sets the specified value to the output_subx field.
    • output_suby

      public STBIR_RESIZE.Buffer output_suby(int value)
      Sets the specified value to the output_suby field.
    • output_subw

      public STBIR_RESIZE.Buffer output_subw(int value)
      Sets the specified value to the output_subw field.
    • output_subh

      public STBIR_RESIZE.Buffer output_subh(int value)
      Sets the specified value to the output_subh field.
    • output_cb

      public STBIR_RESIZE.Buffer output_cb(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the output_cb field.
    • input_stride_in_bytes

      public STBIR_RESIZE.Buffer input_stride_in_bytes(int value)
      Sets the specified value to the input_stride_in_bytes field.
    • output_stride_in_bytes

      public STBIR_RESIZE.Buffer output_stride_in_bytes(int value)
      Sets the specified value to the output_stride_in_bytes field.
    • splits

      public STBIR_RESIZE.Buffer splits(int value)
      Sets the specified value to the splits field.
    • fast_alpha

      public STBIR_RESIZE.Buffer fast_alpha(boolean value)
      Sets the specified value to the fast_alpha field.
    • needs_rebuild

      public STBIR_RESIZE.Buffer needs_rebuild(boolean value)
      Sets the specified value to the needs_rebuild field.
    • called_alloc

      public STBIR_RESIZE.Buffer called_alloc(boolean value)
      Sets the specified value to the called_alloc field.
    • input_pixel_layout_public

      public STBIR_RESIZE.Buffer input_pixel_layout_public(int value)
      Sets the specified value to the input_pixel_layout_public field.
    • output_pixel_layout_public

      public STBIR_RESIZE.Buffer output_pixel_layout_public(int value)
      Sets the specified value to the output_pixel_layout_public field.
    • input_data_type

      public STBIR_RESIZE.Buffer input_data_type(int value)
      Sets the specified value to the input_data_type field.
    • output_data_type

      public STBIR_RESIZE.Buffer output_data_type(int value)
      Sets the specified value to the output_data_type field.
    • horizontal_filter

      public STBIR_RESIZE.Buffer horizontal_filter(int value)
      Sets the specified value to the horizontal_filter field.
    • vertical_filter

      public STBIR_RESIZE.Buffer vertical_filter(int value)
      Sets the specified value to the vertical_filter field.
    • horizontal_edge

      public STBIR_RESIZE.Buffer horizontal_edge(int value)
      Sets the specified value to the horizontal_edge field.
    • vertical_edge

      public STBIR_RESIZE.Buffer vertical_edge(int value)
      Sets the specified value to the vertical_edge field.
    • horizontal_filter_kernel

      public STBIR_RESIZE.Buffer horizontal_filter_kernel(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the horizontal_filter_kernel field.
    • horizontal_filter_support

      public STBIR_RESIZE.Buffer horizontal_filter_support(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the horizontal_filter_support field.
    • vertical_filter_kernel

      public STBIR_RESIZE.Buffer vertical_filter_kernel(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the vertical_filter_kernel field.
    • vertical_filter_support

      public STBIR_RESIZE.Buffer vertical_filter_support(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the vertical_filter_support field.
    • samplers

      public STBIR_RESIZE.Buffer samplers(long value)
      Sets the specified value to the samplers field.