org.lwjgl.vulkan.video.StdVideoDecodeH265PictureInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan.video;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.vulkan.video.STDVulkanVideoCodecH265.*;
/**
* Layout
*
*
* struct StdVideoDecodeH265PictureInfo {
* uint8_t vps_video_parameter_set_id;
* uint8_t sps_seq_parameter_set_id;
* uint8_t pps_pic_parameter_set_id;
* uint8_t num_short_term_ref_pic_sets;
* int32_t PicOrderCntVal;
* uint16_t {@link #NumBitsForSTRefPicSetInSlice};
* uint8_t {@link #NumDeltaPocsOfRefRpsIdx};
* uint8_t {@link #RefPicSetStCurrBefore}[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
* uint8_t {@link #RefPicSetStCurrAfter}[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
* uint8_t {@link #RefPicSetLtCurr}[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
* {@link StdVideoDecodeH265PictureInfoFlags StdVideoDecodeH265PictureInfoFlags} flags;
* }
*/
public class StdVideoDecodeH265PictureInfo extends Struct implements NativeResource {
/** The struct size in bytes. */
public static final int SIZEOF;
/** The struct alignment in bytes. */
public static final int ALIGNOF;
/** The struct member offsets. */
public static final int
VPS_VIDEO_PARAMETER_SET_ID,
SPS_SEQ_PARAMETER_SET_ID,
PPS_PIC_PARAMETER_SET_ID,
NUM_SHORT_TERM_REF_PIC_SETS,
PICORDERCNTVAL,
NUMBITSFORSTREFPICSETINSLICE,
NUMDELTAPOCSOFREFRPSIDX,
REFPICSETSTCURRBEFORE,
REFPICSETSTCURRAFTER,
REFPICSETLTCURR,
FLAGS;
static {
Layout layout = __struct(
__member(1),
__member(1),
__member(1),
__member(1),
__member(4),
__member(2),
__member(1),
__array(1, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE),
__array(1, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE),
__array(1, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE),
__member(StdVideoDecodeH265PictureInfoFlags.SIZEOF, StdVideoDecodeH265PictureInfoFlags.ALIGNOF)
);
SIZEOF = layout.getSize();
ALIGNOF = layout.getAlignment();
VPS_VIDEO_PARAMETER_SET_ID = layout.offsetof(0);
SPS_SEQ_PARAMETER_SET_ID = layout.offsetof(1);
PPS_PIC_PARAMETER_SET_ID = layout.offsetof(2);
NUM_SHORT_TERM_REF_PIC_SETS = layout.offsetof(3);
PICORDERCNTVAL = layout.offsetof(4);
NUMBITSFORSTREFPICSETINSLICE = layout.offsetof(5);
NUMDELTAPOCSOFREFRPSIDX = layout.offsetof(6);
REFPICSETSTCURRBEFORE = layout.offsetof(7);
REFPICSETSTCURRAFTER = layout.offsetof(8);
REFPICSETLTCURR = layout.offsetof(9);
FLAGS = layout.offsetof(10);
}
/**
* Creates a {@code StdVideoDecodeH265PictureInfo} instance at the current position of the specified {@link ByteBuffer} 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.
*/
public StdVideoDecodeH265PictureInfo(ByteBuffer container) {
super(memAddress(container), __checkContainer(container, SIZEOF));
}
@Override
public int sizeof() { return SIZEOF; }
/** @return the value of the {@code vps_video_parameter_set_id} field. */
@NativeType("uint8_t")
public byte vps_video_parameter_set_id() { return nvps_video_parameter_set_id(address()); }
/** @return the value of the {@code sps_seq_parameter_set_id} field. */
@NativeType("uint8_t")
public byte sps_seq_parameter_set_id() { return nsps_seq_parameter_set_id(address()); }
/** @return the value of the {@code pps_pic_parameter_set_id} field. */
@NativeType("uint8_t")
public byte pps_pic_parameter_set_id() { return npps_pic_parameter_set_id(address()); }
/** @return the value of the {@code num_short_term_ref_pic_sets} field. */
@NativeType("uint8_t")
public byte num_short_term_ref_pic_sets() { return nnum_short_term_ref_pic_sets(address()); }
/** @return the value of the {@code PicOrderCntVal} field. */
@NativeType("int32_t")
public int PicOrderCntVal() { return nPicOrderCntVal(address()); }
/** number of bits used in st_ref_pic_set() when short_term_ref_pic_set_sps_flag is 0; otherwise set to 0 */
@NativeType("uint16_t")
public short NumBitsForSTRefPicSetInSlice() { return nNumBitsForSTRefPicSetInSlice(address()); }
/** numDeltaPocs[ RefRpsIdx ] when short_term_ref_pic_set_sps_flag = 1, otherwise 0 */
@NativeType("uint8_t")
public byte NumDeltaPocsOfRefRpsIdx() { return nNumDeltaPocsOfRefRpsIdx(address()); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetStCurrBefore() { return nRefPicSetStCurrBefore(address()); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t")
public byte RefPicSetStCurrBefore(int index) { return nRefPicSetStCurrBefore(address(), index); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetStCurrAfter() { return nRefPicSetStCurrAfter(address()); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t")
public byte RefPicSetStCurrAfter(int index) { return nRefPicSetStCurrAfter(address(), index); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetLtCurr() { return nRefPicSetLtCurr(address()); }
/** slotIndex as used in VkVideoReferenceSlotKHR structures representing pReferenceSlots in VkVideoDecodeInfoKHR, 0xff for invalid slotIndex */
@NativeType("uint8_t")
public byte RefPicSetLtCurr(int index) { return nRefPicSetLtCurr(address(), index); }
/** @return a {@link StdVideoDecodeH265PictureInfoFlags} view of the {@code flags} field. */
public StdVideoDecodeH265PictureInfoFlags flags() { return nflags(address()); }
/** Sets the specified value to the {@code vps_video_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo vps_video_parameter_set_id(@NativeType("uint8_t") byte value) { nvps_video_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code sps_seq_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo sps_seq_parameter_set_id(@NativeType("uint8_t") byte value) { nsps_seq_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code pps_pic_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo pps_pic_parameter_set_id(@NativeType("uint8_t") byte value) { npps_pic_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code num_short_term_ref_pic_sets} field. */
public StdVideoDecodeH265PictureInfo num_short_term_ref_pic_sets(@NativeType("uint8_t") byte value) { nnum_short_term_ref_pic_sets(address(), value); return this; }
/** Sets the specified value to the {@code PicOrderCntVal} field. */
public StdVideoDecodeH265PictureInfo PicOrderCntVal(@NativeType("int32_t") int value) { nPicOrderCntVal(address(), value); return this; }
/** Sets the specified value to the {@link #NumBitsForSTRefPicSetInSlice} field. */
public StdVideoDecodeH265PictureInfo NumBitsForSTRefPicSetInSlice(@NativeType("uint16_t") short value) { nNumBitsForSTRefPicSetInSlice(address(), value); return this; }
/** Sets the specified value to the {@link #NumDeltaPocsOfRefRpsIdx} field. */
public StdVideoDecodeH265PictureInfo NumDeltaPocsOfRefRpsIdx(@NativeType("uint8_t") byte value) { nNumDeltaPocsOfRefRpsIdx(address(), value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link #RefPicSetStCurrBefore} field. */
public StdVideoDecodeH265PictureInfo RefPicSetStCurrBefore(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { nRefPicSetStCurrBefore(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link #RefPicSetStCurrBefore} field. */
public StdVideoDecodeH265PictureInfo RefPicSetStCurrBefore(int index, @NativeType("uint8_t") byte value) { nRefPicSetStCurrBefore(address(), index, value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link #RefPicSetStCurrAfter} field. */
public StdVideoDecodeH265PictureInfo RefPicSetStCurrAfter(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { nRefPicSetStCurrAfter(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link #RefPicSetStCurrAfter} field. */
public StdVideoDecodeH265PictureInfo RefPicSetStCurrAfter(int index, @NativeType("uint8_t") byte value) { nRefPicSetStCurrAfter(address(), index, value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link #RefPicSetLtCurr} field. */
public StdVideoDecodeH265PictureInfo RefPicSetLtCurr(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { nRefPicSetLtCurr(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link #RefPicSetLtCurr} field. */
public StdVideoDecodeH265PictureInfo RefPicSetLtCurr(int index, @NativeType("uint8_t") byte value) { nRefPicSetLtCurr(address(), index, value); return this; }
/** Copies the specified {@link StdVideoDecodeH265PictureInfoFlags} to the {@code flags} field. */
public StdVideoDecodeH265PictureInfo flags(StdVideoDecodeH265PictureInfoFlags value) { nflags(address(), value); return this; }
/** Passes the {@code flags} field to the specified {@link java.util.function.Consumer Consumer}. */
public StdVideoDecodeH265PictureInfo flags(java.util.function.Consumer consumer) { consumer.accept(flags()); return this; }
/** Initializes this struct with the specified values. */
public StdVideoDecodeH265PictureInfo set(
byte vps_video_parameter_set_id,
byte sps_seq_parameter_set_id,
byte pps_pic_parameter_set_id,
byte num_short_term_ref_pic_sets,
int PicOrderCntVal,
short NumBitsForSTRefPicSetInSlice,
byte NumDeltaPocsOfRefRpsIdx,
ByteBuffer RefPicSetStCurrBefore,
ByteBuffer RefPicSetStCurrAfter,
ByteBuffer RefPicSetLtCurr,
StdVideoDecodeH265PictureInfoFlags flags
) {
vps_video_parameter_set_id(vps_video_parameter_set_id);
sps_seq_parameter_set_id(sps_seq_parameter_set_id);
pps_pic_parameter_set_id(pps_pic_parameter_set_id);
num_short_term_ref_pic_sets(num_short_term_ref_pic_sets);
PicOrderCntVal(PicOrderCntVal);
NumBitsForSTRefPicSetInSlice(NumBitsForSTRefPicSetInSlice);
NumDeltaPocsOfRefRpsIdx(NumDeltaPocsOfRefRpsIdx);
RefPicSetStCurrBefore(RefPicSetStCurrBefore);
RefPicSetStCurrAfter(RefPicSetStCurrAfter);
RefPicSetLtCurr(RefPicSetLtCurr);
flags(flags);
return this;
}
/**
* Copies the specified struct data to this struct.
*
* @param src the source struct
*
* @return this struct
*/
public StdVideoDecodeH265PictureInfo set(StdVideoDecodeH265PictureInfo src) {
memCopy(src.address(), address(), SIZEOF);
return this;
}
// -----------------------------------
/** Returns a new {@code StdVideoDecodeH265PictureInfo} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */
public static StdVideoDecodeH265PictureInfo malloc() {
return wrap(StdVideoDecodeH265PictureInfo.class, nmemAllocChecked(SIZEOF));
}
/** Returns a new {@code StdVideoDecodeH265PictureInfo} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */
public static StdVideoDecodeH265PictureInfo calloc() {
return wrap(StdVideoDecodeH265PictureInfo.class, nmemCallocChecked(1, SIZEOF));
}
/** Returns a new {@code StdVideoDecodeH265PictureInfo} instance allocated with {@link BufferUtils}. */
public static StdVideoDecodeH265PictureInfo create() {
ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF);
return wrap(StdVideoDecodeH265PictureInfo.class, memAddress(container), container);
}
/** Returns a new {@code StdVideoDecodeH265PictureInfo} instance for the specified memory address. */
public static StdVideoDecodeH265PictureInfo create(long address) {
return wrap(StdVideoDecodeH265PictureInfo.class, address);
}
/** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static StdVideoDecodeH265PictureInfo createSafe(long address) {
return address == NULL ? null : wrap(StdVideoDecodeH265PictureInfo.class, address);
}
/**
* Returns a new {@link StdVideoDecodeH265PictureInfo.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer malloc(int capacity) {
return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity);
}
/**
* Returns a new {@link StdVideoDecodeH265PictureInfo.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed.
*
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer calloc(int capacity) {
return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity);
}
/**
* Returns a new {@link StdVideoDecodeH265PictureInfo.Buffer} instance allocated with {@link BufferUtils}.
*
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer create(int capacity) {
ByteBuffer container = __create(capacity, SIZEOF);
return wrap(Buffer.class, memAddress(container), capacity, container);
}
/**
* Create a {@link StdVideoDecodeH265PictureInfo.Buffer} instance at the specified memory.
*
* @param address the memory address
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer create(long address, int capacity) {
return wrap(Buffer.class, address, capacity);
}
/** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
@Nullable
public static StdVideoDecodeH265PictureInfo.Buffer createSafe(long address, int capacity) {
return address == NULL ? null : wrap(Buffer.class, address, capacity);
}
/**
* Returns a new {@code StdVideoDecodeH265PictureInfo} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
*/
public static StdVideoDecodeH265PictureInfo malloc(MemoryStack stack) {
return wrap(StdVideoDecodeH265PictureInfo.class, stack.nmalloc(ALIGNOF, SIZEOF));
}
/**
* Returns a new {@code StdVideoDecodeH265PictureInfo} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero.
*
* @param stack the stack from which to allocate
*/
public static StdVideoDecodeH265PictureInfo calloc(MemoryStack stack) {
return wrap(StdVideoDecodeH265PictureInfo.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
}
/**
* Returns a new {@link StdVideoDecodeH265PictureInfo.Buffer} instance allocated on the specified {@link MemoryStack}.
*
* @param stack the stack from which to allocate
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer malloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
}
/**
* Returns a new {@link StdVideoDecodeH265PictureInfo.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero.
*
* @param stack the stack from which to allocate
* @param capacity the buffer capacity
*/
public static StdVideoDecodeH265PictureInfo.Buffer calloc(int capacity, MemoryStack stack) {
return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
}
// -----------------------------------
/** Unsafe version of {@link #vps_video_parameter_set_id}. */
public static byte nvps_video_parameter_set_id(long struct) { return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.VPS_VIDEO_PARAMETER_SET_ID); }
/** Unsafe version of {@link #sps_seq_parameter_set_id}. */
public static byte nsps_seq_parameter_set_id(long struct) { return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.SPS_SEQ_PARAMETER_SET_ID); }
/** Unsafe version of {@link #pps_pic_parameter_set_id}. */
public static byte npps_pic_parameter_set_id(long struct) { return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.PPS_PIC_PARAMETER_SET_ID); }
/** Unsafe version of {@link #num_short_term_ref_pic_sets}. */
public static byte nnum_short_term_ref_pic_sets(long struct) { return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.NUM_SHORT_TERM_REF_PIC_SETS); }
/** Unsafe version of {@link #PicOrderCntVal}. */
public static int nPicOrderCntVal(long struct) { return UNSAFE.getInt(null, struct + StdVideoDecodeH265PictureInfo.PICORDERCNTVAL); }
/** Unsafe version of {@link #NumBitsForSTRefPicSetInSlice}. */
public static short nNumBitsForSTRefPicSetInSlice(long struct) { return UNSAFE.getShort(null, struct + StdVideoDecodeH265PictureInfo.NUMBITSFORSTREFPICSETINSLICE); }
/** Unsafe version of {@link #NumDeltaPocsOfRefRpsIdx}. */
public static byte nNumDeltaPocsOfRefRpsIdx(long struct) { return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.NUMDELTAPOCSOFREFRPSIDX); }
/** Unsafe version of {@link #RefPicSetStCurrBefore}. */
public static ByteBuffer nRefPicSetStCurrBefore(long struct) { return memByteBuffer(struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRBEFORE, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
/** Unsafe version of {@link #RefPicSetStCurrBefore(int) RefPicSetStCurrBefore}. */
public static byte nRefPicSetStCurrBefore(long struct, int index) {
return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRBEFORE + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1);
}
/** Unsafe version of {@link #RefPicSetStCurrAfter}. */
public static ByteBuffer nRefPicSetStCurrAfter(long struct) { return memByteBuffer(struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRAFTER, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
/** Unsafe version of {@link #RefPicSetStCurrAfter(int) RefPicSetStCurrAfter}. */
public static byte nRefPicSetStCurrAfter(long struct, int index) {
return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRAFTER + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1);
}
/** Unsafe version of {@link #RefPicSetLtCurr}. */
public static ByteBuffer nRefPicSetLtCurr(long struct) { return memByteBuffer(struct + StdVideoDecodeH265PictureInfo.REFPICSETLTCURR, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
/** Unsafe version of {@link #RefPicSetLtCurr(int) RefPicSetLtCurr}. */
public static byte nRefPicSetLtCurr(long struct, int index) {
return UNSAFE.getByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETLTCURR + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1);
}
/** Unsafe version of {@link #flags}. */
public static StdVideoDecodeH265PictureInfoFlags nflags(long struct) { return StdVideoDecodeH265PictureInfoFlags.create(struct + StdVideoDecodeH265PictureInfo.FLAGS); }
/** Unsafe version of {@link #vps_video_parameter_set_id(byte) vps_video_parameter_set_id}. */
public static void nvps_video_parameter_set_id(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.VPS_VIDEO_PARAMETER_SET_ID, value); }
/** Unsafe version of {@link #sps_seq_parameter_set_id(byte) sps_seq_parameter_set_id}. */
public static void nsps_seq_parameter_set_id(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.SPS_SEQ_PARAMETER_SET_ID, value); }
/** Unsafe version of {@link #pps_pic_parameter_set_id(byte) pps_pic_parameter_set_id}. */
public static void npps_pic_parameter_set_id(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.PPS_PIC_PARAMETER_SET_ID, value); }
/** Unsafe version of {@link #num_short_term_ref_pic_sets(byte) num_short_term_ref_pic_sets}. */
public static void nnum_short_term_ref_pic_sets(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.NUM_SHORT_TERM_REF_PIC_SETS, value); }
/** Unsafe version of {@link #PicOrderCntVal(int) PicOrderCntVal}. */
public static void nPicOrderCntVal(long struct, int value) { UNSAFE.putInt(null, struct + StdVideoDecodeH265PictureInfo.PICORDERCNTVAL, value); }
/** Unsafe version of {@link #NumBitsForSTRefPicSetInSlice(short) NumBitsForSTRefPicSetInSlice}. */
public static void nNumBitsForSTRefPicSetInSlice(long struct, short value) { UNSAFE.putShort(null, struct + StdVideoDecodeH265PictureInfo.NUMBITSFORSTREFPICSETINSLICE, value); }
/** Unsafe version of {@link #NumDeltaPocsOfRefRpsIdx(byte) NumDeltaPocsOfRefRpsIdx}. */
public static void nNumDeltaPocsOfRefRpsIdx(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.NUMDELTAPOCSOFREFRPSIDX, value); }
/** Unsafe version of {@link #RefPicSetStCurrBefore(ByteBuffer) RefPicSetStCurrBefore}. */
public static void nRefPicSetStCurrBefore(long struct, ByteBuffer value) {
if (CHECKS) { checkGT(value, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
memCopy(memAddress(value), struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRBEFORE, value.remaining() * 1);
}
/** Unsafe version of {@link #RefPicSetStCurrBefore(int, byte) RefPicSetStCurrBefore}. */
public static void nRefPicSetStCurrBefore(long struct, int index, byte value) {
UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRBEFORE + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1, value);
}
/** Unsafe version of {@link #RefPicSetStCurrAfter(ByteBuffer) RefPicSetStCurrAfter}. */
public static void nRefPicSetStCurrAfter(long struct, ByteBuffer value) {
if (CHECKS) { checkGT(value, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
memCopy(memAddress(value), struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRAFTER, value.remaining() * 1);
}
/** Unsafe version of {@link #RefPicSetStCurrAfter(int, byte) RefPicSetStCurrAfter}. */
public static void nRefPicSetStCurrAfter(long struct, int index, byte value) {
UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETSTCURRAFTER + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1, value);
}
/** Unsafe version of {@link #RefPicSetLtCurr(ByteBuffer) RefPicSetLtCurr}. */
public static void nRefPicSetLtCurr(long struct, ByteBuffer value) {
if (CHECKS) { checkGT(value, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE); }
memCopy(memAddress(value), struct + StdVideoDecodeH265PictureInfo.REFPICSETLTCURR, value.remaining() * 1);
}
/** Unsafe version of {@link #RefPicSetLtCurr(int, byte) RefPicSetLtCurr}. */
public static void nRefPicSetLtCurr(long struct, int index, byte value) {
UNSAFE.putByte(null, struct + StdVideoDecodeH265PictureInfo.REFPICSETLTCURR + check(index, STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE) * 1, value);
}
/** Unsafe version of {@link #flags(StdVideoDecodeH265PictureInfoFlags) flags}. */
public static void nflags(long struct, StdVideoDecodeH265PictureInfoFlags value) { memCopy(value.address(), struct + StdVideoDecodeH265PictureInfo.FLAGS, StdVideoDecodeH265PictureInfoFlags.SIZEOF); }
// -----------------------------------
/** An array of {@link StdVideoDecodeH265PictureInfo} structs. */
public static class Buffer extends StructBuffer implements NativeResource {
private static final StdVideoDecodeH265PictureInfo ELEMENT_FACTORY = StdVideoDecodeH265PictureInfo.create(-1L);
/**
* Creates a new {@code StdVideoDecodeH265PictureInfo.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 {@link StdVideoDecodeH265PictureInfo#SIZEOF}, and its mark will be undefined.
*
* The created buffer instance holds a strong reference to the container object.
*/
public Buffer(ByteBuffer container) {
super(container, container.remaining() / SIZEOF);
}
public Buffer(long address, int cap) {
super(address, null, -1, 0, cap, cap);
}
Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) {
super(address, container, mark, pos, lim, cap);
}
@Override
protected Buffer self() {
return this;
}
@Override
protected StdVideoDecodeH265PictureInfo getElementFactory() {
return ELEMENT_FACTORY;
}
/** @return the value of the {@code vps_video_parameter_set_id} field. */
@NativeType("uint8_t")
public byte vps_video_parameter_set_id() { return StdVideoDecodeH265PictureInfo.nvps_video_parameter_set_id(address()); }
/** @return the value of the {@code sps_seq_parameter_set_id} field. */
@NativeType("uint8_t")
public byte sps_seq_parameter_set_id() { return StdVideoDecodeH265PictureInfo.nsps_seq_parameter_set_id(address()); }
/** @return the value of the {@code pps_pic_parameter_set_id} field. */
@NativeType("uint8_t")
public byte pps_pic_parameter_set_id() { return StdVideoDecodeH265PictureInfo.npps_pic_parameter_set_id(address()); }
/** @return the value of the {@code num_short_term_ref_pic_sets} field. */
@NativeType("uint8_t")
public byte num_short_term_ref_pic_sets() { return StdVideoDecodeH265PictureInfo.nnum_short_term_ref_pic_sets(address()); }
/** @return the value of the {@code PicOrderCntVal} field. */
@NativeType("int32_t")
public int PicOrderCntVal() { return StdVideoDecodeH265PictureInfo.nPicOrderCntVal(address()); }
/** @return the value of the {@link StdVideoDecodeH265PictureInfo#NumBitsForSTRefPicSetInSlice} field. */
@NativeType("uint16_t")
public short NumBitsForSTRefPicSetInSlice() { return StdVideoDecodeH265PictureInfo.nNumBitsForSTRefPicSetInSlice(address()); }
/** @return the value of the {@link StdVideoDecodeH265PictureInfo#NumDeltaPocsOfRefRpsIdx} field. */
@NativeType("uint8_t")
public byte NumDeltaPocsOfRefRpsIdx() { return StdVideoDecodeH265PictureInfo.nNumDeltaPocsOfRefRpsIdx(address()); }
/** @return a {@link ByteBuffer} view of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrBefore} field. */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetStCurrBefore() { return StdVideoDecodeH265PictureInfo.nRefPicSetStCurrBefore(address()); }
/** @return the value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrBefore} field. */
@NativeType("uint8_t")
public byte RefPicSetStCurrBefore(int index) { return StdVideoDecodeH265PictureInfo.nRefPicSetStCurrBefore(address(), index); }
/** @return a {@link ByteBuffer} view of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrAfter} field. */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetStCurrAfter() { return StdVideoDecodeH265PictureInfo.nRefPicSetStCurrAfter(address()); }
/** @return the value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrAfter} field. */
@NativeType("uint8_t")
public byte RefPicSetStCurrAfter(int index) { return StdVideoDecodeH265PictureInfo.nRefPicSetStCurrAfter(address(), index); }
/** @return a {@link ByteBuffer} view of the {@link StdVideoDecodeH265PictureInfo#RefPicSetLtCurr} field. */
@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]")
public ByteBuffer RefPicSetLtCurr() { return StdVideoDecodeH265PictureInfo.nRefPicSetLtCurr(address()); }
/** @return the value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetLtCurr} field. */
@NativeType("uint8_t")
public byte RefPicSetLtCurr(int index) { return StdVideoDecodeH265PictureInfo.nRefPicSetLtCurr(address(), index); }
/** @return a {@link StdVideoDecodeH265PictureInfoFlags} view of the {@code flags} field. */
public StdVideoDecodeH265PictureInfoFlags flags() { return StdVideoDecodeH265PictureInfo.nflags(address()); }
/** Sets the specified value to the {@code vps_video_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo.Buffer vps_video_parameter_set_id(@NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nvps_video_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code sps_seq_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo.Buffer sps_seq_parameter_set_id(@NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nsps_seq_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code pps_pic_parameter_set_id} field. */
public StdVideoDecodeH265PictureInfo.Buffer pps_pic_parameter_set_id(@NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.npps_pic_parameter_set_id(address(), value); return this; }
/** Sets the specified value to the {@code num_short_term_ref_pic_sets} field. */
public StdVideoDecodeH265PictureInfo.Buffer num_short_term_ref_pic_sets(@NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nnum_short_term_ref_pic_sets(address(), value); return this; }
/** Sets the specified value to the {@code PicOrderCntVal} field. */
public StdVideoDecodeH265PictureInfo.Buffer PicOrderCntVal(@NativeType("int32_t") int value) { StdVideoDecodeH265PictureInfo.nPicOrderCntVal(address(), value); return this; }
/** Sets the specified value to the {@link StdVideoDecodeH265PictureInfo#NumBitsForSTRefPicSetInSlice} field. */
public StdVideoDecodeH265PictureInfo.Buffer NumBitsForSTRefPicSetInSlice(@NativeType("uint16_t") short value) { StdVideoDecodeH265PictureInfo.nNumBitsForSTRefPicSetInSlice(address(), value); return this; }
/** Sets the specified value to the {@link StdVideoDecodeH265PictureInfo#NumDeltaPocsOfRefRpsIdx} field. */
public StdVideoDecodeH265PictureInfo.Buffer NumDeltaPocsOfRefRpsIdx(@NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nNumDeltaPocsOfRefRpsIdx(address(), value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrBefore} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetStCurrBefore(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { StdVideoDecodeH265PictureInfo.nRefPicSetStCurrBefore(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrBefore} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetStCurrBefore(int index, @NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nRefPicSetStCurrBefore(address(), index, value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrAfter} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetStCurrAfter(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { StdVideoDecodeH265PictureInfo.nRefPicSetStCurrAfter(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetStCurrAfter} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetStCurrAfter(int index, @NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nRefPicSetStCurrAfter(address(), index, value); return this; }
/** Copies the specified {@link ByteBuffer} to the {@link StdVideoDecodeH265PictureInfo#RefPicSetLtCurr} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetLtCurr(@NativeType("uint8_t[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE]") ByteBuffer value) { StdVideoDecodeH265PictureInfo.nRefPicSetLtCurr(address(), value); return this; }
/** Sets the specified value at the specified index of the {@link StdVideoDecodeH265PictureInfo#RefPicSetLtCurr} field. */
public StdVideoDecodeH265PictureInfo.Buffer RefPicSetLtCurr(int index, @NativeType("uint8_t") byte value) { StdVideoDecodeH265PictureInfo.nRefPicSetLtCurr(address(), index, value); return this; }
/** Copies the specified {@link StdVideoDecodeH265PictureInfoFlags} to the {@code flags} field. */
public StdVideoDecodeH265PictureInfo.Buffer flags(StdVideoDecodeH265PictureInfoFlags value) { StdVideoDecodeH265PictureInfo.nflags(address(), value); return this; }
/** Passes the {@code flags} field to the specified {@link java.util.function.Consumer Consumer}. */
public StdVideoDecodeH265PictureInfo.Buffer flags(java.util.function.Consumer consumer) { consumer.accept(flags()); return this; }
}
}