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 {
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;
StdVideoEncodeH264WeightTable const * pWeightTable;
}-
Nested Class Summary
Nested ClassesNested 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 size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStdVideoEncodeH264SliceHeader(ByteBuffer container) Creates aStdVideoEncodeH264SliceHeaderinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintcabac_init_idc(int value) Sets the specified value to thecabac_init_idcfield.calloc()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemCalloc.calloc(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withBufferUtils.create(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withBufferUtils.create(long address) Returns a newStdVideoEncodeH264SliceHeaderinstance for the specified memory address.create(long address, int capacity) Create aStdVideoEncodeH264SliceHeader.Bufferinstance at the specified memory.static @Nullable StdVideoEncodeH264SliceHeadercreateSafe(long address) static @Nullable StdVideoEncodeH264SliceHeader.BuffercreateSafe(long address, int capacity) intdisable_deblocking_filter_idc(int value) Sets the specified value to thedisable_deblocking_filter_idcfield.intfirst_mb_in_slice(int value) Sets the specified value to thefirst_mb_in_slicefield.flags()flags(Consumer<StdVideoEncodeH264SliceHeaderFlags> consumer) Passes theflagsfield to the specifiedConsumer.Copies the specifiedStdVideoEncodeH264SliceHeaderFlagsto theflagsfield.malloc()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemAlloc.malloc(int capacity) Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStack.static intncabac_init_idc(long struct) Unsafe version ofcabac_init_idc().static voidncabac_init_idc(long struct, int value) Unsafe version ofcabac_init_idc.static intndisable_deblocking_filter_idc(long struct) Unsafe version ofdisable_deblocking_filter_idc().static voidndisable_deblocking_filter_idc(long struct, int value) Unsafe version ofdisable_deblocking_filter_idc.static intnfirst_mb_in_slice(long struct) Unsafe version offirst_mb_in_slice().static voidnfirst_mb_in_slice(long struct, int value) Unsafe version offirst_mb_in_slice.nflags(long struct) Unsafe version offlags().static voidnflags(long struct, StdVideoEncodeH264SliceHeaderFlags value) Unsafe version offlags.npWeightTable(long struct) Unsafe version ofpWeightTable().static voidnpWeightTable(long struct, StdVideoEncodeH264WeightTable value) Unsafe version ofpWeightTable.static bytenreserved1(long struct) static voidnreserved1(long struct, byte value) static bytenslice_alpha_c0_offset_div2(long struct) Unsafe version ofslice_alpha_c0_offset_div2().static voidnslice_alpha_c0_offset_div2(long struct, byte value) Unsafe version ofslice_alpha_c0_offset_div2.static bytenslice_beta_offset_div2(long struct) Unsafe version ofslice_beta_offset_div2().static voidnslice_beta_offset_div2(long struct, byte value) Unsafe version ofslice_beta_offset_div2.static bytenslice_qp_delta(long struct) Unsafe version ofslice_qp_delta().static voidnslice_qp_delta(long struct, byte value) Unsafe version ofslice_qp_delta.static intnslice_type(long struct) Unsafe version ofslice_type().static voidnslice_type(long struct, int value) Unsafe version ofslice_type.Sets the address of the specifiedStdVideoEncodeH264WeightTableto thepWeightTablefield.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.intsizeof()Returnssizeof(struct).byteslice_alpha_c0_offset_div2(byte value) Sets the specified value to theslice_alpha_c0_offset_div2field.byteslice_beta_offset_div2(byte value) Sets the specified value to theslice_beta_offset_div2field.byteslice_qp_delta(byte value) Sets the specified value to theslice_qp_deltafield.intslice_type(int value) Sets the specified value to theslice_typefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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 aStdVideoEncodeH264SliceHeaderinstance 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<StdVideoEncodeH264SliceHeader>
-
flags
- Returns:
- a
StdVideoEncodeH264SliceHeaderFlagsview of theflagsfield.
-
first_mb_in_slice
public int first_mb_in_slice()- Returns:
- the value of the
first_mb_in_slicefield.
-
slice_type
public int slice_type()- Returns:
- the value of the
slice_typefield.
-
slice_alpha_c0_offset_div2
public byte slice_alpha_c0_offset_div2()- Returns:
- the value of the
slice_alpha_c0_offset_div2field.
-
slice_beta_offset_div2
public byte slice_beta_offset_div2()- Returns:
- the value of the
slice_beta_offset_div2field.
-
slice_qp_delta
public byte slice_qp_delta()- Returns:
- the value of the
slice_qp_deltafield.
-
cabac_init_idc
public int cabac_init_idc()- Returns:
- the value of the
cabac_init_idcfield.
-
disable_deblocking_filter_idc
public int disable_deblocking_filter_idc()- Returns:
- the value of the
disable_deblocking_filter_idcfield.
-
pWeightTable
- Returns:
- a
StdVideoEncodeH264WeightTableview of the struct pointed to by thepWeightTablefield.
-
flags
Copies the specifiedStdVideoEncodeH264SliceHeaderFlagsto theflagsfield. -
flags
Passes theflagsfield to the specifiedConsumer. -
first_mb_in_slice
Sets the specified value to thefirst_mb_in_slicefield. -
slice_type
Sets the specified value to theslice_typefield. -
slice_alpha_c0_offset_div2
Sets the specified value to theslice_alpha_c0_offset_div2field. -
slice_beta_offset_div2
Sets the specified value to theslice_beta_offset_div2field. -
slice_qp_delta
Sets the specified value to theslice_qp_deltafield. -
cabac_init_idc
Sets the specified value to thecabac_init_idcfield. -
disable_deblocking_filter_idc
Sets the specified value to thedisable_deblocking_filter_idcfield. -
pWeightTable
Sets the address of the specifiedStdVideoEncodeH264WeightTableto thepWeightTablefield. -
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 newStdVideoEncodeH264SliceHeaderinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withBufferUtils. -
create
Returns a newStdVideoEncodeH264SliceHeaderinstance for the specified memory address. -
createSafe
-
malloc
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aStdVideoEncodeH264SliceHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newStdVideoEncodeH264SliceHeader.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(). -
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
-