Package org.lwjgl.vulkan.video
Class StdVideoEncodeH264SliceHeader
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<StdVideoEncodeH264SliceHeader>
org.lwjgl.vulkan.video.StdVideoEncodeH264SliceHeader
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class StdVideoEncodeH264SliceHeader
extends Struct<StdVideoEncodeH264SliceHeader>
implements NativeResource
struct StdVideoEncodeH264SliceHeader {
{@link StdVideoEncodeH264SliceHeaderFlags StdVideoEncodeH264SliceHeaderFlags} flags;
uint32_t first_mb_in_slice;
StdVideoH264SliceType slice_type;
int8_t slice_alpha_c0_offset_div2;
int8_t slice_beta_offset_div2;
int8_t slice_qp_delta;
uint8_t reserved1;
StdVideoH264CabacInitIdc cabac_init_idc;
StdVideoH264DisableDeblockingFilterIdc disable_deblocking_filter_idc;
{@link StdVideoEncodeH264WeightTable StdVideoEncodeH264WeightTable} const * pWeightTable;
}
-
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 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.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
ConstructorsConstructorDescriptionStdVideoEncodeH264SliceHeader
(ByteBuffer container) Creates aStdVideoEncodeH264SliceHeader
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
cabac_init_idc
(int value) Sets the specified value to thecabac_init_idc
field.calloc()
Returns a newStdVideoEncodeH264SliceHeader
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newStdVideoEncodeH264SliceHeader
instance allocated withBufferUtils
.create
(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newStdVideoEncodeH264SliceHeader
instance for the specified memory address.create
(long address, int capacity) Create aStdVideoEncodeH264SliceHeader.Buffer
instance at the specified memory.static @Nullable StdVideoEncodeH264SliceHeader
createSafe
(long address) static @Nullable StdVideoEncodeH264SliceHeader.Buffer
createSafe
(long address, int capacity) int
disable_deblocking_filter_idc
(int value) Sets the specified value to thedisable_deblocking_filter_idc
field.int
first_mb_in_slice
(int value) Sets the specified value to thefirst_mb_in_slice
field.flags()
flags
(Consumer<StdVideoEncodeH264SliceHeaderFlags> consumer) Passes theflags
field to the specifiedConsumer
.Copies the specifiedStdVideoEncodeH264SliceHeaderFlags
to theflags
field.malloc()
Returns a newStdVideoEncodeH264SliceHeader
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader
instance allocated on the specifiedMemoryStack
.static int
ncabac_init_idc
(long struct) Unsafe version ofcabac_init_idc()
.static void
ncabac_init_idc
(long struct, int value) Unsafe version ofcabac_init_idc
.static int
ndisable_deblocking_filter_idc
(long struct) Unsafe version ofdisable_deblocking_filter_idc()
.static void
ndisable_deblocking_filter_idc
(long struct, int value) Unsafe version ofdisable_deblocking_filter_idc
.static int
nfirst_mb_in_slice
(long struct) Unsafe version offirst_mb_in_slice()
.static void
nfirst_mb_in_slice
(long struct, int value) Unsafe version offirst_mb_in_slice
.nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, StdVideoEncodeH264SliceHeaderFlags value) Unsafe version offlags
.npWeightTable
(long struct) Unsafe version ofpWeightTable()
.static void
npWeightTable
(long struct, StdVideoEncodeH264WeightTable value) Unsafe version ofpWeightTable
.static byte
nreserved1
(long struct) static void
nreserved1
(long struct, byte value) static byte
nslice_alpha_c0_offset_div2
(long struct) Unsafe version ofslice_alpha_c0_offset_div2()
.static void
nslice_alpha_c0_offset_div2
(long struct, byte value) Unsafe version ofslice_alpha_c0_offset_div2
.static byte
nslice_beta_offset_div2
(long struct) Unsafe version ofslice_beta_offset_div2()
.static void
nslice_beta_offset_div2
(long struct, byte value) Unsafe version ofslice_beta_offset_div2
.static byte
nslice_qp_delta
(long struct) Unsafe version ofslice_qp_delta()
.static void
nslice_qp_delta
(long struct, byte value) Unsafe version ofslice_qp_delta
.static int
nslice_type
(long struct) Unsafe version ofslice_type()
.static void
nslice_type
(long struct, int value) Unsafe version ofslice_type
.Sets the address of the specifiedStdVideoEncodeH264WeightTable
to thepWeightTable
field.Copies the specified struct data to this struct.set
(StdVideoEncodeH264SliceHeaderFlags flags, int first_mb_in_slice, int slice_type, byte slice_alpha_c0_offset_div2, byte slice_beta_offset_div2, byte slice_qp_delta, int cabac_init_idc, int disable_deblocking_filter_idc, StdVideoEncodeH264WeightTable pWeightTable) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.byte
slice_alpha_c0_offset_div2
(byte value) Sets the specified value to theslice_alpha_c0_offset_div2
field.byte
slice_beta_offset_div2
(byte value) Sets the specified value to theslice_beta_offset_div2
field.byte
slice_qp_delta
(byte value) Sets the specified value to theslice_qp_delta
field.int
slice_type
(int value) Sets the specified value to theslice_type
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
FIRST_MB_IN_SLICE
public static final int FIRST_MB_IN_SLICEThe struct member offsets. -
SLICE_TYPE
public static final int SLICE_TYPEThe struct member offsets. -
SLICE_ALPHA_C0_OFFSET_DIV2
public static final int SLICE_ALPHA_C0_OFFSET_DIV2The struct member offsets. -
SLICE_BETA_OFFSET_DIV2
public static final int SLICE_BETA_OFFSET_DIV2The struct member offsets. -
SLICE_QP_DELTA
public static final int SLICE_QP_DELTAThe struct member offsets. -
RESERVED1
public static final int RESERVED1The struct member offsets. -
CABAC_INIT_IDC
public static final int CABAC_INIT_IDCThe struct member offsets. -
DISABLE_DEBLOCKING_FILTER_IDC
public static final int DISABLE_DEBLOCKING_FILTER_IDCThe struct member offsets. -
PWEIGHTTABLE
public static final int PWEIGHTTABLEThe struct member offsets.
-
-
Constructor Details
-
StdVideoEncodeH264SliceHeader
Creates aStdVideoEncodeH264SliceHeader
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<StdVideoEncodeH264SliceHeader>
-
flags
- Returns:
- a
StdVideoEncodeH264SliceHeaderFlags
view of theflags
field.
-
first_mb_in_slice
public int first_mb_in_slice()- Returns:
- the value of the
first_mb_in_slice
field.
-
slice_type
public int slice_type()- Returns:
- the value of the
slice_type
field.
-
slice_alpha_c0_offset_div2
public byte slice_alpha_c0_offset_div2()- Returns:
- the value of the
slice_alpha_c0_offset_div2
field.
-
slice_beta_offset_div2
public byte slice_beta_offset_div2()- Returns:
- the value of the
slice_beta_offset_div2
field.
-
slice_qp_delta
public byte slice_qp_delta()- Returns:
- the value of the
slice_qp_delta
field.
-
cabac_init_idc
public int cabac_init_idc()- Returns:
- the value of the
cabac_init_idc
field.
-
disable_deblocking_filter_idc
public int disable_deblocking_filter_idc()- Returns:
- the value of the
disable_deblocking_filter_idc
field.
-
pWeightTable
- Returns:
- a
StdVideoEncodeH264WeightTable
view of the struct pointed to by thepWeightTable
field.
-
flags
Copies the specifiedStdVideoEncodeH264SliceHeaderFlags
to theflags
field. -
flags
Passes theflags
field to the specifiedConsumer
. -
first_mb_in_slice
Sets the specified value to thefirst_mb_in_slice
field. -
slice_type
Sets the specified value to theslice_type
field. -
slice_alpha_c0_offset_div2
Sets the specified value to theslice_alpha_c0_offset_div2
field. -
slice_beta_offset_div2
Sets the specified value to theslice_beta_offset_div2
field. -
slice_qp_delta
Sets the specified value to theslice_qp_delta
field. -
cabac_init_idc
Sets the specified value to thecabac_init_idc
field. -
disable_deblocking_filter_idc
Sets the specified value to thedisable_deblocking_filter_idc
field. -
pWeightTable
Sets the address of the specifiedStdVideoEncodeH264WeightTable
to thepWeightTable
field. -
set
public StdVideoEncodeH264SliceHeader set(StdVideoEncodeH264SliceHeaderFlags flags, int first_mb_in_slice, int slice_type, byte slice_alpha_c0_offset_div2, byte slice_beta_offset_div2, byte slice_qp_delta, int cabac_init_idc, int disable_deblocking_filter_idc, StdVideoEncodeH264WeightTable pWeightTable) 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 newStdVideoEncodeH264SliceHeader
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH264SliceHeader
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH264SliceHeader
instance allocated withBufferUtils
. -
create
Returns a newStdVideoEncodeH264SliceHeader
instance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aStdVideoEncodeH264SliceHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoEncodeH264SliceHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264SliceHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH264SliceHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264SliceHeader.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()
. -
nfirst_mb_in_slice
public static int nfirst_mb_in_slice(long struct) Unsafe version offirst_mb_in_slice()
. -
nslice_type
public static int nslice_type(long struct) Unsafe version ofslice_type()
. -
nslice_alpha_c0_offset_div2
public static byte nslice_alpha_c0_offset_div2(long struct) Unsafe version ofslice_alpha_c0_offset_div2()
. -
nslice_beta_offset_div2
public static byte nslice_beta_offset_div2(long struct) Unsafe version ofslice_beta_offset_div2()
. -
nslice_qp_delta
public static byte nslice_qp_delta(long struct) Unsafe version ofslice_qp_delta()
. -
nreserved1
public static byte nreserved1(long struct) -
ncabac_init_idc
public static int ncabac_init_idc(long struct) Unsafe version ofcabac_init_idc()
. -
ndisable_deblocking_filter_idc
public static int ndisable_deblocking_filter_idc(long struct) Unsafe version ofdisable_deblocking_filter_idc()
. -
npWeightTable
Unsafe version ofpWeightTable()
. -
nflags
Unsafe version offlags
. -
nfirst_mb_in_slice
public static void nfirst_mb_in_slice(long struct, int value) Unsafe version offirst_mb_in_slice
. -
nslice_type
public static void nslice_type(long struct, int value) Unsafe version ofslice_type
. -
nslice_alpha_c0_offset_div2
public static void nslice_alpha_c0_offset_div2(long struct, byte value) Unsafe version ofslice_alpha_c0_offset_div2
. -
nslice_beta_offset_div2
public static void nslice_beta_offset_div2(long struct, byte value) Unsafe version ofslice_beta_offset_div2
. -
nslice_qp_delta
public static void nslice_qp_delta(long struct, byte value) Unsafe version ofslice_qp_delta
. -
nreserved1
public static void nreserved1(long struct, byte value) -
ncabac_init_idc
public static void ncabac_init_idc(long struct, int value) Unsafe version ofcabac_init_idc
. -
ndisable_deblocking_filter_idc
public static void ndisable_deblocking_filter_idc(long struct, int value) Unsafe version ofdisable_deblocking_filter_idc
. -
npWeightTable
Unsafe version ofpWeightTable
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-