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 {
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;
StdVideoH264HrdParameters const * pHrdParameters;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofStdVideoH264SequenceParameterSetVuistructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aStdVideoH264SequenceParameterSetVuiinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintaspect_ratio_idc(int value) Sets the specified value to theaspect_ratio_idcfield.calloc()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytechroma_sample_loc_type_bottom_field(byte value) Sets the specified value to thechroma_sample_loc_type_bottom_fieldfield.bytechroma_sample_loc_type_top_field(byte value) Sets the specified value to thechroma_sample_loc_type_top_fieldfield.bytecolour_primaries(byte value) Sets the specified value to thecolour_primariesfield.create()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withBufferUtils.create(long address) Returns a newStdVideoH264SequenceParameterSetVuiinstance for the specified memory address.create(long address, int capacity) Create aStdVideoH264SequenceParameterSetVui.Bufferinstance at the specified memory.static @Nullable StdVideoH264SequenceParameterSetVuicreateSafe(long address) static @Nullable StdVideoH264SequenceParameterSetVui.BuffercreateSafe(long address, int capacity) flags()flags(Consumer<StdVideoH264SpsVuiFlags> consumer) Passes theflagsfield to the specifiedConsumer.flags(StdVideoH264SpsVuiFlags value) Copies the specifiedStdVideoH264SpsVuiFlagsto theflagsfield.malloc()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStack.bytematrix_coefficients(byte value) Sets the specified value to thematrix_coefficientsfield.bytemax_dec_frame_buffering(byte value) Sets the specified value to themax_dec_frame_bufferingfield.bytemax_num_reorder_frames(byte value) Sets the specified value to themax_num_reorder_framesfield.static intnaspect_ratio_idc(long struct) Unsafe version ofaspect_ratio_idc().static voidnaspect_ratio_idc(long struct, int value) Unsafe version ofaspect_ratio_idc.static bytenchroma_sample_loc_type_bottom_field(long struct) Unsafe version ofchroma_sample_loc_type_bottom_field().static voidnchroma_sample_loc_type_bottom_field(long struct, byte value) Unsafe version ofchroma_sample_loc_type_bottom_field.static bytenchroma_sample_loc_type_top_field(long struct) Unsafe version ofchroma_sample_loc_type_top_field().static voidnchroma_sample_loc_type_top_field(long struct, byte value) Unsafe version ofchroma_sample_loc_type_top_field.static bytencolour_primaries(long struct) Unsafe version ofcolour_primaries().static voidncolour_primaries(long struct, byte value) Unsafe version ofcolour_primaries.static StdVideoH264SpsVuiFlagsnflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoH264SpsVuiFlags value) Unsafe version offlags.static bytenmatrix_coefficients(long struct) Unsafe version ofmatrix_coefficients().static voidnmatrix_coefficients(long struct, byte value) Unsafe version ofmatrix_coefficients.static bytenmax_dec_frame_buffering(long struct) Unsafe version ofmax_dec_frame_buffering().static voidnmax_dec_frame_buffering(long struct, byte value) Unsafe version ofmax_dec_frame_buffering.static bytenmax_num_reorder_frames(long struct) Unsafe version ofmax_num_reorder_frames().static voidnmax_num_reorder_frames(long struct, byte value) Unsafe version ofmax_num_reorder_frames.static intnnum_units_in_tick(long struct) Unsafe version ofnum_units_in_tick().static voidnnum_units_in_tick(long struct, int value) Unsafe version ofnum_units_in_tick.static StdVideoH264HrdParametersnpHrdParameters(long struct) Unsafe version ofpHrdParameters().static voidnpHrdParameters(long struct, StdVideoH264HrdParameters value) Unsafe version ofpHrdParameters.static intnreserved1(long struct) static voidnreserved1(long struct, int value) static shortnsar_height(long struct) Unsafe version ofsar_height().static voidnsar_height(long struct, short value) Unsafe version ofsar_height.static shortnsar_width(long struct) Unsafe version ofsar_width().static voidnsar_width(long struct, short value) Unsafe version ofsar_width.static intntime_scale(long struct) Unsafe version oftime_scale().static voidntime_scale(long struct, int value) Unsafe version oftime_scale.static bytentransfer_characteristics(long struct) Unsafe version oftransfer_characteristics().static voidntransfer_characteristics(long struct, byte value) Unsafe version oftransfer_characteristics.intnum_units_in_tick(int value) Sets the specified value to thenum_units_in_tickfield.static bytenvideo_format(long struct) Unsafe version ofvideo_format().static voidnvideo_format(long struct, byte value) Unsafe version ofvideo_format.Sets the address of the specifiedStdVideoH264HrdParametersto thepHrdParametersfield.shortsar_height(short value) Sets the specified value to thesar_heightfield.shortsar_width(short value) Sets the specified value to thesar_widthfield.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.intsizeof()Returnssizeof(struct).inttime_scale(int value) Sets the specified value to thetime_scalefield.bytetransfer_characteristics(byte value) Sets the specified value to thetransfer_characteristicsfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.bytevideo_format(byte value) Sets the specified value to thevideo_formatfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aStdVideoH264SequenceParameterSetVuiinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<StdVideoH264SequenceParameterSetVui>
-
flags
- Returns:
- a
StdVideoH264SpsVuiFlagsview of theflagsfield.
-
aspect_ratio_idc
public int aspect_ratio_idc()- Returns:
- the value of the
aspect_ratio_idcfield.
-
sar_width
public short sar_width()- Returns:
- the value of the
sar_widthfield.
-
sar_height
public short sar_height()- Returns:
- the value of the
sar_heightfield.
-
video_format
public byte video_format()- Returns:
- the value of the
video_formatfield.
-
colour_primaries
public byte colour_primaries()- Returns:
- the value of the
colour_primariesfield.
-
transfer_characteristics
public byte transfer_characteristics()- Returns:
- the value of the
transfer_characteristicsfield.
-
matrix_coefficients
public byte matrix_coefficients()- Returns:
- the value of the
matrix_coefficientsfield.
-
num_units_in_tick
public int num_units_in_tick()- Returns:
- the value of the
num_units_in_tickfield.
-
time_scale
public int time_scale()- Returns:
- the value of the
time_scalefield.
-
max_num_reorder_frames
public byte max_num_reorder_frames()- Returns:
- the value of the
max_num_reorder_framesfield.
-
max_dec_frame_buffering
public byte max_dec_frame_buffering()- Returns:
- the value of the
max_dec_frame_bufferingfield.
-
chroma_sample_loc_type_top_field
public byte chroma_sample_loc_type_top_field()- Returns:
- the value of the
chroma_sample_loc_type_top_fieldfield.
-
chroma_sample_loc_type_bottom_field
public byte chroma_sample_loc_type_bottom_field()- Returns:
- the value of the
chroma_sample_loc_type_bottom_fieldfield.
-
pHrdParameters
- Returns:
- a
StdVideoH264HrdParametersview of the struct pointed to by thepHrdParametersfield.
-
flags
Copies the specifiedStdVideoH264SpsVuiFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
aspect_ratio_idc
Sets the specified value to theaspect_ratio_idcfield. -
sar_width
Sets the specified value to thesar_widthfield. -
sar_height
Sets the specified value to thesar_heightfield. -
video_format
Sets the specified value to thevideo_formatfield. -
colour_primaries
Sets the specified value to thecolour_primariesfield. -
transfer_characteristics
Sets the specified value to thetransfer_characteristicsfield. -
matrix_coefficients
Sets the specified value to thematrix_coefficientsfield. -
num_units_in_tick
Sets the specified value to thenum_units_in_tickfield. -
time_scale
Sets the specified value to thetime_scalefield. -
max_num_reorder_frames
Sets the specified value to themax_num_reorder_framesfield. -
max_dec_frame_buffering
Sets the specified value to themax_dec_frame_bufferingfield. -
chroma_sample_loc_type_top_field
Sets the specified value to thechroma_sample_loc_type_top_fieldfield. -
chroma_sample_loc_type_bottom_field
Sets the specified value to thechroma_sample_loc_type_bottom_fieldfield. -
pHrdParameters
Sets the address of the specifiedStdVideoH264HrdParametersto thepHrdParametersfield. -
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 newStdVideoH264SequenceParameterSetVuiinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withBufferUtils. -
create
Returns a newStdVideoH264SequenceParameterSetVuiinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoH264SequenceParameterSetVui.Bufferinstance 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 newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStackand 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
-