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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The 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 aOpusPictureTag
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpusPictureTag
calloc()
Returns a newOpusPictureTag
instance allocated withmemCalloc
.static OpusPictureTag.Buffer
calloc
(int capacity) Returns a newOpusPictureTag.Buffer
instance allocated withmemCalloc
.static OpusPictureTag.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOpusPictureTag.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OpusPictureTag
calloc
(MemoryStack stack) Returns a newOpusPictureTag
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
colors()
static OpusPictureTag
create()
Returns a newOpusPictureTag
instance allocated withBufferUtils
.static OpusPictureTag.Buffer
create
(int capacity) Returns a newOpusPictureTag.Buffer
instance allocated withBufferUtils
.static OpusPictureTag
create
(long address) Returns a newOpusPictureTag
instance for the specified memory address.static OpusPictureTag.Buffer
create
(long address, int capacity) Create aOpusPictureTag.Buffer
instance at the specified memory.static @Nullable OpusPictureTag
createSafe
(long address) static @Nullable OpusPictureTag.Buffer
createSafe
(long address, int capacity) data()
int
int
depth()
int
format()
int
height()
static OpusPictureTag
malloc()
Returns a newOpusPictureTag
instance allocated withmemAlloc
.static OpusPictureTag.Buffer
malloc
(int capacity) Returns a newOpusPictureTag.Buffer
instance allocated withmemAlloc
.static OpusPictureTag.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOpusPictureTag.Buffer
instance allocated on the specifiedMemoryStack
.static OpusPictureTag
malloc
(MemoryStack stack) Returns a newOpusPictureTag
instance allocated on the specifiedMemoryStack
.mime_type
(int capacity) static int
ncolors
(long struct) Unsafe version ofcolors()
.static ByteBuffer
ndata
(long struct) Unsafe version ofdata
.static int
ndata_length
(long struct) Unsafe version ofdata_length()
.static int
ndepth
(long struct) Unsafe version ofdepth()
.static ByteBuffer
ndescription
(long struct) Unsafe version ofdescription()
.static String
ndescriptionString
(long struct) Unsafe version ofdescriptionString()
.static int
nformat
(long struct) Unsafe version offormat()
.static int
nheight
(long struct) Unsafe version ofheight()
.static ByteBuffer
nmime_type
(long struct, int capacity) Unsafe version ofmime_type
.static int
ntype
(long struct) Unsafe version oftype()
.static int
nwidth
(long struct) Unsafe version ofwidth()
.int
sizeof()
Returnssizeof(struct)
.int
type()
int
width()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aOpusPictureTag
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OpusPictureTag>
-
type
public int type()- Returns:
- the value of the
type
field.
-
mime_type
- Returns:
- a
ByteBuffer
view of the data pointed to by themime_type
field.
-
description
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedescription
field.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
description
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
colors
public int colors()- Returns:
- the value of the
colors
field.
-
data_length
public int data_length()- Returns:
- the value of the
data_length
field.
-
data
- Returns:
- a
ByteBuffer
view of the data pointed to by thedata
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
malloc
Returns a newOpusPictureTag
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOpusPictureTag
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOpusPictureTag
instance allocated withBufferUtils
. -
create
Returns a newOpusPictureTag
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOpusPictureTag.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOpusPictureTag.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOpusPictureTag.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOpusPictureTag.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newOpusPictureTag
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOpusPictureTag
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOpusPictureTag.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOpusPictureTag.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-