Package org.lwjgl.util.opus
Class OpusPictureTag
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct OpusPictureTag {
opus_int32 type;
char * mime_type;
char * description;
opus_uint32 width;
opus_uint32 height;
opus_uint32 depth;
opus_uint32 colors;
opus_uint32 data_length;
unsigned char * data;
int format;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOpusPictureTag(ByteBuffer container) Creates aOpusPictureTaginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpusPictureTagcalloc()Returns a newOpusPictureTaginstance allocated withmemCalloc.static OpusPictureTag.Buffercalloc(int capacity) Returns a newOpusPictureTag.Bufferinstance allocated withmemCalloc.static OpusPictureTag.Buffercalloc(int capacity, MemoryStack stack) Returns a newOpusPictureTag.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OpusPictureTagcalloc(MemoryStack stack) Returns a newOpusPictureTaginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolors()static OpusPictureTagcreate()Returns a newOpusPictureTaginstance allocated withBufferUtils.static OpusPictureTag.Buffercreate(int capacity) Returns a newOpusPictureTag.Bufferinstance allocated withBufferUtils.static OpusPictureTagcreate(long address) Returns a newOpusPictureTaginstance for the specified memory address.static OpusPictureTag.Buffercreate(long address, int capacity) Create aOpusPictureTag.Bufferinstance at the specified memory.static @Nullable OpusPictureTagcreateSafe(long address) static @Nullable OpusPictureTag.BuffercreateSafe(long address, int capacity) data()intintdepth()intformat()intheight()static OpusPictureTagmalloc()Returns a newOpusPictureTaginstance allocated withmemAlloc.static OpusPictureTag.Buffermalloc(int capacity) Returns a newOpusPictureTag.Bufferinstance allocated withmemAlloc.static OpusPictureTag.Buffermalloc(int capacity, MemoryStack stack) Returns a newOpusPictureTag.Bufferinstance allocated on the specifiedMemoryStack.static OpusPictureTagmalloc(MemoryStack stack) Returns a newOpusPictureTaginstance allocated on the specifiedMemoryStack.mime_type(int capacity) static intncolors(long struct) Unsafe version ofcolors().static ByteBufferndata(long struct) Unsafe version ofdata.static intndata_length(long struct) Unsafe version ofdata_length().static intndepth(long struct) Unsafe version ofdepth().static ByteBufferndescription(long struct) Unsafe version ofdescription().static StringndescriptionString(long struct) Unsafe version ofdescriptionString().static intnformat(long struct) Unsafe version offormat().static intnheight(long struct) Unsafe version ofheight().static ByteBuffernmime_type(long struct, int capacity) Unsafe version ofmime_type.static intntype(long struct) Unsafe version oftype().static intnwidth(long struct) Unsafe version ofwidth().intsizeof()Returnssizeof(struct).inttype()intwidth()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
MIME_TYPE
public static final int MIME_TYPEThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
COLORS
public static final int COLORSThe struct member offsets. -
DATA_LENGTH
public static final int DATA_LENGTHThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets.
-
-
Constructor Details
-
OpusPictureTag
Creates aOpusPictureTaginstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<OpusPictureTag>
-
type
public int type()- Returns:
- the value of the
typefield.
-
mime_type
- Returns:
- a
ByteBufferview of the data pointed to by themime_typefield.
-
description
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thedescriptionfield.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
descriptionfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
colors
public int colors()- Returns:
- the value of the
colorsfield.
-
data_length
public int data_length()- Returns:
- the value of the
data_lengthfield.
-
data
- Returns:
- a
ByteBufferview of the data pointed to by thedatafield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
malloc
Returns a newOpusPictureTaginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOpusPictureTaginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOpusPictureTaginstance allocated withBufferUtils. -
create
Returns a newOpusPictureTaginstance for the specified memory address. -
createSafe
-
malloc
Returns a newOpusPictureTag.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOpusPictureTag.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOpusPictureTag.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOpusPictureTag.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newOpusPictureTaginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOpusPictureTaginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOpusPictureTag.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOpusPictureTag.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nmime_type
Unsafe version ofmime_type. -
ndescription
Unsafe version ofdescription(). -
ndescriptionString
Unsafe version ofdescriptionString(). -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static int nheight(long struct) Unsafe version ofheight(). -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth(). -
ncolors
public static int ncolors(long struct) Unsafe version ofcolors(). -
ndata_length
public static int ndata_length(long struct) Unsafe version ofdata_length(). -
ndata
Unsafe version ofdata. -
nformat
public static int nformat(long struct) Unsafe version offormat().
-