Package org.lwjgl.vulkan.video
Class StdVideoH264SequenceParameterSetVui
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoH264SequenceParameterSetVui
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoH264SequenceParameterSetVui extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoH264SequenceParameterSetVui { StdVideoH264AspectRatioIdc aspect_ratio_idc; uint16_t sar_width; uint16_t sar_height; uint8_t video_format; uint8_t color_primaries; uint8_t transfer_characteristics; uint8_t matrix_coefficients; uint32_t num_units_in_tick; uint32_t time_scale;StdVideoH264HrdParameters*pHrdParameters(); uint8_t max_num_reorder_frames; uint8_t max_dec_frame_buffering;StdVideoH264SpsVuiFlagsflags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoH264SequenceParameterSetVui.BufferAn array ofStdVideoH264SequenceParameterSetVuistructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intASPECT_RATIO_IDC
COLOR_PRIMARIES
FLAGS
MATRIX_COEFFICIENTS
MAX_DEC_FRAME_BUFFERING
MAX_NUM_REORDER_FRAMES
NUM_UNITS_IN_TICK
PHRDPARAMETERS
SAR_HEIGHT
SAR_WIDTHThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTIME_SCALE
TRANSFER_CHARACTERISTICS
VIDEO_FORMATThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description StdVideoH264SequenceParameterSetVui(java.nio.ByteBuffer container)Creates aStdVideoH264SequenceParameterSetVuiinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaspect_ratio_idc()StdVideoH264SequenceParameterSetVuiaspect_ratio_idc(int value)Sets the specified value to theaspect_ratio_idcfield.static StdVideoH264SequenceParameterSetVuicalloc()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemCalloc.static StdVideoH264SequenceParameterSetVui.Buffercalloc(int capacity)Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemCalloc.static StdVideoH264SequenceParameterSetVui.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264SequenceParameterSetVuicalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.bytecolor_primaries()StdVideoH264SequenceParameterSetVuicolor_primaries(byte value)Sets the specified value to thecolor_primariesfield.static StdVideoH264SequenceParameterSetVuicreate()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withBufferUtils.static StdVideoH264SequenceParameterSetVui.Buffercreate(int capacity)Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withBufferUtils.static StdVideoH264SequenceParameterSetVuicreate(long address)Returns a newStdVideoH264SequenceParameterSetVuiinstance for the specified memory address.static StdVideoH264SequenceParameterSetVui.Buffercreate(long address, int capacity)Create aStdVideoH264SequenceParameterSetVui.Bufferinstance at the specified memory.static StdVideoH264SequenceParameterSetVuicreateSafe(long address)static StdVideoH264SequenceParameterSetVui.BuffercreateSafe(long address, int capacity)StdVideoH264SpsVuiFlagsflags()StdVideoH264SequenceParameterSetVuiflags(java.util.function.Consumer<StdVideoH264SpsVuiFlags> consumer)Passes theflagsfield to the specifiedConsumer.StdVideoH264SequenceParameterSetVuiflags(StdVideoH264SpsVuiFlags value)Copies the specifiedStdVideoH264SpsVuiFlagsto theflagsfield.static StdVideoH264SequenceParameterSetVuimalloc()Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemAlloc.static StdVideoH264SequenceParameterSetVui.Buffermalloc(int capacity)Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemAlloc.static StdVideoH264SequenceParameterSetVui.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoH264SequenceParameterSetVuimalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStack.bytematrix_coefficients()StdVideoH264SequenceParameterSetVuimatrix_coefficients(byte value)Sets the specified value to thematrix_coefficientsfield.bytemax_dec_frame_buffering()StdVideoH264SequenceParameterSetVuimax_dec_frame_buffering(byte value)Sets the specified value to themax_dec_frame_bufferingfield.bytemax_num_reorder_frames()StdVideoH264SequenceParameterSetVuimax_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 bytencolor_primaries(long struct)Unsafe version ofcolor_primaries().static voidncolor_primaries(long struct, byte value)Unsafe version ofcolor_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 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()StdVideoH264SequenceParameterSetVuinum_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.StdVideoH264HrdParameterspHrdParameters()must be a validptrtohrd_parameters, ifnal_hrd_parameters_present_flagorvcl_hrd_parameters_present_flagare setStdVideoH264SequenceParameterSetVuipHrdParameters(StdVideoH264HrdParameters value)Sets the address of the specifiedStdVideoH264HrdParametersto thepHrdParameters()field.shortsar_height()StdVideoH264SequenceParameterSetVuisar_height(short value)Sets the specified value to thesar_heightfield.shortsar_width()StdVideoH264SequenceParameterSetVuisar_width(short value)Sets the specified value to thesar_widthfield.StdVideoH264SequenceParameterSetVuiset(int aspect_ratio_idc, short sar_width, short sar_height, byte video_format, byte color_primaries, byte transfer_characteristics, byte matrix_coefficients, int num_units_in_tick, int time_scale, StdVideoH264HrdParameters pHrdParameters, byte max_num_reorder_frames, byte max_dec_frame_buffering, StdVideoH264SpsVuiFlags flags)Initializes this struct with the specified values.StdVideoH264SequenceParameterSetVuiset(StdVideoH264SequenceParameterSetVui src)Copies the specified struct data to this struct.intsizeof()inttime_scale()StdVideoH264SequenceParameterSetVuitime_scale(int value)Sets the specified value to thetime_scalefield.bytetransfer_characteristics()StdVideoH264SequenceParameterSetVuitransfer_characteristics(byte value)Sets the specified value to thetransfer_characteristicsfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.bytevideo_format()StdVideoH264SequenceParameterSetVuivideo_format(byte value)Sets the specified value to thevideo_formatfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
ASPECT_RATIO_IDC, SAR_WIDTH, SAR_HEIGHT, VIDEO_FORMAT, COLOR_PRIMARIES, TRANSFER_CHARACTERISTICS, MATRIX_COEFFICIENTS, NUM_UNITS_IN_TICK, TIME_SCALE, PHRDPARAMETERS, MAX_NUM_REORDER_FRAMES, MAX_DEC_FRAME_BUFFERING, FLAGS
The struct member offsets.
-
-
Constructor Detail
-
StdVideoH264SequenceParameterSetVui
public StdVideoH264SequenceParameterSetVui(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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.
-
color_primaries
public byte color_primaries()
- Returns:
- the value of the
color_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.
-
pHrdParameters
public StdVideoH264HrdParameters pHrdParameters()
must be a validptrtohrd_parameters, ifnal_hrd_parameters_present_flagorvcl_hrd_parameters_present_flagare set
-
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.
-
flags
public StdVideoH264SpsVuiFlags flags()
- Returns:
- a
StdVideoH264SpsVuiFlagsview of theflagsfield.
-
aspect_ratio_idc
public StdVideoH264SequenceParameterSetVui aspect_ratio_idc(int value)
Sets the specified value to theaspect_ratio_idcfield.
-
sar_width
public StdVideoH264SequenceParameterSetVui sar_width(short value)
Sets the specified value to thesar_widthfield.
-
sar_height
public StdVideoH264SequenceParameterSetVui sar_height(short value)
Sets the specified value to thesar_heightfield.
-
video_format
public StdVideoH264SequenceParameterSetVui video_format(byte value)
Sets the specified value to thevideo_formatfield.
-
color_primaries
public StdVideoH264SequenceParameterSetVui color_primaries(byte value)
Sets the specified value to thecolor_primariesfield.
-
transfer_characteristics
public StdVideoH264SequenceParameterSetVui transfer_characteristics(byte value)
Sets the specified value to thetransfer_characteristicsfield.
-
matrix_coefficients
public StdVideoH264SequenceParameterSetVui matrix_coefficients(byte value)
Sets the specified value to thematrix_coefficientsfield.
-
num_units_in_tick
public StdVideoH264SequenceParameterSetVui num_units_in_tick(int value)
Sets the specified value to thenum_units_in_tickfield.
-
time_scale
public StdVideoH264SequenceParameterSetVui time_scale(int value)
Sets the specified value to thetime_scalefield.
-
pHrdParameters
public StdVideoH264SequenceParameterSetVui pHrdParameters(StdVideoH264HrdParameters value)
Sets the address of the specifiedStdVideoH264HrdParametersto thepHrdParameters()field.
-
max_num_reorder_frames
public StdVideoH264SequenceParameterSetVui max_num_reorder_frames(byte value)
Sets the specified value to themax_num_reorder_framesfield.
-
max_dec_frame_buffering
public StdVideoH264SequenceParameterSetVui max_dec_frame_buffering(byte value)
Sets the specified value to themax_dec_frame_bufferingfield.
-
flags
public StdVideoH264SequenceParameterSetVui flags(StdVideoH264SpsVuiFlags value)
Copies the specifiedStdVideoH264SpsVuiFlagsto theflagsfield.
-
flags
public StdVideoH264SequenceParameterSetVui flags(java.util.function.Consumer<StdVideoH264SpsVuiFlags> consumer)
Passes theflagsfield to the specifiedConsumer.
-
set
public StdVideoH264SequenceParameterSetVui set(int aspect_ratio_idc, short sar_width, short sar_height, byte video_format, byte color_primaries, byte transfer_characteristics, byte matrix_coefficients, int num_units_in_tick, int time_scale, StdVideoH264HrdParameters pHrdParameters, byte max_num_reorder_frames, byte max_dec_frame_buffering, StdVideoH264SpsVuiFlags flags)
Initializes this struct with the specified values.
-
set
public StdVideoH264SequenceParameterSetVui set(StdVideoH264SequenceParameterSetVui src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoH264SequenceParameterSetVui malloc()
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoH264SequenceParameterSetVui calloc()
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoH264SequenceParameterSetVui create()
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated withBufferUtils.
-
create
public static StdVideoH264SequenceParameterSetVui create(long address)
Returns a newStdVideoH264SequenceParameterSetVuiinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoH264SequenceParameterSetVui createSafe(long address)
-
malloc
public static StdVideoH264SequenceParameterSetVui.Buffer malloc(int capacity)
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoH264SequenceParameterSetVui.Buffer calloc(int capacity)
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264SequenceParameterSetVui.Buffer create(int capacity)
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264SequenceParameterSetVui.Buffer create(long address, int capacity)
Create aStdVideoH264SequenceParameterSetVui.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoH264SequenceParameterSetVui.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoH264SequenceParameterSetVui malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoH264SequenceParameterSetVui calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264SequenceParameterSetVuiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoH264SequenceParameterSetVui.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoH264SequenceParameterSetVui.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264SequenceParameterSetVui.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
ncolor_primaries
public static byte ncolor_primaries(long struct)
Unsafe version ofcolor_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().
-
npHrdParameters
public static StdVideoH264HrdParameters npHrdParameters(long struct)
Unsafe version ofpHrdParameters().
-
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().
-
nflags
public static StdVideoH264SpsVuiFlags nflags(long struct)
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.
-
ncolor_primaries
public static void ncolor_primaries(long struct, byte value)Unsafe version ofcolor_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.
-
npHrdParameters
public static void npHrdParameters(long struct, StdVideoH264HrdParameters value)Unsafe version ofpHrdParameters.
-
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.
-
nflags
public static void nflags(long struct, StdVideoH264SpsVuiFlags value)Unsafe version offlags.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-