All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.video.StdVideoEncodeH264SliceHeader Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.3.6
Show newest version
/*
 * 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.*;

/**
 * 

Layout

* *

 * struct StdVideoEncodeH264SliceHeader {
 *     {@link StdVideoEncodeH264SliceHeaderFlags StdVideoEncodeH264SliceHeaderFlags} flags;
 *     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;
 *     {@link StdVideoEncodeH264RefMemMgmtCtrlOperations StdVideoEncodeH264RefMemMgmtCtrlOperations} * pMemMgmtCtrlOperations;
 * }
*/ public class StdVideoEncodeH264SliceHeader 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 FLAGS, 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, PMEMMGMTCTRLOPERATIONS; static { Layout layout = __struct( __member(StdVideoEncodeH264SliceHeaderFlags.SIZEOF, StdVideoEncodeH264SliceHeaderFlags.ALIGNOF), __member(4), __member(1), __member(1), __member(2), __member(1), __member(1), __member(4), __member(4), __member(1), __member(1), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); FLAGS = layout.offsetof(0); SLICE_TYPE = layout.offsetof(1); SEQ_PARAMETER_SET_ID = layout.offsetof(2); PIC_PARAMETER_SET_ID = layout.offsetof(3); IDR_PIC_ID = layout.offsetof(4); NUM_REF_IDX_L0_ACTIVE_MINUS1 = layout.offsetof(5); NUM_REF_IDX_L1_ACTIVE_MINUS1 = layout.offsetof(6); CABAC_INIT_IDC = layout.offsetof(7); DISABLE_DEBLOCKING_FILTER_IDC = layout.offsetof(8); SLICE_ALPHA_C0_OFFSET_DIV2 = layout.offsetof(9); SLICE_BETA_OFFSET_DIV2 = layout.offsetof(10); PMEMMGMTCTRLOPERATIONS = layout.offsetof(11); } /** * Creates a {@code StdVideoEncodeH264SliceHeader} 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 StdVideoEncodeH264SliceHeader(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** @return a {@link StdVideoEncodeH264SliceHeaderFlags} view of the {@code flags} field. */ public StdVideoEncodeH264SliceHeaderFlags flags() { return nflags(address()); } /** @return the value of the {@code slice_type} field. */ @NativeType("StdVideoH264SliceType") public int slice_type() { return nslice_type(address()); } /** @return the value of the {@code seq_parameter_set_id} field. */ @NativeType("uint8_t") public byte seq_parameter_set_id() { return nseq_parameter_set_id(address()); } /** @return the value of the {@code pic_parameter_set_id} field. */ @NativeType("uint8_t") public byte pic_parameter_set_id() { return npic_parameter_set_id(address()); } /** @return the value of the {@code idr_pic_id} field. */ @NativeType("uint16_t") public short idr_pic_id() { return nidr_pic_id(address()); } /** @return the value of the {@code num_ref_idx_l0_active_minus1} field. */ @NativeType("uint8_t") public byte num_ref_idx_l0_active_minus1() { return nnum_ref_idx_l0_active_minus1(address()); } /** @return the value of the {@code num_ref_idx_l1_active_minus1} field. */ @NativeType("uint8_t") public byte num_ref_idx_l1_active_minus1() { return nnum_ref_idx_l1_active_minus1(address()); } /** @return the value of the {@code cabac_init_idc} field. */ @NativeType("StdVideoH264CabacInitIdc") public int cabac_init_idc() { return ncabac_init_idc(address()); } /** @return the value of the {@code disable_deblocking_filter_idc} field. */ @NativeType("StdVideoH264DisableDeblockingFilterIdc") public int disable_deblocking_filter_idc() { return ndisable_deblocking_filter_idc(address()); } /** @return the value of the {@code slice_alpha_c0_offset_div2} field. */ @NativeType("int8_t") public byte slice_alpha_c0_offset_div2() { return nslice_alpha_c0_offset_div2(address()); } /** @return the value of the {@code slice_beta_offset_div2} field. */ @NativeType("int8_t") public byte slice_beta_offset_div2() { return nslice_beta_offset_div2(address()); } /** @return a {@link StdVideoEncodeH264RefMemMgmtCtrlOperations} view of the struct pointed to by the {@code pMemMgmtCtrlOperations} field. */ @NativeType("StdVideoEncodeH264RefMemMgmtCtrlOperations *") public StdVideoEncodeH264RefMemMgmtCtrlOperations pMemMgmtCtrlOperations() { return npMemMgmtCtrlOperations(address()); } /** Copies the specified {@link StdVideoEncodeH264SliceHeaderFlags} to the {@code flags} field. */ public StdVideoEncodeH264SliceHeader flags(StdVideoEncodeH264SliceHeaderFlags value) { nflags(address(), value); return this; } /** Passes the {@code flags} field to the specified {@link java.util.function.Consumer Consumer}. */ public StdVideoEncodeH264SliceHeader flags(java.util.function.Consumer consumer) { consumer.accept(flags()); return this; } /** Sets the specified value to the {@code slice_type} field. */ public StdVideoEncodeH264SliceHeader slice_type(@NativeType("StdVideoH264SliceType") int value) { nslice_type(address(), value); return this; } /** Sets the specified value to the {@code seq_parameter_set_id} field. */ public StdVideoEncodeH264SliceHeader seq_parameter_set_id(@NativeType("uint8_t") byte value) { nseq_parameter_set_id(address(), value); return this; } /** Sets the specified value to the {@code pic_parameter_set_id} field. */ public StdVideoEncodeH264SliceHeader pic_parameter_set_id(@NativeType("uint8_t") byte value) { npic_parameter_set_id(address(), value); return this; } /** Sets the specified value to the {@code idr_pic_id} field. */ public StdVideoEncodeH264SliceHeader idr_pic_id(@NativeType("uint16_t") short value) { nidr_pic_id(address(), value); return this; } /** Sets the specified value to the {@code num_ref_idx_l0_active_minus1} field. */ public StdVideoEncodeH264SliceHeader num_ref_idx_l0_active_minus1(@NativeType("uint8_t") byte value) { nnum_ref_idx_l0_active_minus1(address(), value); return this; } /** Sets the specified value to the {@code num_ref_idx_l1_active_minus1} field. */ public StdVideoEncodeH264SliceHeader num_ref_idx_l1_active_minus1(@NativeType("uint8_t") byte value) { nnum_ref_idx_l1_active_minus1(address(), value); return this; } /** Sets the specified value to the {@code cabac_init_idc} field. */ public StdVideoEncodeH264SliceHeader cabac_init_idc(@NativeType("StdVideoH264CabacInitIdc") int value) { ncabac_init_idc(address(), value); return this; } /** Sets the specified value to the {@code disable_deblocking_filter_idc} field. */ public StdVideoEncodeH264SliceHeader disable_deblocking_filter_idc(@NativeType("StdVideoH264DisableDeblockingFilterIdc") int value) { ndisable_deblocking_filter_idc(address(), value); return this; } /** Sets the specified value to the {@code slice_alpha_c0_offset_div2} field. */ public StdVideoEncodeH264SliceHeader slice_alpha_c0_offset_div2(@NativeType("int8_t") byte value) { nslice_alpha_c0_offset_div2(address(), value); return this; } /** Sets the specified value to the {@code slice_beta_offset_div2} field. */ public StdVideoEncodeH264SliceHeader slice_beta_offset_div2(@NativeType("int8_t") byte value) { nslice_beta_offset_div2(address(), value); return this; } /** Sets the address of the specified {@link StdVideoEncodeH264RefMemMgmtCtrlOperations} to the {@code pMemMgmtCtrlOperations} field. */ public StdVideoEncodeH264SliceHeader pMemMgmtCtrlOperations(@NativeType("StdVideoEncodeH264RefMemMgmtCtrlOperations *") StdVideoEncodeH264RefMemMgmtCtrlOperations value) { npMemMgmtCtrlOperations(address(), value); return this; } /** Initializes this struct with the specified values. */ public StdVideoEncodeH264SliceHeader set( StdVideoEncodeH264SliceHeaderFlags flags, 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, StdVideoEncodeH264RefMemMgmtCtrlOperations pMemMgmtCtrlOperations ) { flags(flags); slice_type(slice_type); seq_parameter_set_id(seq_parameter_set_id); pic_parameter_set_id(pic_parameter_set_id); idr_pic_id(idr_pic_id); num_ref_idx_l0_active_minus1(num_ref_idx_l0_active_minus1); num_ref_idx_l1_active_minus1(num_ref_idx_l1_active_minus1); cabac_init_idc(cabac_init_idc); disable_deblocking_filter_idc(disable_deblocking_filter_idc); slice_alpha_c0_offset_div2(slice_alpha_c0_offset_div2); slice_beta_offset_div2(slice_beta_offset_div2); pMemMgmtCtrlOperations(pMemMgmtCtrlOperations); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public StdVideoEncodeH264SliceHeader set(StdVideoEncodeH264SliceHeader src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code StdVideoEncodeH264SliceHeader} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static StdVideoEncodeH264SliceHeader malloc() { return wrap(StdVideoEncodeH264SliceHeader.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code StdVideoEncodeH264SliceHeader} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static StdVideoEncodeH264SliceHeader calloc() { return wrap(StdVideoEncodeH264SliceHeader.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code StdVideoEncodeH264SliceHeader} instance allocated with {@link BufferUtils}. */ public static StdVideoEncodeH264SliceHeader create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(StdVideoEncodeH264SliceHeader.class, memAddress(container), container); } /** Returns a new {@code StdVideoEncodeH264SliceHeader} instance for the specified memory address. */ public static StdVideoEncodeH264SliceHeader create(long address) { return wrap(StdVideoEncodeH264SliceHeader.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static StdVideoEncodeH264SliceHeader createSafe(long address) { return address == NULL ? null : wrap(StdVideoEncodeH264SliceHeader.class, address); } /** * Returns a new {@link StdVideoEncodeH264SliceHeader.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static StdVideoEncodeH264SliceHeader.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link StdVideoEncodeH264SliceHeader.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static StdVideoEncodeH264SliceHeader.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link StdVideoEncodeH264SliceHeader.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static StdVideoEncodeH264SliceHeader.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link StdVideoEncodeH264SliceHeader.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static StdVideoEncodeH264SliceHeader.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 StdVideoEncodeH264SliceHeader.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** * Returns a new {@code StdVideoEncodeH264SliceHeader} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static StdVideoEncodeH264SliceHeader malloc(MemoryStack stack) { return wrap(StdVideoEncodeH264SliceHeader.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code StdVideoEncodeH264SliceHeader} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static StdVideoEncodeH264SliceHeader calloc(MemoryStack stack) { return wrap(StdVideoEncodeH264SliceHeader.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link StdVideoEncodeH264SliceHeader.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static StdVideoEncodeH264SliceHeader.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link StdVideoEncodeH264SliceHeader.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 StdVideoEncodeH264SliceHeader.Buffer calloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #flags}. */ public static StdVideoEncodeH264SliceHeaderFlags nflags(long struct) { return StdVideoEncodeH264SliceHeaderFlags.create(struct + StdVideoEncodeH264SliceHeader.FLAGS); } /** Unsafe version of {@link #slice_type}. */ public static int nslice_type(long struct) { return UNSAFE.getInt(null, struct + StdVideoEncodeH264SliceHeader.SLICE_TYPE); } /** Unsafe version of {@link #seq_parameter_set_id}. */ public static byte nseq_parameter_set_id(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.SEQ_PARAMETER_SET_ID); } /** Unsafe version of {@link #pic_parameter_set_id}. */ public static byte npic_parameter_set_id(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.PIC_PARAMETER_SET_ID); } /** Unsafe version of {@link #idr_pic_id}. */ public static short nidr_pic_id(long struct) { return UNSAFE.getShort(null, struct + StdVideoEncodeH264SliceHeader.IDR_PIC_ID); } /** Unsafe version of {@link #num_ref_idx_l0_active_minus1}. */ public static byte nnum_ref_idx_l0_active_minus1(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.NUM_REF_IDX_L0_ACTIVE_MINUS1); } /** Unsafe version of {@link #num_ref_idx_l1_active_minus1}. */ public static byte nnum_ref_idx_l1_active_minus1(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.NUM_REF_IDX_L1_ACTIVE_MINUS1); } /** Unsafe version of {@link #cabac_init_idc}. */ public static int ncabac_init_idc(long struct) { return UNSAFE.getInt(null, struct + StdVideoEncodeH264SliceHeader.CABAC_INIT_IDC); } /** Unsafe version of {@link #disable_deblocking_filter_idc}. */ public static int ndisable_deblocking_filter_idc(long struct) { return UNSAFE.getInt(null, struct + StdVideoEncodeH264SliceHeader.DISABLE_DEBLOCKING_FILTER_IDC); } /** Unsafe version of {@link #slice_alpha_c0_offset_div2}. */ public static byte nslice_alpha_c0_offset_div2(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.SLICE_ALPHA_C0_OFFSET_DIV2); } /** Unsafe version of {@link #slice_beta_offset_div2}. */ public static byte nslice_beta_offset_div2(long struct) { return UNSAFE.getByte(null, struct + StdVideoEncodeH264SliceHeader.SLICE_BETA_OFFSET_DIV2); } /** Unsafe version of {@link #pMemMgmtCtrlOperations}. */ public static StdVideoEncodeH264RefMemMgmtCtrlOperations npMemMgmtCtrlOperations(long struct) { return StdVideoEncodeH264RefMemMgmtCtrlOperations.create(memGetAddress(struct + StdVideoEncodeH264SliceHeader.PMEMMGMTCTRLOPERATIONS)); } /** Unsafe version of {@link #flags(StdVideoEncodeH264SliceHeaderFlags) flags}. */ public static void nflags(long struct, StdVideoEncodeH264SliceHeaderFlags value) { memCopy(value.address(), struct + StdVideoEncodeH264SliceHeader.FLAGS, StdVideoEncodeH264SliceHeaderFlags.SIZEOF); } /** Unsafe version of {@link #slice_type(int) slice_type}. */ public static void nslice_type(long struct, int value) { UNSAFE.putInt(null, struct + StdVideoEncodeH264SliceHeader.SLICE_TYPE, value); } /** Unsafe version of {@link #seq_parameter_set_id(byte) seq_parameter_set_id}. */ public static void nseq_parameter_set_id(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.SEQ_PARAMETER_SET_ID, value); } /** Unsafe version of {@link #pic_parameter_set_id(byte) pic_parameter_set_id}. */ public static void npic_parameter_set_id(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.PIC_PARAMETER_SET_ID, value); } /** Unsafe version of {@link #idr_pic_id(short) idr_pic_id}. */ public static void nidr_pic_id(long struct, short value) { UNSAFE.putShort(null, struct + StdVideoEncodeH264SliceHeader.IDR_PIC_ID, value); } /** Unsafe version of {@link #num_ref_idx_l0_active_minus1(byte) num_ref_idx_l0_active_minus1}. */ public static void nnum_ref_idx_l0_active_minus1(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.NUM_REF_IDX_L0_ACTIVE_MINUS1, value); } /** Unsafe version of {@link #num_ref_idx_l1_active_minus1(byte) num_ref_idx_l1_active_minus1}. */ public static void nnum_ref_idx_l1_active_minus1(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.NUM_REF_IDX_L1_ACTIVE_MINUS1, value); } /** Unsafe version of {@link #cabac_init_idc(int) cabac_init_idc}. */ public static void ncabac_init_idc(long struct, int value) { UNSAFE.putInt(null, struct + StdVideoEncodeH264SliceHeader.CABAC_INIT_IDC, value); } /** Unsafe version of {@link #disable_deblocking_filter_idc(int) disable_deblocking_filter_idc}. */ public static void ndisable_deblocking_filter_idc(long struct, int value) { UNSAFE.putInt(null, struct + StdVideoEncodeH264SliceHeader.DISABLE_DEBLOCKING_FILTER_IDC, value); } /** Unsafe version of {@link #slice_alpha_c0_offset_div2(byte) slice_alpha_c0_offset_div2}. */ public static void nslice_alpha_c0_offset_div2(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.SLICE_ALPHA_C0_OFFSET_DIV2, value); } /** Unsafe version of {@link #slice_beta_offset_div2(byte) slice_beta_offset_div2}. */ public static void nslice_beta_offset_div2(long struct, byte value) { UNSAFE.putByte(null, struct + StdVideoEncodeH264SliceHeader.SLICE_BETA_OFFSET_DIV2, value); } /** Unsafe version of {@link #pMemMgmtCtrlOperations(StdVideoEncodeH264RefMemMgmtCtrlOperations) pMemMgmtCtrlOperations}. */ public static void npMemMgmtCtrlOperations(long struct, StdVideoEncodeH264RefMemMgmtCtrlOperations value) { memPutAddress(struct + StdVideoEncodeH264SliceHeader.PMEMMGMTCTRLOPERATIONS, value.address()); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { long pMemMgmtCtrlOperations = memGetAddress(struct + StdVideoEncodeH264SliceHeader.PMEMMGMTCTRLOPERATIONS); check(pMemMgmtCtrlOperations); StdVideoEncodeH264RefMemMgmtCtrlOperations.validate(pMemMgmtCtrlOperations); } // ----------------------------------- /** An array of {@link StdVideoEncodeH264SliceHeader} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final StdVideoEncodeH264SliceHeader ELEMENT_FACTORY = StdVideoEncodeH264SliceHeader.create(-1L); /** * Creates a new {@code StdVideoEncodeH264SliceHeader.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 StdVideoEncodeH264SliceHeader#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 StdVideoEncodeH264SliceHeader getElementFactory() { return ELEMENT_FACTORY; } /** @return a {@link StdVideoEncodeH264SliceHeaderFlags} view of the {@code flags} field. */ public StdVideoEncodeH264SliceHeaderFlags flags() { return StdVideoEncodeH264SliceHeader.nflags(address()); } /** @return the value of the {@code slice_type} field. */ @NativeType("StdVideoH264SliceType") public int slice_type() { return StdVideoEncodeH264SliceHeader.nslice_type(address()); } /** @return the value of the {@code seq_parameter_set_id} field. */ @NativeType("uint8_t") public byte seq_parameter_set_id() { return StdVideoEncodeH264SliceHeader.nseq_parameter_set_id(address()); } /** @return the value of the {@code pic_parameter_set_id} field. */ @NativeType("uint8_t") public byte pic_parameter_set_id() { return StdVideoEncodeH264SliceHeader.npic_parameter_set_id(address()); } /** @return the value of the {@code idr_pic_id} field. */ @NativeType("uint16_t") public short idr_pic_id() { return StdVideoEncodeH264SliceHeader.nidr_pic_id(address()); } /** @return the value of the {@code num_ref_idx_l0_active_minus1} field. */ @NativeType("uint8_t") public byte num_ref_idx_l0_active_minus1() { return StdVideoEncodeH264SliceHeader.nnum_ref_idx_l0_active_minus1(address()); } /** @return the value of the {@code num_ref_idx_l1_active_minus1} field. */ @NativeType("uint8_t") public byte num_ref_idx_l1_active_minus1() { return StdVideoEncodeH264SliceHeader.nnum_ref_idx_l1_active_minus1(address()); } /** @return the value of the {@code cabac_init_idc} field. */ @NativeType("StdVideoH264CabacInitIdc") public int cabac_init_idc() { return StdVideoEncodeH264SliceHeader.ncabac_init_idc(address()); } /** @return the value of the {@code disable_deblocking_filter_idc} field. */ @NativeType("StdVideoH264DisableDeblockingFilterIdc") public int disable_deblocking_filter_idc() { return StdVideoEncodeH264SliceHeader.ndisable_deblocking_filter_idc(address()); } /** @return the value of the {@code slice_alpha_c0_offset_div2} field. */ @NativeType("int8_t") public byte slice_alpha_c0_offset_div2() { return StdVideoEncodeH264SliceHeader.nslice_alpha_c0_offset_div2(address()); } /** @return the value of the {@code slice_beta_offset_div2} field. */ @NativeType("int8_t") public byte slice_beta_offset_div2() { return StdVideoEncodeH264SliceHeader.nslice_beta_offset_div2(address()); } /** @return a {@link StdVideoEncodeH264RefMemMgmtCtrlOperations} view of the struct pointed to by the {@code pMemMgmtCtrlOperations} field. */ @NativeType("StdVideoEncodeH264RefMemMgmtCtrlOperations *") public StdVideoEncodeH264RefMemMgmtCtrlOperations pMemMgmtCtrlOperations() { return StdVideoEncodeH264SliceHeader.npMemMgmtCtrlOperations(address()); } /** Copies the specified {@link StdVideoEncodeH264SliceHeaderFlags} to the {@code flags} field. */ public StdVideoEncodeH264SliceHeader.Buffer flags(StdVideoEncodeH264SliceHeaderFlags value) { StdVideoEncodeH264SliceHeader.nflags(address(), value); return this; } /** Passes the {@code flags} field to the specified {@link java.util.function.Consumer Consumer}. */ public StdVideoEncodeH264SliceHeader.Buffer flags(java.util.function.Consumer consumer) { consumer.accept(flags()); return this; } /** Sets the specified value to the {@code slice_type} field. */ public StdVideoEncodeH264SliceHeader.Buffer slice_type(@NativeType("StdVideoH264SliceType") int value) { StdVideoEncodeH264SliceHeader.nslice_type(address(), value); return this; } /** Sets the specified value to the {@code seq_parameter_set_id} field. */ public StdVideoEncodeH264SliceHeader.Buffer seq_parameter_set_id(@NativeType("uint8_t") byte value) { StdVideoEncodeH264SliceHeader.nseq_parameter_set_id(address(), value); return this; } /** Sets the specified value to the {@code pic_parameter_set_id} field. */ public StdVideoEncodeH264SliceHeader.Buffer pic_parameter_set_id(@NativeType("uint8_t") byte value) { StdVideoEncodeH264SliceHeader.npic_parameter_set_id(address(), value); return this; } /** Sets the specified value to the {@code idr_pic_id} field. */ public StdVideoEncodeH264SliceHeader.Buffer idr_pic_id(@NativeType("uint16_t") short value) { StdVideoEncodeH264SliceHeader.nidr_pic_id(address(), value); return this; } /** Sets the specified value to the {@code num_ref_idx_l0_active_minus1} field. */ public StdVideoEncodeH264SliceHeader.Buffer num_ref_idx_l0_active_minus1(@NativeType("uint8_t") byte value) { StdVideoEncodeH264SliceHeader.nnum_ref_idx_l0_active_minus1(address(), value); return this; } /** Sets the specified value to the {@code num_ref_idx_l1_active_minus1} field. */ public StdVideoEncodeH264SliceHeader.Buffer num_ref_idx_l1_active_minus1(@NativeType("uint8_t") byte value) { StdVideoEncodeH264SliceHeader.nnum_ref_idx_l1_active_minus1(address(), value); return this; } /** Sets the specified value to the {@code cabac_init_idc} field. */ public StdVideoEncodeH264SliceHeader.Buffer cabac_init_idc(@NativeType("StdVideoH264CabacInitIdc") int value) { StdVideoEncodeH264SliceHeader.ncabac_init_idc(address(), value); return this; } /** Sets the specified value to the {@code disable_deblocking_filter_idc} field. */ public StdVideoEncodeH264SliceHeader.Buffer disable_deblocking_filter_idc(@NativeType("StdVideoH264DisableDeblockingFilterIdc") int value) { StdVideoEncodeH264SliceHeader.ndisable_deblocking_filter_idc(address(), value); return this; } /** Sets the specified value to the {@code slice_alpha_c0_offset_div2} field. */ public StdVideoEncodeH264SliceHeader.Buffer slice_alpha_c0_offset_div2(@NativeType("int8_t") byte value) { StdVideoEncodeH264SliceHeader.nslice_alpha_c0_offset_div2(address(), value); return this; } /** Sets the specified value to the {@code slice_beta_offset_div2} field. */ public StdVideoEncodeH264SliceHeader.Buffer slice_beta_offset_div2(@NativeType("int8_t") byte value) { StdVideoEncodeH264SliceHeader.nslice_beta_offset_div2(address(), value); return this; } /** Sets the address of the specified {@link StdVideoEncodeH264RefMemMgmtCtrlOperations} to the {@code pMemMgmtCtrlOperations} field. */ public StdVideoEncodeH264SliceHeader.Buffer pMemMgmtCtrlOperations(@NativeType("StdVideoEncodeH264RefMemMgmtCtrlOperations *") StdVideoEncodeH264RefMemMgmtCtrlOperations value) { StdVideoEncodeH264SliceHeader.npMemMgmtCtrlOperations(address(), value); return this; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy