Package org.lwjgl.vulkan.video
Class StdVideoEncodeH264SliceHeader
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.video.StdVideoEncodeH264SliceHeader
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class StdVideoEncodeH264SliceHeader extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct StdVideoEncodeH264SliceHeader {StdVideoEncodeH264SliceHeaderFlagsflags; uint32_t first_mb_in_slice; StdVideoH264SliceType slice_type; uint8_t seq_parameter_set_id; uint8_t pic_parameter_set_id; uint16_t idr_pic_id; uint8_t num_ref_idx_l0_active_minus1; uint8_t num_ref_idx_l1_active_minus1; StdVideoH264CabacInitIdc cabac_init_idc; StdVideoH264DisableDeblockingFilterIdc disable_deblocking_filter_idc; int8_t slice_alpha_c0_offset_div2; int8_t slice_beta_offset_div2; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStdVideoEncodeH264SliceHeader.BufferAn array ofStdVideoEncodeH264SliceHeaderstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCABAC_INIT_IDC
DISABLE_DEBLOCKING_FILTER_IDC
FIRST_MB_IN_SLICE
FLAGS
IDR_PIC_ID
NUM_REF_IDX_L0_ACTIVE_MINUS1
NUM_REF_IDX_L1_ACTIVE_MINUS1
PIC_PARAMETER_SET_ID
SEQ_PARAMETER_SET_IDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSLICE_ALPHA_C0_OFFSET_DIV2
SLICE_BETA_OFFSET_DIV2
SLICE_TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description StdVideoEncodeH264SliceHeader(java.nio.ByteBuffer container)Creates aStdVideoEncodeH264SliceHeaderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcabac_init_idc()StdVideoEncodeH264SliceHeadercabac_init_idc(int value)Sets the specified value to thecabac_init_idcfield.static StdVideoEncodeH264SliceHeadercalloc()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemCalloc.static StdVideoEncodeH264SliceHeader.Buffercalloc(int capacity)Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemCalloc.static StdVideoEncodeH264SliceHeader.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoEncodeH264SliceHeadercalloc(org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static StdVideoEncodeH264SliceHeadercreate()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withBufferUtils.static StdVideoEncodeH264SliceHeader.Buffercreate(int capacity)Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withBufferUtils.static StdVideoEncodeH264SliceHeadercreate(long address)Returns a newStdVideoEncodeH264SliceHeaderinstance for the specified memory address.static StdVideoEncodeH264SliceHeader.Buffercreate(long address, int capacity)Create aStdVideoEncodeH264SliceHeader.Bufferinstance at the specified memory.static StdVideoEncodeH264SliceHeadercreateSafe(long address)static StdVideoEncodeH264SliceHeader.BuffercreateSafe(long address, int capacity)intdisable_deblocking_filter_idc()StdVideoEncodeH264SliceHeaderdisable_deblocking_filter_idc(int value)Sets the specified value to thedisable_deblocking_filter_idcfield.intfirst_mb_in_slice()StdVideoEncodeH264SliceHeaderfirst_mb_in_slice(int value)Sets the specified value to thefirst_mb_in_slicefield.StdVideoEncodeH264SliceHeaderFlagsflags()StdVideoEncodeH264SliceHeaderflags(java.util.function.Consumer<StdVideoEncodeH264SliceHeaderFlags> consumer)Passes theflagsfield to the specifiedConsumer.StdVideoEncodeH264SliceHeaderflags(StdVideoEncodeH264SliceHeaderFlags value)Copies the specifiedStdVideoEncodeH264SliceHeaderFlagsto theflagsfield.shortidr_pic_id()StdVideoEncodeH264SliceHeaderidr_pic_id(short value)Sets the specified value to theidr_pic_idfield.static StdVideoEncodeH264SliceHeadermalloc()Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemAlloc.static StdVideoEncodeH264SliceHeader.Buffermalloc(int capacity)Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemAlloc.static StdVideoEncodeH264SliceHeader.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStack.static StdVideoEncodeH264SliceHeadermalloc(org.lwjgl.system.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.static StdVideoEncodeH264SliceHeaderFlagsnflags(long struct)Unsafe version offlags().static voidnflags(long struct, StdVideoEncodeH264SliceHeaderFlags value)Unsafe version offlags.static shortnidr_pic_id(long struct)Unsafe version ofidr_pic_id().static voidnidr_pic_id(long struct, short value)Unsafe version ofidr_pic_id.static bytennum_ref_idx_l0_active_minus1(long struct)Unsafe version ofnum_ref_idx_l0_active_minus1().static voidnnum_ref_idx_l0_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l0_active_minus1.static bytennum_ref_idx_l1_active_minus1(long struct)Unsafe version ofnum_ref_idx_l1_active_minus1().static voidnnum_ref_idx_l1_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l1_active_minus1.static bytenpic_parameter_set_id(long struct)Unsafe version ofpic_parameter_set_id().static voidnpic_parameter_set_id(long struct, byte value)Unsafe version ofpic_parameter_set_id.static bytenseq_parameter_set_id(long struct)Unsafe version ofseq_parameter_set_id().static voidnseq_parameter_set_id(long struct, byte value)Unsafe version ofseq_parameter_set_id.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 intnslice_type(long struct)Unsafe version ofslice_type().static voidnslice_type(long struct, int value)Unsafe version ofslice_type.bytenum_ref_idx_l0_active_minus1()StdVideoEncodeH264SliceHeadernum_ref_idx_l0_active_minus1(byte value)Sets the specified value to thenum_ref_idx_l0_active_minus1field.bytenum_ref_idx_l1_active_minus1()StdVideoEncodeH264SliceHeadernum_ref_idx_l1_active_minus1(byte value)Sets the specified value to thenum_ref_idx_l1_active_minus1field.bytepic_parameter_set_id()StdVideoEncodeH264SliceHeaderpic_parameter_set_id(byte value)Sets the specified value to thepic_parameter_set_idfield.byteseq_parameter_set_id()StdVideoEncodeH264SliceHeaderseq_parameter_set_id(byte value)Sets the specified value to theseq_parameter_set_idfield.StdVideoEncodeH264SliceHeaderset(StdVideoEncodeH264SliceHeader src)Copies the specified struct data to this struct.StdVideoEncodeH264SliceHeaderset(StdVideoEncodeH264SliceHeaderFlags flags, int first_mb_in_slice, int slice_type, byte seq_parameter_set_id, byte pic_parameter_set_id, short idr_pic_id, byte num_ref_idx_l0_active_minus1, byte num_ref_idx_l1_active_minus1, int cabac_init_idc, int disable_deblocking_filter_idc, byte slice_alpha_c0_offset_div2, byte slice_beta_offset_div2)Initializes this struct with the specified values.intsizeof()byteslice_alpha_c0_offset_div2()StdVideoEncodeH264SliceHeaderslice_alpha_c0_offset_div2(byte value)Sets the specified value to theslice_alpha_c0_offset_div2field.byteslice_beta_offset_div2()StdVideoEncodeH264SliceHeaderslice_beta_offset_div2(byte value)Sets the specified value to theslice_beta_offset_div2field.intslice_type()StdVideoEncodeH264SliceHeaderslice_type(int value)Sets the specified value to theslice_typefield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
FLAGS, FIRST_MB_IN_SLICE, SLICE_TYPE, SEQ_PARAMETER_SET_ID, PIC_PARAMETER_SET_ID, IDR_PIC_ID, NUM_REF_IDX_L0_ACTIVE_MINUS1, NUM_REF_IDX_L1_ACTIVE_MINUS1, CABAC_INIT_IDC, DISABLE_DEBLOCKING_FILTER_IDC, SLICE_ALPHA_C0_OFFSET_DIV2, SLICE_BETA_OFFSET_DIV2
The struct member offsets.
-
-
Constructor Detail
-
StdVideoEncodeH264SliceHeader
public StdVideoEncodeH264SliceHeader(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
flags
public StdVideoEncodeH264SliceHeaderFlags 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.
-
seq_parameter_set_id
public byte seq_parameter_set_id()
- Returns:
- the value of the
seq_parameter_set_idfield.
-
pic_parameter_set_id
public byte pic_parameter_set_id()
- Returns:
- the value of the
pic_parameter_set_idfield.
-
idr_pic_id
public short idr_pic_id()
- Returns:
- the value of the
idr_pic_idfield.
-
num_ref_idx_l0_active_minus1
public byte num_ref_idx_l0_active_minus1()
- Returns:
- the value of the
num_ref_idx_l0_active_minus1field.
-
num_ref_idx_l1_active_minus1
public byte num_ref_idx_l1_active_minus1()
- Returns:
- the value of the
num_ref_idx_l1_active_minus1field.
-
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.
-
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.
-
flags
public StdVideoEncodeH264SliceHeader flags(StdVideoEncodeH264SliceHeaderFlags value)
Copies the specifiedStdVideoEncodeH264SliceHeaderFlagsto theflagsfield.
-
flags
public StdVideoEncodeH264SliceHeader flags(java.util.function.Consumer<StdVideoEncodeH264SliceHeaderFlags> consumer)
Passes theflagsfield to the specifiedConsumer.
-
first_mb_in_slice
public StdVideoEncodeH264SliceHeader first_mb_in_slice(int value)
Sets the specified value to thefirst_mb_in_slicefield.
-
slice_type
public StdVideoEncodeH264SliceHeader slice_type(int value)
Sets the specified value to theslice_typefield.
-
seq_parameter_set_id
public StdVideoEncodeH264SliceHeader seq_parameter_set_id(byte value)
Sets the specified value to theseq_parameter_set_idfield.
-
pic_parameter_set_id
public StdVideoEncodeH264SliceHeader pic_parameter_set_id(byte value)
Sets the specified value to thepic_parameter_set_idfield.
-
idr_pic_id
public StdVideoEncodeH264SliceHeader idr_pic_id(short value)
Sets the specified value to theidr_pic_idfield.
-
num_ref_idx_l0_active_minus1
public StdVideoEncodeH264SliceHeader num_ref_idx_l0_active_minus1(byte value)
Sets the specified value to thenum_ref_idx_l0_active_minus1field.
-
num_ref_idx_l1_active_minus1
public StdVideoEncodeH264SliceHeader num_ref_idx_l1_active_minus1(byte value)
Sets the specified value to thenum_ref_idx_l1_active_minus1field.
-
cabac_init_idc
public StdVideoEncodeH264SliceHeader cabac_init_idc(int value)
Sets the specified value to thecabac_init_idcfield.
-
disable_deblocking_filter_idc
public StdVideoEncodeH264SliceHeader disable_deblocking_filter_idc(int value)
Sets the specified value to thedisable_deblocking_filter_idcfield.
-
slice_alpha_c0_offset_div2
public StdVideoEncodeH264SliceHeader slice_alpha_c0_offset_div2(byte value)
Sets the specified value to theslice_alpha_c0_offset_div2field.
-
slice_beta_offset_div2
public StdVideoEncodeH264SliceHeader slice_beta_offset_div2(byte value)
Sets the specified value to theslice_beta_offset_div2field.
-
set
public StdVideoEncodeH264SliceHeader set(StdVideoEncodeH264SliceHeaderFlags flags, int first_mb_in_slice, int slice_type, byte seq_parameter_set_id, byte pic_parameter_set_id, short idr_pic_id, byte num_ref_idx_l0_active_minus1, byte num_ref_idx_l1_active_minus1, int cabac_init_idc, int disable_deblocking_filter_idc, byte slice_alpha_c0_offset_div2, byte slice_beta_offset_div2)
Initializes this struct with the specified values.
-
set
public StdVideoEncodeH264SliceHeader set(StdVideoEncodeH264SliceHeader src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static StdVideoEncodeH264SliceHeader malloc()
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static StdVideoEncodeH264SliceHeader calloc()
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static StdVideoEncodeH264SliceHeader create()
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated withBufferUtils.
-
create
public static StdVideoEncodeH264SliceHeader create(long address)
Returns a newStdVideoEncodeH264SliceHeaderinstance for the specified memory address.
-
createSafe
@Nullable public static StdVideoEncodeH264SliceHeader createSafe(long address)
-
malloc
public static StdVideoEncodeH264SliceHeader.Buffer malloc(int capacity)
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static StdVideoEncodeH264SliceHeader.Buffer calloc(int capacity)
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoEncodeH264SliceHeader.Buffer create(int capacity)
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static StdVideoEncodeH264SliceHeader.Buffer create(long address, int capacity)
Create aStdVideoEncodeH264SliceHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static StdVideoEncodeH264SliceHeader.Buffer createSafe(long address, int capacity)
-
malloc
public static StdVideoEncodeH264SliceHeader malloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static StdVideoEncodeH264SliceHeader calloc(org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264SliceHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static StdVideoEncodeH264SliceHeader.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static StdVideoEncodeH264SliceHeader.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newStdVideoEncodeH264SliceHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nflags
public static StdVideoEncodeH264SliceHeaderFlags nflags(long struct)
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().
-
nseq_parameter_set_id
public static byte nseq_parameter_set_id(long struct)
Unsafe version ofseq_parameter_set_id().
-
npic_parameter_set_id
public static byte npic_parameter_set_id(long struct)
Unsafe version ofpic_parameter_set_id().
-
nidr_pic_id
public static short nidr_pic_id(long struct)
Unsafe version ofidr_pic_id().
-
nnum_ref_idx_l0_active_minus1
public static byte nnum_ref_idx_l0_active_minus1(long struct)
Unsafe version ofnum_ref_idx_l0_active_minus1().
-
nnum_ref_idx_l1_active_minus1
public static byte nnum_ref_idx_l1_active_minus1(long struct)
Unsafe version ofnum_ref_idx_l1_active_minus1().
-
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().
-
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().
-
nflags
public static void nflags(long struct, StdVideoEncodeH264SliceHeaderFlags value)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.
-
nseq_parameter_set_id
public static void nseq_parameter_set_id(long struct, byte value)Unsafe version ofseq_parameter_set_id.
-
npic_parameter_set_id
public static void npic_parameter_set_id(long struct, byte value)Unsafe version ofpic_parameter_set_id.
-
nidr_pic_id
public static void nidr_pic_id(long struct, short value)Unsafe version ofidr_pic_id.
-
nnum_ref_idx_l0_active_minus1
public static void nnum_ref_idx_l0_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l0_active_minus1.
-
nnum_ref_idx_l1_active_minus1
public static void nnum_ref_idx_l1_active_minus1(long struct, byte value)Unsafe version ofnum_ref_idx_l1_active_minus1.
-
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.
-
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.
-
-