Class StdVideoAV1FilmGrain.Buffer

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

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

    • Buffer

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

    • flags

      public StdVideoAV1FilmGrainFlags flags()
      Returns:
      a StdVideoAV1FilmGrainFlags view of the flags field.
    • grain_scaling_minus_8

      public byte grain_scaling_minus_8()
      Returns:
      the value of the grain_scaling_minus_8 field.
    • ar_coeff_lag

      public byte ar_coeff_lag()
      Returns:
      the value of the ar_coeff_lag field.
    • ar_coeff_shift_minus_6

      public byte ar_coeff_shift_minus_6()
      Returns:
      the value of the ar_coeff_shift_minus_6 field.
    • grain_scale_shift

      public byte grain_scale_shift()
      Returns:
      the value of the grain_scale_shift field.
    • grain_seed

      public short grain_seed()
      Returns:
      the value of the grain_seed field.
    • film_grain_params_ref_idx

      public byte film_grain_params_ref_idx()
      Returns:
      the value of the film_grain_params_ref_idx field.
    • num_y_points

      public byte num_y_points()
      Returns:
      the value of the num_y_points field.
    • point_y_value

      public ByteBuffer point_y_value()
      Returns:
      a ByteBuffer view of the point_y_value field.
    • point_y_value

      public byte point_y_value(int index)
      Returns:
      the value at the specified index of the point_y_value field.
    • point_y_scaling

      public ByteBuffer point_y_scaling()
      Returns:
      a ByteBuffer view of the point_y_scaling field.
    • point_y_scaling

      public byte point_y_scaling(int index)
      Returns:
      the value at the specified index of the point_y_scaling field.
    • num_cb_points

      public byte num_cb_points()
      Returns:
      the value of the num_cb_points field.
    • point_cb_value

      public ByteBuffer point_cb_value()
      Returns:
      a ByteBuffer view of the point_cb_value field.
    • point_cb_value

      public byte point_cb_value(int index)
      Returns:
      the value at the specified index of the point_cb_value field.
    • point_cb_scaling

      public ByteBuffer point_cb_scaling()
      Returns:
      a ByteBuffer view of the point_cb_scaling field.
    • point_cb_scaling

      public byte point_cb_scaling(int index)
      Returns:
      the value at the specified index of the point_cb_scaling field.
    • num_cr_points

      public byte num_cr_points()
      Returns:
      the value of the num_cr_points field.
    • point_cr_value

      public ByteBuffer point_cr_value()
      Returns:
      a ByteBuffer view of the point_cr_value field.
    • point_cr_value

      public byte point_cr_value(int index)
      Returns:
      the value at the specified index of the point_cr_value field.
    • point_cr_scaling

      public ByteBuffer point_cr_scaling()
      Returns:
      a ByteBuffer view of the point_cr_scaling field.
    • point_cr_scaling

      public byte point_cr_scaling(int index)
      Returns:
      the value at the specified index of the point_cr_scaling field.
    • ar_coeffs_y_plus_128

      public ByteBuffer ar_coeffs_y_plus_128()
      Returns:
      a ByteBuffer view of the ar_coeffs_y_plus_128 field.
    • ar_coeffs_y_plus_128

      public byte ar_coeffs_y_plus_128(int index)
      Returns:
      the value at the specified index of the ar_coeffs_y_plus_128 field.
    • ar_coeffs_cb_plus_128

      public ByteBuffer ar_coeffs_cb_plus_128()
      Returns:
      a ByteBuffer view of the ar_coeffs_cb_plus_128 field.
    • ar_coeffs_cb_plus_128

      public byte ar_coeffs_cb_plus_128(int index)
      Returns:
      the value at the specified index of the ar_coeffs_cb_plus_128 field.
    • ar_coeffs_cr_plus_128

      public ByteBuffer ar_coeffs_cr_plus_128()
      Returns:
      a ByteBuffer view of the ar_coeffs_cr_plus_128 field.
    • ar_coeffs_cr_plus_128

      public byte ar_coeffs_cr_plus_128(int index)
      Returns:
      the value at the specified index of the ar_coeffs_cr_plus_128 field.
    • cb_mult

      public byte cb_mult()
      Returns:
      the value of the cb_mult field.
    • cb_luma_mult

      public byte cb_luma_mult()
      Returns:
      the value of the cb_luma_mult field.
    • cb_offset

      public short cb_offset()
      Returns:
      the value of the cb_offset field.
    • cr_mult

      public byte cr_mult()
      Returns:
      the value of the cr_mult field.
    • cr_luma_mult

      public byte cr_luma_mult()
      Returns:
      the value of the cr_luma_mult field.
    • cr_offset

      public short cr_offset()
      Returns:
      the value of the cr_offset field.
    • flags

      Copies the specified StdVideoAV1FilmGrainFlags to the flags field.
    • flags

      Passes the flags field to the specified Consumer.
    • grain_scaling_minus_8

      public StdVideoAV1FilmGrain.Buffer grain_scaling_minus_8(byte value)
      Sets the specified value to the grain_scaling_minus_8 field.
    • ar_coeff_lag

      public StdVideoAV1FilmGrain.Buffer ar_coeff_lag(byte value)
      Sets the specified value to the ar_coeff_lag field.
    • ar_coeff_shift_minus_6

      public StdVideoAV1FilmGrain.Buffer ar_coeff_shift_minus_6(byte value)
      Sets the specified value to the ar_coeff_shift_minus_6 field.
    • grain_scale_shift

      public StdVideoAV1FilmGrain.Buffer grain_scale_shift(byte value)
      Sets the specified value to the grain_scale_shift field.
    • grain_seed

      public StdVideoAV1FilmGrain.Buffer grain_seed(short value)
      Sets the specified value to the grain_seed field.
    • film_grain_params_ref_idx

      public StdVideoAV1FilmGrain.Buffer film_grain_params_ref_idx(byte value)
      Sets the specified value to the film_grain_params_ref_idx field.
    • num_y_points

      public StdVideoAV1FilmGrain.Buffer num_y_points(byte value)
      Sets the specified value to the num_y_points field.
    • point_y_value

      public StdVideoAV1FilmGrain.Buffer point_y_value(ByteBuffer value)
      Copies the specified ByteBuffer to the point_y_value field.
    • point_y_value

      public StdVideoAV1FilmGrain.Buffer point_y_value(int index, byte value)
      Sets the specified value at the specified index of the point_y_value field.
    • point_y_scaling

      public StdVideoAV1FilmGrain.Buffer point_y_scaling(ByteBuffer value)
      Copies the specified ByteBuffer to the point_y_scaling field.
    • point_y_scaling

      public StdVideoAV1FilmGrain.Buffer point_y_scaling(int index, byte value)
      Sets the specified value at the specified index of the point_y_scaling field.
    • num_cb_points

      public StdVideoAV1FilmGrain.Buffer num_cb_points(byte value)
      Sets the specified value to the num_cb_points field.
    • point_cb_value

      public StdVideoAV1FilmGrain.Buffer point_cb_value(ByteBuffer value)
      Copies the specified ByteBuffer to the point_cb_value field.
    • point_cb_value

      public StdVideoAV1FilmGrain.Buffer point_cb_value(int index, byte value)
      Sets the specified value at the specified index of the point_cb_value field.
    • point_cb_scaling

      public StdVideoAV1FilmGrain.Buffer point_cb_scaling(ByteBuffer value)
      Copies the specified ByteBuffer to the point_cb_scaling field.
    • point_cb_scaling

      public StdVideoAV1FilmGrain.Buffer point_cb_scaling(int index, byte value)
      Sets the specified value at the specified index of the point_cb_scaling field.
    • num_cr_points

      public StdVideoAV1FilmGrain.Buffer num_cr_points(byte value)
      Sets the specified value to the num_cr_points field.
    • point_cr_value

      public StdVideoAV1FilmGrain.Buffer point_cr_value(ByteBuffer value)
      Copies the specified ByteBuffer to the point_cr_value field.
    • point_cr_value

      public StdVideoAV1FilmGrain.Buffer point_cr_value(int index, byte value)
      Sets the specified value at the specified index of the point_cr_value field.
    • point_cr_scaling

      public StdVideoAV1FilmGrain.Buffer point_cr_scaling(ByteBuffer value)
      Copies the specified ByteBuffer to the point_cr_scaling field.
    • point_cr_scaling

      public StdVideoAV1FilmGrain.Buffer point_cr_scaling(int index, byte value)
      Sets the specified value at the specified index of the point_cr_scaling field.
    • ar_coeffs_y_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_y_plus_128(ByteBuffer value)
      Copies the specified ByteBuffer to the ar_coeffs_y_plus_128 field.
    • ar_coeffs_y_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_y_plus_128(int index, byte value)
      Sets the specified value at the specified index of the ar_coeffs_y_plus_128 field.
    • ar_coeffs_cb_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_cb_plus_128(ByteBuffer value)
      Copies the specified ByteBuffer to the ar_coeffs_cb_plus_128 field.
    • ar_coeffs_cb_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_cb_plus_128(int index, byte value)
      Sets the specified value at the specified index of the ar_coeffs_cb_plus_128 field.
    • ar_coeffs_cr_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_cr_plus_128(ByteBuffer value)
      Copies the specified ByteBuffer to the ar_coeffs_cr_plus_128 field.
    • ar_coeffs_cr_plus_128

      public StdVideoAV1FilmGrain.Buffer ar_coeffs_cr_plus_128(int index, byte value)
      Sets the specified value at the specified index of the ar_coeffs_cr_plus_128 field.
    • cb_mult

      public StdVideoAV1FilmGrain.Buffer cb_mult(byte value)
      Sets the specified value to the cb_mult field.
    • cb_luma_mult

      public StdVideoAV1FilmGrain.Buffer cb_luma_mult(byte value)
      Sets the specified value to the cb_luma_mult field.
    • cb_offset

      public StdVideoAV1FilmGrain.Buffer cb_offset(short value)
      Sets the specified value to the cb_offset field.
    • cr_mult

      public StdVideoAV1FilmGrain.Buffer cr_mult(byte value)
      Sets the specified value to the cr_mult field.
    • cr_luma_mult

      public StdVideoAV1FilmGrain.Buffer cr_luma_mult(byte value)
      Sets the specified value to the cr_luma_mult field.
    • cr_offset

      public StdVideoAV1FilmGrain.Buffer cr_offset(short value)
      Sets the specified value to the cr_offset field.