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

org.lwjgl.vulkan.VkVideoDecodeH265SessionParametersAddInfoEXT 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.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

import org.lwjgl.vulkan.video.*;

/**
 * Structure specifies H.265 decoder parameter set information.
 * 
 * 
Valid Usage (Implicit)
* *
    *
  • {@code sType} must be {@link EXTVideoDecodeH265#VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT}
  • *
  • If {@code pSpsStd} is not {@code NULL}, {@code pSpsStd} must be a valid pointer to an array of {@code spsStdCount} {@code StdVideoH265SequenceParameterSet} values
  • *
  • If {@code pPpsStd} is not {@code NULL}, {@code pPpsStd} must be a valid pointer to an array of {@code ppsStdCount} {@code StdVideoH265PictureParameterSet} values
  • *
  • {@code spsStdCount} must be greater than 0
  • *
  • {@code ppsStdCount} must be greater than 0
  • *
* *
See Also
* *

{@link VkVideoDecodeH265SessionParametersCreateInfoEXT}

* *

Layout

* *

 * struct VkVideoDecodeH265SessionParametersAddInfoEXT {
 *     VkStructureType sType;
 *     void const * pNext;
 *     uint32_t spsStdCount;
 *     {@link StdVideoH265SequenceParameterSet StdVideoH265SequenceParameterSet} const * pSpsStd;
 *     uint32_t ppsStdCount;
 *     {@link StdVideoH265PictureParameterSet StdVideoH265PictureParameterSet} const * pPpsStd;
 * }
*/ public class VkVideoDecodeH265SessionParametersAddInfoEXT 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, SPSSTDCOUNT, PSPSSTD, PPSSTDCOUNT, PPPSSTD; static { Layout layout = __struct( __member(4), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE), __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); STYPE = layout.offsetof(0); PNEXT = layout.offsetof(1); SPSSTDCOUNT = layout.offsetof(2); PSPSSTD = layout.offsetof(3); PPSSTDCOUNT = layout.offsetof(4); PPPSSTD = layout.offsetof(5); } /** * Creates a {@code VkVideoDecodeH265SessionParametersAddInfoEXT} 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 VkVideoDecodeH265SessionParametersAddInfoEXT(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** @return the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return nsType(address()); } /** @return the value of the {@code pNext} field. */ @NativeType("void const *") public long pNext() { return npNext(address()); } /** @return the value of the {@code spsStdCount} field. */ @NativeType("uint32_t") public int spsStdCount() { return nspsStdCount(address()); } /** @return a {@link StdVideoH265SequenceParameterSet.Buffer} view of the struct array pointed to by the {@code pSpsStd} field. */ @Nullable @NativeType("StdVideoH265SequenceParameterSet const *") public StdVideoH265SequenceParameterSet.Buffer pSpsStd() { return npSpsStd(address()); } /** @return the value of the {@code ppsStdCount} field. */ @NativeType("uint32_t") public int ppsStdCount() { return nppsStdCount(address()); } /** @return a {@link StdVideoH265PictureParameterSet.Buffer} view of the struct array pointed to by the {@code pPpsStd} field. */ @Nullable @NativeType("StdVideoH265PictureParameterSet const *") public StdVideoH265PictureParameterSet.Buffer pPpsStd() { return npPpsStd(address()); } /** Sets the specified value to the {@code sType} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT sType(@NativeType("VkStructureType") int value) { nsType(address(), value); return this; } /** Sets the {@link EXTVideoDecodeH265#VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT} value to the {@code sType} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT sType$Default() { return sType(EXTVideoDecodeH265.VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT); } /** Sets the specified value to the {@code pNext} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT pNext(@NativeType("void const *") long value) { npNext(address(), value); return this; } /** Sets the specified value to the {@code spsStdCount} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT spsStdCount(@NativeType("uint32_t") int value) { nspsStdCount(address(), value); return this; } /** Sets the address of the specified {@link StdVideoH265SequenceParameterSet.Buffer} to the {@code pSpsStd} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT pSpsStd(@Nullable @NativeType("StdVideoH265SequenceParameterSet const *") StdVideoH265SequenceParameterSet.Buffer value) { npSpsStd(address(), value); return this; } /** Sets the specified value to the {@code ppsStdCount} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT ppsStdCount(@NativeType("uint32_t") int value) { nppsStdCount(address(), value); return this; } /** Sets the address of the specified {@link StdVideoH265PictureParameterSet.Buffer} to the {@code pPpsStd} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT pPpsStd(@Nullable @NativeType("StdVideoH265PictureParameterSet const *") StdVideoH265PictureParameterSet.Buffer value) { npPpsStd(address(), value); return this; } /** Initializes this struct with the specified values. */ public VkVideoDecodeH265SessionParametersAddInfoEXT set( int sType, long pNext, int spsStdCount, @Nullable StdVideoH265SequenceParameterSet.Buffer pSpsStd, int ppsStdCount, @Nullable StdVideoH265PictureParameterSet.Buffer pPpsStd ) { sType(sType); pNext(pNext); spsStdCount(spsStdCount); pSpsStd(pSpsStd); ppsStdCount(ppsStdCount); pPpsStd(pPpsStd); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkVideoDecodeH265SessionParametersAddInfoEXT set(VkVideoDecodeH265SessionParametersAddInfoEXT src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static VkVideoDecodeH265SessionParametersAddInfoEXT malloc() { return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, nmemAllocChecked(SIZEOF)); } /** Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static VkVideoDecodeH265SessionParametersAddInfoEXT calloc() { return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, nmemCallocChecked(1, SIZEOF)); } /** Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance allocated with {@link BufferUtils}. */ public static VkVideoDecodeH265SessionParametersAddInfoEXT create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, memAddress(container), container); } /** Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance for the specified memory address. */ public static VkVideoDecodeH265SessionParametersAddInfoEXT create(long address) { return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, address); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static VkVideoDecodeH265SessionParametersAddInfoEXT createSafe(long address) { return address == NULL ? null : wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, address); } /** * Returns a new {@link VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer malloc(int capacity) { return wrap(Buffer.class, nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer calloc(int capacity) { return wrap(Buffer.class, nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return wrap(Buffer.class, memAddress(container), capacity, container); } /** * Create a {@link VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static VkVideoDecodeH265SessionParametersAddInfoEXT.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 VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer createSafe(long address, int capacity) { return address == NULL ? null : wrap(Buffer.class, address, capacity); } /** * Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static VkVideoDecodeH265SessionParametersAddInfoEXT malloc(MemoryStack stack) { return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, stack.nmalloc(ALIGNOF, SIZEOF)); } /** * Returns a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkVideoDecodeH265SessionParametersAddInfoEXT calloc(MemoryStack stack) { return wrap(VkVideoDecodeH265SessionParametersAddInfoEXT.class, stack.ncalloc(ALIGNOF, 1, SIZEOF)); } /** * Returns a new {@link VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer malloc(int capacity, MemoryStack stack) { return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link VkVideoDecodeH265SessionParametersAddInfoEXT.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 VkVideoDecodeH265SessionParametersAddInfoEXT.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 + VkVideoDecodeH265SessionParametersAddInfoEXT.STYPE); } /** Unsafe version of {@link #pNext}. */ public static long npNext(long struct) { return memGetAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PNEXT); } /** Unsafe version of {@link #spsStdCount}. */ public static int nspsStdCount(long struct) { return UNSAFE.getInt(null, struct + VkVideoDecodeH265SessionParametersAddInfoEXT.SPSSTDCOUNT); } /** Unsafe version of {@link #pSpsStd}. */ @Nullable public static StdVideoH265SequenceParameterSet.Buffer npSpsStd(long struct) { return StdVideoH265SequenceParameterSet.createSafe(memGetAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PSPSSTD), nspsStdCount(struct)); } /** Unsafe version of {@link #ppsStdCount}. */ public static int nppsStdCount(long struct) { return UNSAFE.getInt(null, struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PPSSTDCOUNT); } /** Unsafe version of {@link #pPpsStd}. */ @Nullable public static StdVideoH265PictureParameterSet.Buffer npPpsStd(long struct) { return StdVideoH265PictureParameterSet.createSafe(memGetAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PPPSSTD), nppsStdCount(struct)); } /** Unsafe version of {@link #sType(int) sType}. */ public static void nsType(long struct, int value) { UNSAFE.putInt(null, struct + VkVideoDecodeH265SessionParametersAddInfoEXT.STYPE, value); } /** Unsafe version of {@link #pNext(long) pNext}. */ public static void npNext(long struct, long value) { memPutAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PNEXT, value); } /** Sets the specified value to the {@code spsStdCount} field of the specified {@code struct}. */ public static void nspsStdCount(long struct, int value) { UNSAFE.putInt(null, struct + VkVideoDecodeH265SessionParametersAddInfoEXT.SPSSTDCOUNT, value); } /** Unsafe version of {@link #pSpsStd(StdVideoH265SequenceParameterSet.Buffer) pSpsStd}. */ public static void npSpsStd(long struct, @Nullable StdVideoH265SequenceParameterSet.Buffer value) { memPutAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PSPSSTD, memAddressSafe(value)); if (value != null) { nspsStdCount(struct, value.remaining()); } } /** Sets the specified value to the {@code ppsStdCount} field of the specified {@code struct}. */ public static void nppsStdCount(long struct, int value) { UNSAFE.putInt(null, struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PPSSTDCOUNT, value); } /** Unsafe version of {@link #pPpsStd(StdVideoH265PictureParameterSet.Buffer) pPpsStd}. */ public static void npPpsStd(long struct, @Nullable StdVideoH265PictureParameterSet.Buffer value) { memPutAddress(struct + VkVideoDecodeH265SessionParametersAddInfoEXT.PPPSSTD, memAddressSafe(value)); if (value != null) { nppsStdCount(struct, value.remaining()); } } // ----------------------------------- /** An array of {@link VkVideoDecodeH265SessionParametersAddInfoEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final VkVideoDecodeH265SessionParametersAddInfoEXT ELEMENT_FACTORY = VkVideoDecodeH265SessionParametersAddInfoEXT.create(-1L); /** * Creates a new {@code VkVideoDecodeH265SessionParametersAddInfoEXT.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 VkVideoDecodeH265SessionParametersAddInfoEXT#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 VkVideoDecodeH265SessionParametersAddInfoEXT getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@code sType} field. */ @NativeType("VkStructureType") public int sType() { return VkVideoDecodeH265SessionParametersAddInfoEXT.nsType(address()); } /** @return the value of the {@code pNext} field. */ @NativeType("void const *") public long pNext() { return VkVideoDecodeH265SessionParametersAddInfoEXT.npNext(address()); } /** @return the value of the {@code spsStdCount} field. */ @NativeType("uint32_t") public int spsStdCount() { return VkVideoDecodeH265SessionParametersAddInfoEXT.nspsStdCount(address()); } /** @return a {@link StdVideoH265SequenceParameterSet.Buffer} view of the struct array pointed to by the {@code pSpsStd} field. */ @Nullable @NativeType("StdVideoH265SequenceParameterSet const *") public StdVideoH265SequenceParameterSet.Buffer pSpsStd() { return VkVideoDecodeH265SessionParametersAddInfoEXT.npSpsStd(address()); } /** @return the value of the {@code ppsStdCount} field. */ @NativeType("uint32_t") public int ppsStdCount() { return VkVideoDecodeH265SessionParametersAddInfoEXT.nppsStdCount(address()); } /** @return a {@link StdVideoH265PictureParameterSet.Buffer} view of the struct array pointed to by the {@code pPpsStd} field. */ @Nullable @NativeType("StdVideoH265PictureParameterSet const *") public StdVideoH265PictureParameterSet.Buffer pPpsStd() { return VkVideoDecodeH265SessionParametersAddInfoEXT.npPpsStd(address()); } /** Sets the specified value to the {@code sType} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer sType(@NativeType("VkStructureType") int value) { VkVideoDecodeH265SessionParametersAddInfoEXT.nsType(address(), value); return this; } /** Sets the {@link EXTVideoDecodeH265#VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT} value to the {@code sType} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer sType$Default() { return sType(EXTVideoDecodeH265.VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT); } /** Sets the specified value to the {@code pNext} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer pNext(@NativeType("void const *") long value) { VkVideoDecodeH265SessionParametersAddInfoEXT.npNext(address(), value); return this; } /** Sets the specified value to the {@code spsStdCount} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer spsStdCount(@NativeType("uint32_t") int value) { VkVideoDecodeH265SessionParametersAddInfoEXT.nspsStdCount(address(), value); return this; } /** Sets the address of the specified {@link StdVideoH265SequenceParameterSet.Buffer} to the {@code pSpsStd} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer pSpsStd(@Nullable @NativeType("StdVideoH265SequenceParameterSet const *") StdVideoH265SequenceParameterSet.Buffer value) { VkVideoDecodeH265SessionParametersAddInfoEXT.npSpsStd(address(), value); return this; } /** Sets the specified value to the {@code ppsStdCount} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer ppsStdCount(@NativeType("uint32_t") int value) { VkVideoDecodeH265SessionParametersAddInfoEXT.nppsStdCount(address(), value); return this; } /** Sets the address of the specified {@link StdVideoH265PictureParameterSet.Buffer} to the {@code pPpsStd} field. */ public VkVideoDecodeH265SessionParametersAddInfoEXT.Buffer pPpsStd(@Nullable @NativeType("StdVideoH265PictureParameterSet const *") StdVideoH265PictureParameterSet.Buffer value) { VkVideoDecodeH265SessionParametersAddInfoEXT.npPpsStd(address(), value); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy