Package org.lwjgl.vulkan.video
Class StdVideoH264SequenceParameterSetVui
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoH264SequenceParameterSetVui>
org.lwjgl.vulkan.video.StdVideoH264SequenceParameterSetVui
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoH264SequenceParameterSetVui
extends Struct<StdVideoH264SequenceParameterSetVui>
implements NativeResource
struct StdVideoH264SequenceParameterSetVui {
{@link StdVideoH264SpsVuiFlags StdVideoH264SpsVuiFlags} flags;
StdVideoH264AspectRatioIdc aspect_ratio_idc;
uint16_t sar_width;
uint16_t sar_height;
uint8_t video_format;
uint8_t colour_primaries;
uint8_t transfer_characteristics;
uint8_t matrix_coefficients;
uint32_t num_units_in_tick;
uint32_t time_scale;
uint8_t max_num_reorder_frames;
uint8_t max_dec_frame_buffering;
uint8_t chroma_sample_loc_type_top_field;
uint8_t chroma_sample_loc_type_bottom_field;
uint32_t reserved1;
{@link StdVideoH264HrdParameters StdVideoH264HrdParameters} const * pHrdParameters;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofStdVideoH264SequenceParameterSetVui
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionStdVideoH264SequenceParameterSetVui
(ByteBuffer container) Creates aStdVideoH264SequenceParameterSetVui
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
aspect_ratio_idc
(int value) Sets the specified value to theaspect_ratio_idc
field.calloc()
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.byte
chroma_sample_loc_type_bottom_field
(byte value) Sets the specified value to thechroma_sample_loc_type_bottom_field
field.byte
chroma_sample_loc_type_top_field
(byte value) Sets the specified value to thechroma_sample_loc_type_top_field
field.byte
colour_primaries
(byte value) Sets the specified value to thecolour_primaries
field.create()
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoH264SequenceParameterSetVui
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoH264SequenceParameterSetVui.Buffer
instance at the specified memory.static @Nullable StdVideoH264SequenceParameterSetVui
createSafe
(long address) static @Nullable StdVideoH264SequenceParameterSetVui.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoH264SpsVuiFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoH264SpsVuiFlags value) Copies the specifiedStdVideoH264SpsVuiFlags
to theflags
field.malloc()
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui
instance allocated on the specifiedMemoryStack
.byte
matrix_coefficients
(byte value) Sets the specified value to thematrix_coefficients
field.byte
max_dec_frame_buffering
(byte value) Sets the specified value to themax_dec_frame_buffering
field.byte
max_num_reorder_frames
(byte value) Sets the specified value to themax_num_reorder_frames
field.static int
naspect_ratio_idc
(long struct) Unsafe version ofaspect_ratio_idc()
.static void
naspect_ratio_idc
(long struct, int value) Unsafe version ofaspect_ratio_idc
.static byte
nchroma_sample_loc_type_bottom_field
(long struct) Unsafe version ofchroma_sample_loc_type_bottom_field()
.static void
nchroma_sample_loc_type_bottom_field
(long struct, byte value) Unsafe version ofchroma_sample_loc_type_bottom_field
.static byte
nchroma_sample_loc_type_top_field
(long struct) Unsafe version ofchroma_sample_loc_type_top_field()
.static void
nchroma_sample_loc_type_top_field
(long struct, byte value) Unsafe version ofchroma_sample_loc_type_top_field
.static byte
ncolour_primaries
(long struct) Unsafe version ofcolour_primaries()
.static void
ncolour_primaries
(long struct, byte value) Unsafe version ofcolour_primaries
.static StdVideoH264SpsVuiFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoH264SpsVuiFlags value) Unsafe version offlags
.static byte
nmatrix_coefficients
(long struct) Unsafe version ofmatrix_coefficients()
.static void
nmatrix_coefficients
(long struct, byte value) Unsafe version ofmatrix_coefficients
.static byte
nmax_dec_frame_buffering
(long struct) Unsafe version ofmax_dec_frame_buffering()
.static void
nmax_dec_frame_buffering
(long struct, byte value) Unsafe version ofmax_dec_frame_buffering
.static byte
nmax_num_reorder_frames
(long struct) Unsafe version ofmax_num_reorder_frames()
.static void
nmax_num_reorder_frames
(long struct, byte value) Unsafe version ofmax_num_reorder_frames
.static int
nnum_units_in_tick
(long struct) Unsafe version ofnum_units_in_tick()
.static void
nnum_units_in_tick
(long struct, int value) Unsafe version ofnum_units_in_tick
.static StdVideoH264HrdParameters
npHrdParameters
(long struct) Unsafe version ofpHrdParameters()
.static void
npHrdParameters
(long struct, StdVideoH264HrdParameters value) Unsafe version ofpHrdParameters
.static int
nreserved1
(long struct) static void
nreserved1
(long struct, int value) static short
nsar_height
(long struct) Unsafe version ofsar_height()
.static void
nsar_height
(long struct, short value) Unsafe version ofsar_height
.static short
nsar_width
(long struct) Unsafe version ofsar_width()
.static void
nsar_width
(long struct, short value) Unsafe version ofsar_width
.static int
ntime_scale
(long struct) Unsafe version oftime_scale()
.static void
ntime_scale
(long struct, int value) Unsafe version oftime_scale
.static byte
ntransfer_characteristics
(long struct) Unsafe version oftransfer_characteristics()
.static void
ntransfer_characteristics
(long struct, byte value) Unsafe version oftransfer_characteristics
.int
num_units_in_tick
(int value) Sets the specified value to thenum_units_in_tick
field.static byte
nvideo_format
(long struct) Unsafe version ofvideo_format()
.static void
nvideo_format
(long struct, byte value) Unsafe version ofvideo_format
.Sets the address of the specifiedStdVideoH264HrdParameters
to thepHrdParameters
field.short
sar_height
(short value) Sets the specified value to thesar_height
field.short
sar_width
(short value) Sets the specified value to thesar_width
field.Copies the specified struct data to this struct.set
(StdVideoH264SpsVuiFlags flags, int aspect_ratio_idc, short sar_width, short sar_height, byte video_format, byte colour_primaries, byte transfer_characteristics, byte matrix_coefficients, int num_units_in_tick, int time_scale, byte max_num_reorder_frames, byte max_dec_frame_buffering, byte chroma_sample_loc_type_top_field, byte chroma_sample_loc_type_bottom_field, StdVideoH264HrdParameters pHrdParameters) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.int
time_scale
(int value) Sets the specified value to thetime_scale
field.byte
transfer_characteristics
(byte value) Sets the specified value to thetransfer_characteristics
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.byte
video_format
(byte value) Sets the specified value to thevideo_format
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FLAGS
public static final int FLAGSThe struct member offsets. -
ASPECT_RATIO_IDC
public static final int ASPECT_RATIO_IDCThe struct member offsets. -
SAR_WIDTH
public static final int SAR_WIDTHThe struct member offsets. -
SAR_HEIGHT
public static final int SAR_HEIGHTThe struct member offsets. -
VIDEO_FORMAT
public static final int VIDEO_FORMATThe struct member offsets. -
COLOUR_PRIMARIES
public static final int COLOUR_PRIMARIESThe struct member offsets. -
TRANSFER_CHARACTERISTICS
public static final int TRANSFER_CHARACTERISTICSThe struct member offsets. -
MATRIX_COEFFICIENTS
public static final int MATRIX_COEFFICIENTSThe struct member offsets. -
NUM_UNITS_IN_TICK
public static final int NUM_UNITS_IN_TICKThe struct member offsets. -
TIME_SCALE
public static final int TIME_SCALEThe struct member offsets. -
MAX_NUM_REORDER_FRAMES
public static final int MAX_NUM_REORDER_FRAMESThe struct member offsets. -
MAX_DEC_FRAME_BUFFERING
public static final int MAX_DEC_FRAME_BUFFERINGThe struct member offsets. -
CHROMA_SAMPLE_LOC_TYPE_TOP_FIELD
public static final int CHROMA_SAMPLE_LOC_TYPE_TOP_FIELDThe struct member offsets. -
CHROMA_SAMPLE_LOC_TYPE_BOTTOM_FIELD
public static final int CHROMA_SAMPLE_LOC_TYPE_BOTTOM_FIELDThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
PHRDPARAMETERS
public static final int PHRDPARAMETERSThe struct member offsets.
-
-
Constructor Details
-
StdVideoH264SequenceParameterSetVui
Creates aStdVideoH264SequenceParameterSetVui
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<StdVideoH264SequenceParameterSetVui>
-
flags
- Returns:
- a
StdVideoH264SpsVuiFlags
view of theflags
field.
-
aspect_ratio_idc
public int aspect_ratio_idc()- Returns:
- the value of the
aspect_ratio_idc
field.
-
sar_width
public short sar_width()- Returns:
- the value of the
sar_width
field.
-
sar_height
public short sar_height()- Returns:
- the value of the
sar_height
field.
-
video_format
public byte video_format()- Returns:
- the value of the
video_format
field.
-
colour_primaries
public byte colour_primaries()- Returns:
- the value of the
colour_primaries
field.
-
transfer_characteristics
public byte transfer_characteristics()- Returns:
- the value of the
transfer_characteristics
field.
-
matrix_coefficients
public byte matrix_coefficients()- Returns:
- the value of the
matrix_coefficients
field.
-
num_units_in_tick
public int num_units_in_tick()- Returns:
- the value of the
num_units_in_tick
field.
-
time_scale
public int time_scale()- Returns:
- the value of the
time_scale
field.
-
max_num_reorder_frames
public byte max_num_reorder_frames()- Returns:
- the value of the
max_num_reorder_frames
field.
-
max_dec_frame_buffering
public byte max_dec_frame_buffering()- Returns:
- the value of the
max_dec_frame_buffering
field.
-
chroma_sample_loc_type_top_field
public byte chroma_sample_loc_type_top_field()- Returns:
- the value of the
chroma_sample_loc_type_top_field
field.
-
chroma_sample_loc_type_bottom_field
public byte chroma_sample_loc_type_bottom_field()- Returns:
- the value of the
chroma_sample_loc_type_bottom_field
field.
-
pHrdParameters
- Returns:
- a
StdVideoH264HrdParameters
view of the struct pointed to by thepHrdParameters
field.
-
flags
Copies the specifiedStdVideoH264SpsVuiFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
aspect_ratio_idc
Sets the specified value to theaspect_ratio_idc
field. -
sar_width
Sets the specified value to thesar_width
field. -
sar_height
Sets the specified value to thesar_height
field. -
video_format
Sets the specified value to thevideo_format
field. -
colour_primaries
Sets the specified value to thecolour_primaries
field. -
transfer_characteristics
Sets the specified value to thetransfer_characteristics
field. -
matrix_coefficients
Sets the specified value to thematrix_coefficients
field. -
num_units_in_tick
Sets the specified value to thenum_units_in_tick
field. -
time_scale
Sets the specified value to thetime_scale
field. -
max_num_reorder_frames
Sets the specified value to themax_num_reorder_frames
field. -
max_dec_frame_buffering
Sets the specified value to themax_dec_frame_buffering
field. -
chroma_sample_loc_type_top_field
Sets the specified value to thechroma_sample_loc_type_top_field
field. -
chroma_sample_loc_type_bottom_field
Sets the specified value to thechroma_sample_loc_type_bottom_field
field. -
pHrdParameters
Sets the address of the specifiedStdVideoH264HrdParameters
to thepHrdParameters
field. -
set
public StdVideoH264SequenceParameterSetVui set(StdVideoH264SpsVuiFlags flags, int aspect_ratio_idc, short sar_width, short sar_height, byte video_format, byte colour_primaries, byte transfer_characteristics, byte matrix_coefficients, int num_units_in_tick, int time_scale, byte max_num_reorder_frames, byte max_dec_frame_buffering, byte chroma_sample_loc_type_top_field, byte chroma_sample_loc_type_bottom_field, StdVideoH264HrdParameters pHrdParameters) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated withBufferUtils
. -
create
Returns a newStdVideoH264SequenceParameterSetVui
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoH264SequenceParameterSetVui.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable StdVideoH264SequenceParameterSetVui.Buffer createSafe(long address, int capacity) -
malloc
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264SequenceParameterSetVui
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoH264SequenceParameterSetVui.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nflags
Unsafe version offlags()
. -
naspect_ratio_idc
public static int naspect_ratio_idc(long struct) Unsafe version ofaspect_ratio_idc()
. -
nsar_width
public static short nsar_width(long struct) Unsafe version ofsar_width()
. -
nsar_height
public static short nsar_height(long struct) Unsafe version ofsar_height()
. -
nvideo_format
public static byte nvideo_format(long struct) Unsafe version ofvideo_format()
. -
ncolour_primaries
public static byte ncolour_primaries(long struct) Unsafe version ofcolour_primaries()
. -
ntransfer_characteristics
public static byte ntransfer_characteristics(long struct) Unsafe version oftransfer_characteristics()
. -
nmatrix_coefficients
public static byte nmatrix_coefficients(long struct) Unsafe version ofmatrix_coefficients()
. -
nnum_units_in_tick
public static int nnum_units_in_tick(long struct) Unsafe version ofnum_units_in_tick()
. -
ntime_scale
public static int ntime_scale(long struct) Unsafe version oftime_scale()
. -
nmax_num_reorder_frames
public static byte nmax_num_reorder_frames(long struct) Unsafe version ofmax_num_reorder_frames()
. -
nmax_dec_frame_buffering
public static byte nmax_dec_frame_buffering(long struct) Unsafe version ofmax_dec_frame_buffering()
. -
nchroma_sample_loc_type_top_field
public static byte nchroma_sample_loc_type_top_field(long struct) Unsafe version ofchroma_sample_loc_type_top_field()
. -
nchroma_sample_loc_type_bottom_field
public static byte nchroma_sample_loc_type_bottom_field(long struct) Unsafe version ofchroma_sample_loc_type_bottom_field()
. -
nreserved1
public static int nreserved1(long struct) -
npHrdParameters
Unsafe version ofpHrdParameters()
. -
nflags
Unsafe version offlags
. -
naspect_ratio_idc
public static void naspect_ratio_idc(long struct, int value) Unsafe version ofaspect_ratio_idc
. -
nsar_width
public static void nsar_width(long struct, short value) Unsafe version ofsar_width
. -
nsar_height
public static void nsar_height(long struct, short value) Unsafe version ofsar_height
. -
nvideo_format
public static void nvideo_format(long struct, byte value) Unsafe version ofvideo_format
. -
ncolour_primaries
public static void ncolour_primaries(long struct, byte value) Unsafe version ofcolour_primaries
. -
ntransfer_characteristics
public static void ntransfer_characteristics(long struct, byte value) Unsafe version oftransfer_characteristics
. -
nmatrix_coefficients
public static void nmatrix_coefficients(long struct, byte value) Unsafe version ofmatrix_coefficients
. -
nnum_units_in_tick
public static void nnum_units_in_tick(long struct, int value) Unsafe version ofnum_units_in_tick
. -
ntime_scale
public static void ntime_scale(long struct, int value) Unsafe version oftime_scale
. -
nmax_num_reorder_frames
public static void nmax_num_reorder_frames(long struct, byte value) Unsafe version ofmax_num_reorder_frames
. -
nmax_dec_frame_buffering
public static void nmax_dec_frame_buffering(long struct, byte value) Unsafe version ofmax_dec_frame_buffering
. -
nchroma_sample_loc_type_top_field
public static void nchroma_sample_loc_type_top_field(long struct, byte value) Unsafe version ofchroma_sample_loc_type_top_field
. -
nchroma_sample_loc_type_bottom_field
public static void nchroma_sample_loc_type_bottom_field(long struct, byte value) Unsafe version ofchroma_sample_loc_type_bottom_field
. -
nreserved1
public static void nreserved1(long struct, int value) -
npHrdParameters
Unsafe version ofpHrdParameters
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-