Package org.lwjgl.vulkan.video
Class StdVideoEncodeH264SliceHeader.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<StdVideoEncodeH264SliceHeader.Buffer>
org.lwjgl.system.StructBuffer<StdVideoEncodeH264SliceHeader,StdVideoEncodeH264SliceHeader.Buffer>
org.lwjgl.vulkan.video.StdVideoEncodeH264SliceHeader.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<StdVideoEncodeH264SliceHeader>
,NativeResource
,Pointer
- Enclosing class:
StdVideoEncodeH264SliceHeader
public static class StdVideoEncodeH264SliceHeader.Buffer
extends StructBuffer<StdVideoEncodeH264SliceHeader,StdVideoEncodeH264SliceHeader.Buffer>
implements NativeResource
An array of
StdVideoEncodeH264SliceHeader
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newStdVideoEncodeH264SliceHeader.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
cabac_init_idc
(int value) Sets the specified value to thecabac_init_idc
field.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.Sets the address of the specifiedStdVideoEncodeH264WeightTable
to thepWeightTable
field.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.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newStdVideoEncodeH264SliceHeader.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
StdVideoEncodeH264SliceHeader.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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
public StdVideoEncodeH264SliceHeader.Buffer flags(Consumer<StdVideoEncodeH264SliceHeaderFlags> consumer) 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.
-