In order to provide H.265-specific stream rate control parameters, add a VkVideoEncodeH265RateControlInfoEXT structure to the pNext chain of the VkVideoEncodeRateControlInfoKHR structure in the pNext chain of the VkVideoCodingControlInfoKHR structure passed to the CmdControlVideoCodingKHR command.
The parameters from this structure act as a guidance for implementations to apply various rate control heuristics.
It is possible to infer the picture type to be used when encoding a frame, on the basis of the values provided for consecutiveBFrameCount, idrPeriod, and gopFrameCount, but this inferred picture type will not be used by implementations to override the picture type provided in CmdEncodeVideoKHR. Additionally, it is not required for the video session to be reset if the inferred picture type does not match the actual picture type.
sType must be STRUCTURE_TYPE_VIDEO_ENCODE_H265_RATE_CONTROL_INFO_EXTflags must be a valid combination of VkVideoEncodeH265RateControlFlagBitsEXT values
struct VkVideoEncodeH265RateControlInfoEXT {
VkStructureType sType;
void const * pNext;
VkVideoEncodeH265RateControlFlagsEXT flags;
uint32_t gopFrameCount;
uint32_t idrPeriod;
uint32_t consecutiveBFrameCount;
uint32_t subLayerCount;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkVideoEncodeH265RateControlInfoEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CONSECUTIVEBFRAMECOUNT
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | GOPFRAMECOUNT
The struct member offsets. |
| public static final int | IDRPERIOD
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | SUBLAYERCOUNT
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkVideoEncodeH265RateControlInfoEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT | |
| public static VkVideoEncodeH265RateControlInfoEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | consecutiveBFrameCount()
the number of consecutive B-frames between I- and/or P-frames within the GOP. |
| public VkVideoEncodeH265RateControlInfoEXT | |
| protected VkVideoEncodeH265RateControlInfoEXT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkVideoEncodeH265RateControlInfoEXT | |
| public static VkVideoEncodeH265RateControlInfoEXT | create(long address)
Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkVideoEncodeH265RateControlInfoEXT | |
| public static VkVideoEncodeH265RateControlInfoEXT. | |
| public int | |
| public VkVideoEncodeH265RateControlInfoEXT | |
| public int | gopFrameCount()
the number of frames contained within the group of pictures (GOP), starting from an intra frame and until the next intra frame. |
| public VkVideoEncodeH265RateControlInfoEXT | |
| public int | |
| public VkVideoEncodeH265RateControlInfoEXT | |
| public static VkVideoEncodeH265RateControlInfoEXT | |
| public static VkVideoEncodeH265RateControlInfoEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkVideoEncodeH265RateControlInfoEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public VkVideoEncodeH265RateControlInfoEXT | |
| public VkVideoEncodeH265RateControlInfoEXT | set(int sType, long pNext, int flags, int gopFrameCount, int idrPeriod, int consecutiveBFrameCount, int subLayerCount)
Initializes this struct with the specified values. |
| public VkVideoEncodeH265RateControlInfoEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkVideoEncodeH265RateControlInfoEXT | |
| public VkVideoEncodeH265RateControlInfoEXT | sType$Default()
Sets the |
| public int | |
| public VkVideoEncodeH265RateControlInfoEXT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CONSECUTIVEBFRAMECOUNT | back to summary |
|---|---|
| public static final int CONSECUTIVEBFRAMECOUNT The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| GOPFRAMECOUNT | back to summary |
|---|---|
| public static final int GOPFRAMECOUNT The struct member offsets. | |
| IDRPERIOD | back to summary |
|---|---|
| public static final int IDRPERIOD The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| SUBLAYERCOUNT | back to summary |
|---|---|
| public static final int SUBLAYERCOUNT The struct member offsets. | |
| VkVideoEncodeH265RateControlInfoEXT | back to summary |
|---|---|
| protected VkVideoEncodeH265RateControlInfoEXT(long address, ByteBuffer container) | |
| VkVideoEncodeH265RateControlInfoEXT | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Returns a new
| |
| consecutiveBFrameCount | back to summary |
|---|---|
| public int consecutiveBFrameCount() the number of consecutive B-frames between I- and/or P-frames within the GOP.
| |
| consecutiveBFrameCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT consecutiveBFrameCount(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected VkVideoEncodeH265RateControlInfoEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Like
| |
| flags | back to summary |
|---|---|
| public int flags() a bitmask of
| |
| flags | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT flags(int value) Sets the specified value to the | |
| gopFrameCount | back to summary |
|---|---|
| public int gopFrameCount() the number of frames contained within the group of pictures (GOP), starting from an intra frame and until the next intra frame. If it is set to 0, the implementation chooses a suitable value. If it is set to
| |
| gopFrameCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT gopFrameCount(int value) Sets the specified value to the | |
| idrPeriod | back to summary |
|---|---|
| public int idrPeriod() the interval, in terms of number of frames, between two IDR frames. If it is set to 0, the implementation chooses a suitable value. If it is set to
| |
| idrPeriod | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT idrPeriod(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkVideoEncodeH265RateControlInfoEXT. Returns a new
| |
| nconsecutiveBFrameCount | back to summary |
|---|---|
| public static int nconsecutiveBFrameCount(long struct) Unsafe version of | |
| nconsecutiveBFrameCount | back to summary |
|---|---|
| public static void nconsecutiveBFrameCount(long struct, int value) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| ngopFrameCount | back to summary |
|---|---|
| public static int ngopFrameCount(long struct) Unsafe version of | |
| ngopFrameCount | back to summary |
|---|---|
| public static void ngopFrameCount(long struct, int value) Unsafe version of | |
| nidrPeriod | back to summary |
|---|---|
| public static int nidrPeriod(long struct) Unsafe version of | |
| nidrPeriod | back to summary |
|---|---|
| public static void nidrPeriod(long struct, int value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| nsubLayerCount | back to summary |
|---|---|
| public static int nsubLayerCount(long struct) Unsafe version of | |
| nsubLayerCount | back to summary |
|---|---|
| public static void nsubLayerCount(long struct, int value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT pNext(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT set(int sType, long pNext, int flags, int gopFrameCount, int idrPeriod, int consecutiveBFrameCount, int subLayerCount) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT set(VkVideoEncodeH265RateControlInfoEXT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT sType$Default() Sets the | |
| subLayerCount | back to summary |
|---|---|
| public int subLayerCount() specifies the number of sub layers enabled in the stream.
| |
| subLayerCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT subLayerCount(int value) Sets the specified value to the | |
VkVideoEncodeH265RateControlInfoEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkVideoEncodeH265RateControlInfoEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkVideoEncodeH265RateControlInfoEXT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| consecutiveBFrameCount | back to summary |
|---|---|
public int consecutiveBFrameCount()
| |
| consecutiveBFrameCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkVideoEncodeH265RateControlInfoEXT getElementFactory() Implements abstract org.
| |
| gopFrameCount | back to summary |
|---|---|
public int gopFrameCount()
| |
| gopFrameCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| idrPeriod | back to summary |
|---|---|
public int idrPeriod()
| |
| idrPeriod | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkVideoEncodeH265RateControlInfoEXT. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the | |
| subLayerCount | back to summary |
|---|---|
public int subLayerCount()
| |
| subLayerCount | back to summary |
|---|---|
| public VkVideoEncodeH265RateControlInfoEXT. Sets the specified value to the | |