Package org.lwjgl.vulkan.video
Class StdVideoAV1TimingInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct StdVideoAV1TimingInfo {
{@link StdVideoAV1TimingInfoFlags StdVideoAV1TimingInfoFlags} flags;
uint32_t num_units_in_display_tick;
uint32_t time_scale;
uint32_t num_ticks_per_picture_minus_1;
}
-
Nested Class Summary
Nested ClassesNested 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 size in bytes.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
ConstructorsConstructorDescriptionStdVideoAV1TimingInfo
(ByteBuffer container) Creates aStdVideoAV1TimingInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic StdVideoAV1TimingInfo
calloc()
Returns a newStdVideoAV1TimingInfo
instance allocated withmemCalloc
.static StdVideoAV1TimingInfo.Buffer
calloc
(int capacity) Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withmemCalloc
.static StdVideoAV1TimingInfo.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1TimingInfo
calloc
(MemoryStack stack) Returns a newStdVideoAV1TimingInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static StdVideoAV1TimingInfo
create()
Returns a newStdVideoAV1TimingInfo
instance allocated withBufferUtils
.static StdVideoAV1TimingInfo.Buffer
create
(int capacity) Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withBufferUtils
.static StdVideoAV1TimingInfo
create
(long address) Returns a newStdVideoAV1TimingInfo
instance for the specified memory address.static StdVideoAV1TimingInfo.Buffer
create
(long address, int capacity) Create aStdVideoAV1TimingInfo.Buffer
instance at the specified memory.static @Nullable StdVideoAV1TimingInfo
createSafe
(long address) static @Nullable StdVideoAV1TimingInfo.Buffer
createSafe
(long address, int capacity) flags()
flags
(Consumer<StdVideoAV1TimingInfoFlags> consumer) Passes theflags
field to the specifiedConsumer
.flags
(StdVideoAV1TimingInfoFlags value) Copies the specifiedStdVideoAV1TimingInfoFlags
to theflags
field.static StdVideoAV1TimingInfo
malloc()
Returns a newStdVideoAV1TimingInfo
instance allocated withmemAlloc
.static StdVideoAV1TimingInfo.Buffer
malloc
(int capacity) Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withmemAlloc
.static StdVideoAV1TimingInfo.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated on the specifiedMemoryStack
.static StdVideoAV1TimingInfo
malloc
(MemoryStack stack) Returns a newStdVideoAV1TimingInfo
instance allocated on the specifiedMemoryStack
.static StdVideoAV1TimingInfoFlags
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoAV1TimingInfoFlags value) Unsafe version offlags
.static int
nnum_ticks_per_picture_minus_1
(long struct) Unsafe version ofnum_ticks_per_picture_minus_1()
.static void
nnum_ticks_per_picture_minus_1
(long struct, int value) Unsafe version ofnum_ticks_per_picture_minus_1
.static int
nnum_units_in_display_tick
(long struct) Unsafe version ofnum_units_in_display_tick()
.static void
nnum_units_in_display_tick
(long struct, int value) Unsafe version ofnum_units_in_display_tick
.static int
ntime_scale
(long struct) Unsafe version oftime_scale()
.static void
ntime_scale
(long struct, int value) Unsafe version oftime_scale
.int
num_ticks_per_picture_minus_1
(int value) Sets the specified value to thenum_ticks_per_picture_minus_1
field.int
num_units_in_display_tick
(int value) Sets the specified value to thenum_units_in_display_tick
field.set
(StdVideoAV1TimingInfo src) Copies the specified struct data to this struct.set
(StdVideoAV1TimingInfoFlags flags, int num_units_in_display_tick, int time_scale, int num_ticks_per_picture_minus_1) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.int
time_scale
(int value) Sets the specified value to thetime_scale
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. -
NUM_UNITS_IN_DISPLAY_TICK
public static final int NUM_UNITS_IN_DISPLAY_TICKThe struct member offsets. -
TIME_SCALE
public static final int TIME_SCALEThe struct member offsets. -
NUM_TICKS_PER_PICTURE_MINUS_1
public static final int NUM_TICKS_PER_PICTURE_MINUS_1The struct member offsets.
-
-
Constructor Details
-
StdVideoAV1TimingInfo
Creates aStdVideoAV1TimingInfo
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<StdVideoAV1TimingInfo>
-
flags
- Returns:
- a
StdVideoAV1TimingInfoFlags
view of theflags
field.
-
num_units_in_display_tick
public int num_units_in_display_tick()- Returns:
- the value of the
num_units_in_display_tick
field.
-
time_scale
public int time_scale()- Returns:
- the value of the
time_scale
field.
-
num_ticks_per_picture_minus_1
public int num_ticks_per_picture_minus_1()- Returns:
- the value of the
num_ticks_per_picture_minus_1
field.
-
flags
Copies the specifiedStdVideoAV1TimingInfoFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
num_units_in_display_tick
Sets the specified value to thenum_units_in_display_tick
field. -
time_scale
Sets the specified value to thetime_scale
field. -
num_ticks_per_picture_minus_1
Sets the specified value to thenum_ticks_per_picture_minus_1
field. -
set
public StdVideoAV1TimingInfo set(StdVideoAV1TimingInfoFlags flags, int num_units_in_display_tick, int time_scale, int num_ticks_per_picture_minus_1) 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 newStdVideoAV1TimingInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoAV1TimingInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoAV1TimingInfo
instance allocated withBufferUtils
. -
create
Returns a newStdVideoAV1TimingInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoAV1TimingInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoAV1TimingInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TimingInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoAV1TimingInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoAV1TimingInfo.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()
. -
nnum_units_in_display_tick
public static int nnum_units_in_display_tick(long struct) Unsafe version ofnum_units_in_display_tick()
. -
ntime_scale
public static int ntime_scale(long struct) Unsafe version oftime_scale()
. -
nnum_ticks_per_picture_minus_1
public static int nnum_ticks_per_picture_minus_1(long struct) Unsafe version ofnum_ticks_per_picture_minus_1()
. -
nflags
Unsafe version offlags
. -
nnum_units_in_display_tick
public static void nnum_units_in_display_tick(long struct, int value) Unsafe version ofnum_units_in_display_tick
. -
ntime_scale
public static void ntime_scale(long struct, int value) Unsafe version oftime_scale
. -
nnum_ticks_per_picture_minus_1
public static void nnum_ticks_per_picture_minus_1(long struct, int value) Unsafe version ofnum_ticks_per_picture_minus_1
.
-