Package org.lwjgl.vulkan.video
Class StdVideoH264HrdParameters
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoH264HrdParameters
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoH264HrdParameters extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoH264HrdParameters { uint8_t cpb_cnt_minus1; uint8_t bit_rate_scale; uint8_t cpb_size_scale; uint32_t bit_rate_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE]; uint32_t cpb_size_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE]; uint8_t cbr_flag[STD_VIDEO_H264_CPB_CNT_LIST_SIZE]; uint32_t initial_cpb_removal_delay_length_minus1; uint32_t cpb_removal_delay_length_minus1; uint32_t dpb_output_delay_length_minus1; uint32_t time_offset_length; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoH264HrdParameters.BufferAn array ofStdVideoH264HrdParametersstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBIT_RATE_SCALE
BIT_RATE_VALUE_MINUS1
CBR_FLAG
CPB_CNT_MINUS1
CPB_REMOVAL_DELAY_LENGTH_MINUS1
CPB_SIZE_SCALE
CPB_SIZE_VALUE_MINUS1
DPB_OUTPUT_DELAY_LENGTH_MINUS1
INITIAL_CPB_REMOVAL_DELAY_LENGTH_MINUS1The struct member offsets.static intSIZEOFThe struct size in bytes.static intTIME_OFFSET_LENGTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description StdVideoH264HrdParameters(java.nio.ByteBuffer container)Creates aStdVideoH264HrdParametersinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebit_rate_scale()StdVideoH264HrdParametersbit_rate_scale(byte value)Sets the specified value to thebit_rate_scalefield.java.nio.IntBufferbit_rate_value_minus1()intbit_rate_value_minus1(int index)StdVideoH264HrdParametersbit_rate_value_minus1(int index, int value)Sets the specified value at the specified index of thebit_rate_value_minus1field.StdVideoH264HrdParametersbit_rate_value_minus1(java.nio.IntBuffer value)Copies the specifiedIntBufferto thebit_rate_value_minus1field.static StdVideoH264HrdParameterscalloc()Returns a newStdVideoH264HrdParametersinstance allocated withmemCalloc.static StdVideoH264HrdParameters.Buffercalloc(int capacity)Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withmemCalloc.static StdVideoH264HrdParameters.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264HrdParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoH264HrdParameterscalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264HrdParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.java.nio.ByteBuffercbr_flag()bytecbr_flag(int index)StdVideoH264HrdParameterscbr_flag(int index, byte value)Sets the specified value at the specified index of thecbr_flagfield.StdVideoH264HrdParameterscbr_flag(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thecbr_flagfield.bytecpb_cnt_minus1()StdVideoH264HrdParameterscpb_cnt_minus1(byte value)Sets the specified value to thecpb_cnt_minus1field.intcpb_removal_delay_length_minus1()StdVideoH264HrdParameterscpb_removal_delay_length_minus1(int value)Sets the specified value to thecpb_removal_delay_length_minus1field.bytecpb_size_scale()StdVideoH264HrdParameterscpb_size_scale(byte value)Sets the specified value to thecpb_size_scalefield.java.nio.IntBuffercpb_size_value_minus1()intcpb_size_value_minus1(int index)StdVideoH264HrdParameterscpb_size_value_minus1(int index, int value)Sets the specified value at the specified index of thecpb_size_value_minus1field.StdVideoH264HrdParameterscpb_size_value_minus1(java.nio.IntBuffer value)Copies the specifiedIntBufferto thecpb_size_value_minus1field.static StdVideoH264HrdParameterscreate()Returns a newStdVideoH264HrdParametersinstance allocated withBufferUtils.static StdVideoH264HrdParameters.Buffercreate(int capacity)Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withBufferUtils.static StdVideoH264HrdParameterscreate(long address)Returns a newStdVideoH264HrdParametersinstance for the specified memory address.static StdVideoH264HrdParameters.Buffercreate(long address, int capacity)Create aStdVideoH264HrdParameters.Bufferinstance at the specified memory.static StdVideoH264HrdParameterscreateSafe(long address)static StdVideoH264HrdParameters.BuffercreateSafe(long address, int capacity)intdpb_output_delay_length_minus1()StdVideoH264HrdParametersdpb_output_delay_length_minus1(int value)Sets the specified value to thedpb_output_delay_length_minus1field.intinitial_cpb_removal_delay_length_minus1()StdVideoH264HrdParametersinitial_cpb_removal_delay_length_minus1(int value)Sets the specified value to theinitial_cpb_removal_delay_length_minus1field.static StdVideoH264HrdParametersmalloc()Returns a newStdVideoH264HrdParametersinstance allocated withmemAlloc.static StdVideoH264HrdParameters.Buffermalloc(int capacity)Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withmemAlloc.static StdVideoH264HrdParameters.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264HrdParameters.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoH264HrdParametersmalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoH264HrdParametersinstance allocated on the specifiedMemoryStack.static bytenbit_rate_scale(long struct)Unsafe version ofbit_rate_scale().static voidnbit_rate_scale(long struct, byte value)Unsafe version ofbit_rate_scale.static java.nio.IntBuffernbit_rate_value_minus1(long struct)Unsafe version ofbit_rate_value_minus1().static intnbit_rate_value_minus1(long struct, int index)Unsafe version ofbit_rate_value_minus1.static voidnbit_rate_value_minus1(long struct, int index, int value)Unsafe version ofbit_rate_value_minus1.static voidnbit_rate_value_minus1(long struct, java.nio.IntBuffer value)Unsafe version ofbit_rate_value_minus1.static java.nio.ByteBufferncbr_flag(long struct)Unsafe version ofcbr_flag().static bytencbr_flag(long struct, int index)Unsafe version ofcbr_flag.static voidncbr_flag(long struct, int index, byte value)Unsafe version ofcbr_flag.static voidncbr_flag(long struct, java.nio.ByteBuffer value)Unsafe version ofcbr_flag.static bytencpb_cnt_minus1(long struct)Unsafe version ofcpb_cnt_minus1().static voidncpb_cnt_minus1(long struct, byte value)Unsafe version ofcpb_cnt_minus1.static intncpb_removal_delay_length_minus1(long struct)Unsafe version ofcpb_removal_delay_length_minus1().static voidncpb_removal_delay_length_minus1(long struct, int value)Unsafe version ofcpb_removal_delay_length_minus1.static bytencpb_size_scale(long struct)Unsafe version ofcpb_size_scale().static voidncpb_size_scale(long struct, byte value)Unsafe version ofcpb_size_scale.static java.nio.IntBufferncpb_size_value_minus1(long struct)Unsafe version ofcpb_size_value_minus1().static intncpb_size_value_minus1(long struct, int index)Unsafe version ofcpb_size_value_minus1.static voidncpb_size_value_minus1(long struct, int index, int value)Unsafe version ofcpb_size_value_minus1.static voidncpb_size_value_minus1(long struct, java.nio.IntBuffer value)Unsafe version ofcpb_size_value_minus1.static intndpb_output_delay_length_minus1(long struct)Unsafe version ofdpb_output_delay_length_minus1().static voidndpb_output_delay_length_minus1(long struct, int value)Unsafe version ofdpb_output_delay_length_minus1.static intninitial_cpb_removal_delay_length_minus1(long struct)Unsafe version ofinitial_cpb_removal_delay_length_minus1().static voidninitial_cpb_removal_delay_length_minus1(long struct, int value)Unsafe version ofinitial_cpb_removal_delay_length_minus1.static intntime_offset_length(long struct)Unsafe version oftime_offset_length().static voidntime_offset_length(long struct, int value)Unsafe version oftime_offset_length.StdVideoH264HrdParametersset(byte cpb_cnt_minus1, byte bit_rate_scale, byte cpb_size_scale, java.nio.IntBuffer bit_rate_value_minus1, java.nio.IntBuffer cpb_size_value_minus1, java.nio.ByteBuffer cbr_flag, int initial_cpb_removal_delay_length_minus1, int cpb_removal_delay_length_minus1, int dpb_output_delay_length_minus1, int time_offset_length)Initializes this struct with the specified values.StdVideoH264HrdParametersset(StdVideoH264HrdParameters src)Copies the specified struct data to this struct.intsizeof()inttime_offset_length()StdVideoH264HrdParameterstime_offset_length(int value)Sets the specified value to thetime_offset_lengthfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
CPB_CNT_MINUS1, BIT_RATE_SCALE, CPB_SIZE_SCALE, BIT_RATE_VALUE_MINUS1, CPB_SIZE_VALUE_MINUS1, CBR_FLAG, INITIAL_CPB_REMOVAL_DELAY_LENGTH_MINUS1, CPB_REMOVAL_DELAY_LENGTH_MINUS1, DPB_OUTPUT_DELAY_LENGTH_MINUS1, TIME_OFFSET_LENGTH
The struct member offsets.
-
-
Constructor Detail
-
StdVideoH264HrdParameters
public StdVideoH264HrdParameters(java.nio.ByteBuffer container)
Creates aStdVideoH264HrdParametersinstance 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
-
cpb_cnt_minus1
public byte cpb_cnt_minus1()
- Returns:
- the value of the
cpb_cnt_minus1field.
-
bit_rate_scale
public byte bit_rate_scale()
- Returns:
- the value of the
bit_rate_scalefield.
-
cpb_size_scale
public byte cpb_size_scale()
- Returns:
- the value of the
cpb_size_scalefield.
-
bit_rate_value_minus1
public java.nio.IntBuffer bit_rate_value_minus1()
- Returns:
- a
IntBufferview of thebit_rate_value_minus1field.
-
bit_rate_value_minus1
public int bit_rate_value_minus1(int index)
- Returns:
- the value at the specified index of the
bit_rate_value_minus1field.
-
cpb_size_value_minus1
public java.nio.IntBuffer cpb_size_value_minus1()
- Returns:
- a
IntBufferview of thecpb_size_value_minus1field.
-
cpb_size_value_minus1
public int cpb_size_value_minus1(int index)
- Returns:
- the value at the specified index of the
cpb_size_value_minus1field.
-
cbr_flag
public java.nio.ByteBuffer cbr_flag()
- Returns:
- a
ByteBufferview of thecbr_flagfield.
-
cbr_flag
public byte cbr_flag(int index)
- Returns:
- the value at the specified index of the
cbr_flagfield.
-
initial_cpb_removal_delay_length_minus1
public int initial_cpb_removal_delay_length_minus1()
- Returns:
- the value of the
initial_cpb_removal_delay_length_minus1field.
-
cpb_removal_delay_length_minus1
public int cpb_removal_delay_length_minus1()
- Returns:
- the value of the
cpb_removal_delay_length_minus1field.
-
dpb_output_delay_length_minus1
public int dpb_output_delay_length_minus1()
- Returns:
- the value of the
dpb_output_delay_length_minus1field.
-
time_offset_length
public int time_offset_length()
- Returns:
- the value of the
time_offset_lengthfield.
-
cpb_cnt_minus1
public StdVideoH264HrdParameters cpb_cnt_minus1(byte value)
Sets the specified value to thecpb_cnt_minus1field.
-
bit_rate_scale
public StdVideoH264HrdParameters bit_rate_scale(byte value)
Sets the specified value to thebit_rate_scalefield.
-
cpb_size_scale
public StdVideoH264HrdParameters cpb_size_scale(byte value)
Sets the specified value to thecpb_size_scalefield.
-
bit_rate_value_minus1
public StdVideoH264HrdParameters bit_rate_value_minus1(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thebit_rate_value_minus1field.
-
bit_rate_value_minus1
public StdVideoH264HrdParameters bit_rate_value_minus1(int index, int value)
Sets the specified value at the specified index of thebit_rate_value_minus1field.
-
cpb_size_value_minus1
public StdVideoH264HrdParameters cpb_size_value_minus1(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thecpb_size_value_minus1field.
-
cpb_size_value_minus1
public StdVideoH264HrdParameters cpb_size_value_minus1(int index, int value)
Sets the specified value at the specified index of thecpb_size_value_minus1field.
-
cbr_flag
public StdVideoH264HrdParameters cbr_flag(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thecbr_flagfield.
-
cbr_flag
public StdVideoH264HrdParameters cbr_flag(int index, byte value)
Sets the specified value at the specified index of thecbr_flagfield.
-
initial_cpb_removal_delay_length_minus1
public StdVideoH264HrdParameters initial_cpb_removal_delay_length_minus1(int value)
Sets the specified value to theinitial_cpb_removal_delay_length_minus1field.
-
cpb_removal_delay_length_minus1
public StdVideoH264HrdParameters cpb_removal_delay_length_minus1(int value)
Sets the specified value to thecpb_removal_delay_length_minus1field.
-
dpb_output_delay_length_minus1
public StdVideoH264HrdParameters dpb_output_delay_length_minus1(int value)
Sets the specified value to thedpb_output_delay_length_minus1field.
-
time_offset_length
public StdVideoH264HrdParameters time_offset_length(int value)
Sets the specified value to thetime_offset_lengthfield.
-
set
public StdVideoH264HrdParameters set(byte cpb_cnt_minus1, byte bit_rate_scale, byte cpb_size_scale, java.nio.IntBuffer bit_rate_value_minus1, java.nio.IntBuffer cpb_size_value_minus1, java.nio.ByteBuffer cbr_flag, int initial_cpb_removal_delay_length_minus1, int cpb_removal_delay_length_minus1, int dpb_output_delay_length_minus1, int time_offset_length)
Initializes this struct with the specified values.
-
set
public StdVideoH264HrdParameters set(StdVideoH264HrdParameters src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoH264HrdParameters malloc()
Returns a newStdVideoH264HrdParametersinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoH264HrdParameters calloc()
Returns a newStdVideoH264HrdParametersinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoH264HrdParameters create()
Returns a newStdVideoH264HrdParametersinstance allocated withBufferUtils.
-
create
public static StdVideoH264HrdParameters create(long address)
Returns a newStdVideoH264HrdParametersinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoH264HrdParameters createSafe(long address)
-
malloc
public static StdVideoH264HrdParameters.Buffer malloc(int capacity)
Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoH264HrdParameters.Buffer calloc(int capacity)
Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264HrdParameters.Buffer create(int capacity)
Returns a newStdVideoH264HrdParameters.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoH264HrdParameters.Buffer create(long address, int capacity)
Create aStdVideoH264HrdParameters.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoH264HrdParameters.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoH264HrdParameters malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264HrdParametersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoH264HrdParameters calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264HrdParametersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoH264HrdParameters.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264HrdParameters.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoH264HrdParameters.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoH264HrdParameters.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncpb_cnt_minus1
public static byte ncpb_cnt_minus1(long struct)
Unsafe version ofcpb_cnt_minus1().
-
nbit_rate_scale
public static byte nbit_rate_scale(long struct)
Unsafe version ofbit_rate_scale().
-
ncpb_size_scale
public static byte ncpb_size_scale(long struct)
Unsafe version ofcpb_size_scale().
-
nbit_rate_value_minus1
public static java.nio.IntBuffer nbit_rate_value_minus1(long struct)
Unsafe version ofbit_rate_value_minus1().
-
nbit_rate_value_minus1
public static int nbit_rate_value_minus1(long struct, int index)Unsafe version ofbit_rate_value_minus1.
-
ncpb_size_value_minus1
public static java.nio.IntBuffer ncpb_size_value_minus1(long struct)
Unsafe version ofcpb_size_value_minus1().
-
ncpb_size_value_minus1
public static int ncpb_size_value_minus1(long struct, int index)Unsafe version ofcpb_size_value_minus1.
-
ncbr_flag
public static java.nio.ByteBuffer ncbr_flag(long struct)
Unsafe version ofcbr_flag().
-
ncbr_flag
public static byte ncbr_flag(long struct, int index)Unsafe version ofcbr_flag.
-
ninitial_cpb_removal_delay_length_minus1
public static int ninitial_cpb_removal_delay_length_minus1(long struct)
Unsafe version ofinitial_cpb_removal_delay_length_minus1().
-
ncpb_removal_delay_length_minus1
public static int ncpb_removal_delay_length_minus1(long struct)
Unsafe version ofcpb_removal_delay_length_minus1().
-
ndpb_output_delay_length_minus1
public static int ndpb_output_delay_length_minus1(long struct)
Unsafe version ofdpb_output_delay_length_minus1().
-
ntime_offset_length
public static int ntime_offset_length(long struct)
Unsafe version oftime_offset_length().
-
ncpb_cnt_minus1
public static void ncpb_cnt_minus1(long struct, byte value)Unsafe version ofcpb_cnt_minus1.
-
nbit_rate_scale
public static void nbit_rate_scale(long struct, byte value)Unsafe version ofbit_rate_scale.
-
ncpb_size_scale
public static void ncpb_size_scale(long struct, byte value)Unsafe version ofcpb_size_scale.
-
nbit_rate_value_minus1
public static void nbit_rate_value_minus1(long struct, java.nio.IntBuffer value)Unsafe version ofbit_rate_value_minus1.
-
nbit_rate_value_minus1
public static void nbit_rate_value_minus1(long struct, int index, int value)Unsafe version ofbit_rate_value_minus1.
-
ncpb_size_value_minus1
public static void ncpb_size_value_minus1(long struct, java.nio.IntBuffer value)Unsafe version ofcpb_size_value_minus1.
-
ncpb_size_value_minus1
public static void ncpb_size_value_minus1(long struct, int index, int value)Unsafe version ofcpb_size_value_minus1.
-
ncbr_flag
public static void ncbr_flag(long struct, java.nio.ByteBuffer value)Unsafe version ofcbr_flag.
-
ncbr_flag
public static void ncbr_flag(long struct, int index, byte value)Unsafe version ofcbr_flag.
-
ninitial_cpb_removal_delay_length_minus1
public static void ninitial_cpb_removal_delay_length_minus1(long struct, int value)Unsafe version ofinitial_cpb_removal_delay_length_minus1.
-
ncpb_removal_delay_length_minus1
public static void ncpb_removal_delay_length_minus1(long struct, int value)Unsafe version ofcpb_removal_delay_length_minus1.
-
ndpb_output_delay_length_minus1
public static void ndpb_output_delay_length_minus1(long struct, int value)Unsafe version ofdpb_output_delay_length_minus1.
-
ntime_offset_length
public static void ntime_offset_length(long struct, int value)Unsafe version oftime_offset_length.
-
-