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

org.lwjgl.vulkan.VkVideoEncodeH265VclFrameInfoEXT 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.4
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;

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 org.lwjgl.vulkan.video.*;

/**
 * Structure specifies H.265 encode frame parameters.
 * 
 * 
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link EXTVideoEncodeH265#VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT}
  • *
  • If {@code pReferenceFinalLists} is not {@code NULL}, {@code pReferenceFinalLists} must be a valid pointer to a valid {@link VkVideoEncodeH265ReferenceListsEXT} structure
  • *
  • {@code pNaluSliceEntries} must be a valid pointer to an array of {@code naluSliceEntryCount} valid {@link VkVideoEncodeH265NaluSliceEXT} structures
  • *
  • {@code pCurrentPictureInfo} must be a valid pointer to a valid {@code StdVideoEncodeH265PictureInfo} value
  • *
  • {@code naluSliceEntryCount} must be greater than 0
  • *
* *
See Also
* *

{@link VkVideoEncodeH265NaluSliceEXT}, {@link VkVideoEncodeH265ReferenceListsEXT}

* *

Layout

* *

 * struct VkVideoEncodeH265VclFrameInfoEXT {
 *     VkStructureType {@link #sType};
 *     void const * {@link #pNext};
 *     {@link VkVideoEncodeH265ReferenceListsEXT VkVideoEncodeH265ReferenceListsEXT} const * {@link #pReferenceFinalLists};
 *     uint32_t {@link #naluSliceEntryCount};
 *     {@link VkVideoEncodeH265NaluSliceEXT VkVideoEncodeH265NaluSliceEXT} const * {@link #pNaluSliceEntries};
 *     {@link StdVideoEncodeH265PictureInfo StdVideoEncodeH265PictureInfo} const * {@link #pCurrentPictureInfo};
 * }
*/ public class VkVideoEncodeH265VclFrameInfoEXT 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 STYPE, PNEXT, PREFERENCEFINALLISTS, NALUSLICEENTRYCOUNT, PNALUSLICEENTRIES, PCURRENTPICTUREINFO; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); PREFERENCEFINALLISTS = layout.offsetof(2); NALUSLICEENTRYCOUNT = layout.offsetof(3); PNALUSLICEENTRIES = layout.offsetof(4); PCURRENTPICTUREINFO = layout.offsetof(5); } /** * Creates a {@code VkVideoEncodeH265VclFrameInfoEXT} 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 VkVideoEncodeH265VclFrameInfoEXT(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** the type of this structure. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** {@code NULL} or a pointer to a structure extending this structure. */ @NativeType("void const *") public long pNext() { return npNext(address()); } /** {@code NULL} or a pointer to a {@link VkVideoEncodeH265ReferenceListsEXT} structure specifying the reference lists to be used for the current picture. */ @Nullable @NativeType("VkVideoEncodeH265ReferenceListsEXT const *") public VkVideoEncodeH265ReferenceListsEXT pReferenceFinalLists() { return npReferenceFinalLists(address()); } /** the number of slice NALUs in the frame. */ @NativeType("uint32_t") public int naluSliceEntryCount() { return nnaluSliceEntryCount(address()); } /** a pointer to an array of {@link VkVideoEncodeH265NaluSliceEXT} structures specifying the division of the current picture into slices and the properties of these slices. */ @NativeType("VkVideoEncodeH265NaluSliceEXT const *") public VkVideoEncodeH265NaluSliceEXT.Buffer pNaluSliceEntries() { return npNaluSliceEntries(address()); } /** a pointer to a {@code StdVideoEncodeH265PictureInfo} structure specifying the syntax and other codec-specific information from the H.265 specification, associated with this picture. */ @NativeType("StdVideoEncodeH265PictureInfo const *") public StdVideoEncodeH265PictureInfo pCurrentPictureInfo() { return npCurrentPictureInfo(address()); } /** Sets the specified value to the {@link #sType} field. */ public VkVideoEncodeH265VclFrameInfoEXT sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the {@link EXTVideoEncodeH265#VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT} value to the {@link #sType} field. */ public VkVideoEncodeH265VclFrameInfoEXT sType$Default() { return sType(EXTVideoEncodeH265.VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT); } /** Sets the specified value to the {@link #pNext} field. */ public VkVideoEncodeH265VclFrameInfoEXT pNext(@NativeType("void const *") long value) { npNext(address(), value); return this; } /** Sets the address of the specified {@link VkVideoEncodeH265ReferenceListsEXT} to the {@link #pReferenceFinalLists} field. */ public VkVideoEncodeH265VclFrameInfoEXT pReferenceFinalLists(@Nullable @NativeType("VkVideoEncodeH265ReferenceListsEXT const *") VkVideoEncodeH265ReferenceListsEXT value) { npReferenceFinalLists(address(), value); return this; } /** Sets the address of the specified {@link VkVideoEncodeH265NaluSliceEXT.Buffer} to the {@link #pNaluSliceEntries} field. */ public VkVideoEncodeH265VclFrameInfoEXT pNaluSliceEntries(@NativeType("VkVideoEncodeH265NaluSliceEXT const *") VkVideoEncodeH265NaluSliceEXT.Buffer value) { npNaluSliceEntries(address(), value); return this; } /** Sets the address of the specified {@link StdVideoEncodeH265PictureInfo} to the {@link #pCurrentPictureInfo} field. */ public VkVideoEncodeH265VclFrameInfoEXT pCurrentPictureInfo(@NativeType("StdVideoEncodeH265PictureInfo const *") StdVideoEncodeH265PictureInfo value) { npCurrentPictureInfo(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkVideoEncodeH265VclFrameInfoEXT set( int sType, long pNext, @Nullable VkVideoEncodeH265ReferenceListsEXT pReferenceFinalLists, VkVideoEncodeH265NaluSliceEXT.Buffer pNaluSliceEntries, StdVideoEncodeH265PictureInfo pCurrentPictureInfo ) { sType(sType); pNext(pNext); pReferenceFinalLists(pReferenceFinalLists); pNaluSliceEntries(pNaluSliceEntries); pCurrentPictureInfo(pCurrentPictureInfo); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkVideoEncodeH265VclFrameInfoEXT set(VkVideoEncodeH265VclFrameInfoEXT src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkVideoEncodeH265VclFrameInfoEXT malloc() { return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkVideoEncodeH265VclFrameInfoEXT calloc() { return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance allocated with {@link BufferUtils}. */ public static VkVideoEncodeH265VclFrameInfoEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, memAddress(container), container); } /** Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance for the specified memory address. */ public static VkVideoEncodeH265VclFrameInfoEXT create(long address) { return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkVideoEncodeH265VclFrameInfoEXT createSafe(long address) { return address == NULL ? null : wrap(VkVideoEncodeH265VclFrameInfoEXT.class, address); } /** * Returns a new {@link VkVideoEncodeH265VclFrameInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkVideoEncodeH265VclFrameInfoEXT.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link VkVideoEncodeH265VclFrameInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkVideoEncodeH265VclFrameInfoEXT.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkVideoEncodeH265VclFrameInfoEXT.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkVideoEncodeH265VclFrameInfoEXT.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link VkVideoEncodeH265VclFrameInfoEXT.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkVideoEncodeH265VclFrameInfoEXT.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 VkVideoEncodeH265VclFrameInfoEXT.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** * Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkVideoEncodeH265VclFrameInfoEXT malloc(MemoryStack stack) { return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code VkVideoEncodeH265VclFrameInfoEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkVideoEncodeH265VclFrameInfoEXT calloc(MemoryStack stack) { return wrap(VkVideoEncodeH265VclFrameInfoEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkVideoEncodeH265VclFrameInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkVideoEncodeH265VclFrameInfoEXT.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkVideoEncodeH265VclFrameInfoEXT.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 VkVideoEncodeH265VclFrameInfoEXT.Buffer calloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #sType}. */ public static int nsType(long struct) { return UNSAFE.getInt(null, struct + VkVideoEncodeH265VclFrameInfoEXT.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PNEXT); } /** Unsafe version of {@link #pReferenceFinalLists}. */ @Nullable public static VkVideoEncodeH265ReferenceListsEXT npReferenceFinalLists(long struct) { return VkVideoEncodeH265ReferenceListsEXT.createSafe(memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PREFERENCEFINALLISTS)); } /** Unsafe version of {@link #naluSliceEntryCount}. */ public static int nnaluSliceEntryCount(long struct) { return UNSAFE.getInt(null, struct + VkVideoEncodeH265VclFrameInfoEXT.NALUSLICEENTRYCOUNT); } /** Unsafe version of {@link #pNaluSliceEntries}. */ public static VkVideoEncodeH265NaluSliceEXT.Buffer npNaluSliceEntries(long struct) { return VkVideoEncodeH265NaluSliceEXT.create(memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PNALUSLICEENTRIES), nnaluSliceEntryCount(struct)); } /** Unsafe version of {@link #pCurrentPictureInfo}. */ public static StdVideoEncodeH265PictureInfo npCurrentPictureInfo(long struct) { return StdVideoEncodeH265PictureInfo.create(memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PCURRENTPICTUREINFO)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkVideoEncodeH265VclFrameInfoEXT.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PNEXT, value); } /** Unsafe version of {@link #pReferenceFinalLists(VkVideoEncodeH265ReferenceListsEXT) pReferenceFinalLists}. */ public static void npReferenceFinalLists(long struct, @Nullable VkVideoEncodeH265ReferenceListsEXT value) { memPutAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PREFERENCEFINALLISTS, memAddressSafe(value)); } /** Sets the specified value to the {@code naluSliceEntryCount} field of the specified {@code struct}. */ public static void nnaluSliceEntryCount(long struct, int value) { UNSAFE.putInt(null, struct + VkVideoEncodeH265VclFrameInfoEXT.NALUSLICEENTRYCOUNT, value); } /** Unsafe version of {@link #pNaluSliceEntries(VkVideoEncodeH265NaluSliceEXT.Buffer) pNaluSliceEntries}. */ public static void npNaluSliceEntries(long struct, VkVideoEncodeH265NaluSliceEXT.Buffer value) { memPutAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PNALUSLICEENTRIES, value.address()); nnaluSliceEntryCount(struct, value.remaining()); } /** Unsafe version of {@link #pCurrentPictureInfo(StdVideoEncodeH265PictureInfo) pCurrentPictureInfo}. */ public static void npCurrentPictureInfo(long struct, StdVideoEncodeH265PictureInfo value) { memPutAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PCURRENTPICTUREINFO, value.address()); } /** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { long pReferenceFinalLists = memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PREFERENCEFINALLISTS); if (pReferenceFinalLists != NULL) { VkVideoEncodeH265ReferenceListsEXT.validate(pReferenceFinalLists); } int naluSliceEntryCount = nnaluSliceEntryCount(struct); long pNaluSliceEntries = memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PNALUSLICEENTRIES); check(pNaluSliceEntries); validate(pNaluSliceEntries, naluSliceEntryCount, VkVideoEncodeH265NaluSliceEXT.SIZEOF, VkVideoEncodeH265NaluSliceEXT::validate); check(memGetAddress(struct + VkVideoEncodeH265VclFrameInfoEXT.PCURRENTPICTUREINFO)); } // ----------------------------------- /** An array of {@link VkVideoEncodeH265VclFrameInfoEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final VkVideoEncodeH265VclFrameInfoEXT ELEMENT_FACTORY = VkVideoEncodeH265VclFrameInfoEXT.create(-1L); /** * Creates a new {@code VkVideoEncodeH265VclFrameInfoEXT.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 VkVideoEncodeH265VclFrameInfoEXT#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 VkVideoEncodeH265VclFrameInfoEXT getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@link VkVideoEncodeH265VclFrameInfoEXT#sType} field. */ @NativeType("VkStructureType") public int sType() { return VkVideoEncodeH265VclFrameInfoEXT.nsType(address()); } /** @return the value of the {@link VkVideoEncodeH265VclFrameInfoEXT#pNext} field. */ @NativeType("void const *") public long pNext() { return VkVideoEncodeH265VclFrameInfoEXT.npNext(address()); } /** @return a {@link VkVideoEncodeH265ReferenceListsEXT} view of the struct pointed to by the {@link VkVideoEncodeH265VclFrameInfoEXT#pReferenceFinalLists} field. */ @Nullable @NativeType("VkVideoEncodeH265ReferenceListsEXT const *") public VkVideoEncodeH265ReferenceListsEXT pReferenceFinalLists() { return VkVideoEncodeH265VclFrameInfoEXT.npReferenceFinalLists(address()); } /** @return the value of the {@link VkVideoEncodeH265VclFrameInfoEXT#naluSliceEntryCount} field. */ @NativeType("uint32_t") public int naluSliceEntryCount() { return VkVideoEncodeH265VclFrameInfoEXT.nnaluSliceEntryCount(address()); } /** @return a {@link VkVideoEncodeH265NaluSliceEXT.Buffer} view of the struct array pointed to by the {@link VkVideoEncodeH265VclFrameInfoEXT#pNaluSliceEntries} field. */ @NativeType("VkVideoEncodeH265NaluSliceEXT const *") public VkVideoEncodeH265NaluSliceEXT.Buffer pNaluSliceEntries() { return VkVideoEncodeH265VclFrameInfoEXT.npNaluSliceEntries(address()); } /** @return a {@link StdVideoEncodeH265PictureInfo} view of the struct pointed to by the {@link VkVideoEncodeH265VclFrameInfoEXT#pCurrentPictureInfo} field. */ @NativeType("StdVideoEncodeH265PictureInfo const *") public StdVideoEncodeH265PictureInfo pCurrentPictureInfo() { return VkVideoEncodeH265VclFrameInfoEXT.npCurrentPictureInfo(address()); } /** Sets the specified value to the {@link VkVideoEncodeH265VclFrameInfoEXT#sType} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer sType(@NativeType("VkStructureType") int value) { VkVideoEncodeH265VclFrameInfoEXT.nsType(address(), value); return this; } /** Sets the {@link EXTVideoEncodeH265#VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT} value to the {@link VkVideoEncodeH265VclFrameInfoEXT#sType} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer sType$Default() { return sType(EXTVideoEncodeH265.VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT); } /** Sets the specified value to the {@link VkVideoEncodeH265VclFrameInfoEXT#pNext} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer pNext(@NativeType("void const *") long value) { VkVideoEncodeH265VclFrameInfoEXT.npNext(address(), value); return this; } /** Sets the address of the specified {@link VkVideoEncodeH265ReferenceListsEXT} to the {@link VkVideoEncodeH265VclFrameInfoEXT#pReferenceFinalLists} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer pReferenceFinalLists(@Nullable @NativeType("VkVideoEncodeH265ReferenceListsEXT const *") VkVideoEncodeH265ReferenceListsEXT value) { VkVideoEncodeH265VclFrameInfoEXT.npReferenceFinalLists(address(), value); return this; } /** Sets the address of the specified {@link VkVideoEncodeH265NaluSliceEXT.Buffer} to the {@link VkVideoEncodeH265VclFrameInfoEXT#pNaluSliceEntries} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer pNaluSliceEntries(@NativeType("VkVideoEncodeH265NaluSliceEXT const *") VkVideoEncodeH265NaluSliceEXT.Buffer value) { VkVideoEncodeH265VclFrameInfoEXT.npNaluSliceEntries(address(), value); return this; } /** Sets the address of the specified {@link StdVideoEncodeH265PictureInfo} to the {@link VkVideoEncodeH265VclFrameInfoEXT#pCurrentPictureInfo} field. */ public VkVideoEncodeH265VclFrameInfoEXT.Buffer pCurrentPictureInfo(@NativeType("StdVideoEncodeH265PictureInfo const *") StdVideoEncodeH265PictureInfo value) { VkVideoEncodeH265VclFrameInfoEXT.npCurrentPictureInfo(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy