METADATA_BLOCK_PICTURE tag.
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OpusPictureTag.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COLORS
The struct member offsets. |
| public static final int | DATA
The struct member offsets. |
| public static final int | DATA_LENGTH
The struct member offsets. |
| public static final int | DEPTH
The struct member offsets. |
| public static final int | DESCRIPTION
The struct member offsets. |
| public static final int | FORMAT
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | MIME_TYPE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OpusPictureTag(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OpusPictureTag | |
| public static OpusPictureTag. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OpusPictureTag | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusPictureTag. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | colors()
for indexed-color pictures (e.g., GIF), the number of colors used, or 0 for non-indexed pictures. |
| protected OpusPictureTag | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static OpusPictureTag | |
| public static OpusPictureTag | |
| public static OpusPictureTag. | create(int
the buffer capacity capacity)Returns a new |
| public static OpusPictureTag. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OpusPictureTag | |
| public static OpusPictureTag. | |
| public ByteBuffer | |
| public int | |
| public int | |
| public ByteBuffer | |
| public String | |
| public int | |
| public int | |
| public static OpusPictureTag | |
| public static OpusPictureTag. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OpusPictureTag | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusPictureTag. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public ByteBuffer | Returns: the MIME type of the picture, in printable ASCII characters0x20-0x7E.
The MIME type may also be the number of elements in the returned buffer capacity)
|
| public static int | |
| public static ByteBuffer | |
| public static int | |
| public static int | |
| public static ByteBuffer | |
| public static String | |
| public static int | |
| public static int | |
| public static ByteBuffer | |
| public static int | |
| public static int | |
| public int | |
| public int | type()
the picture type according to the ID3v2 APIC frame:
|
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COLORS | back to summary |
|---|---|
| public static final int COLORS The struct member offsets. | |
| DATA | back to summary |
|---|---|
| public static final int DATA The struct member offsets. | |
| DATA_LENGTH | back to summary |
|---|---|
| public static final int DATA_LENGTH The struct member offsets. | |
| DEPTH | back to summary |
|---|---|
| public static final int DEPTH The struct member offsets. | |
| DESCRIPTION | back to summary |
|---|---|
| public static final int DESCRIPTION The struct member offsets. | |
| FORMAT | back to summary |
|---|---|
| public static final int FORMAT The struct member offsets. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| MIME_TYPE | back to summary |
|---|---|
| public static final int MIME_TYPE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| OpusPictureTag | back to summary |
|---|---|
| protected OpusPictureTag(long address, ByteBuffer container) | |
| OpusPictureTag | back to summary |
|---|---|
| public OpusPictureTag(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OpusPictureTag calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OpusPictureTag. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusPictureTag calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusPictureTag. Returns a new
| |
| colors | back to summary |
|---|---|
| public int colors() for indexed-color pictures (e.g., GIF), the number of colors used, or 0 for non-indexed pictures.
| |
| create | back to summary |
|---|---|
| protected OpusPictureTag create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OpusPictureTag create() Returns a new | |
| create | back to summary |
|---|---|
| public static OpusPictureTag create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OpusPictureTag. Returns a new
| |
| create | back to summary |
|---|---|
| public static OpusPictureTag. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OpusPictureTag createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OpusPictureTag. Like
| |
| data | back to summary |
|---|---|
| public ByteBuffer data() the binary picture data
| |
| data_length | back to summary |
|---|---|
| public int data_length() the length of the picture data in bytes
| |
| depth | back to summary |
|---|---|
| public int depth() the color depth of the picture in bits-per-pixel ( not bits-per-channel)
| |
| description | back to summary |
|---|---|
| public ByteBuffer description() the description of the picture, in UTF-8
| |
| descriptionString | back to summary |
|---|---|
| public String descriptionString() the description of the picture, in UTF-8
| |
| format | back to summary | |||||
|---|---|---|---|---|---|---|
| public int format() the format of the picture data, if known. One of:
| ||||||
| height | back to summary |
|---|---|
| public int height() the height of the picture in pixels
| |
| malloc | back to summary |
|---|---|
| public static OpusPictureTag malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OpusPictureTag. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusPictureTag malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusPictureTag. Returns a new
| |
| mime_type | back to summary |
|---|---|
public ByteBuffer mime_type(int capacity)
| |
| ncolors | back to summary |
|---|---|
| public static int ncolors(long struct) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static ByteBuffer ndata(long struct) Unsafe version of | |
| ndata_length | back to summary |
|---|---|
| public static int ndata_length(long struct) Unsafe version of | |
| ndepth | back to summary |
|---|---|
| public static int ndepth(long struct) Unsafe version of | |
| ndescription | back to summary |
|---|---|
| public static ByteBuffer ndescription(long struct) Unsafe version of | |
| ndescriptionString | back to summary |
|---|---|
| public static String ndescriptionString(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static int nformat(long struct) Unsafe version of | |
| nheight | back to summary |
|---|---|
| public static int nheight(long struct) Unsafe version of | |
| nmime_type | back to summary |
|---|---|
| public static ByteBuffer nmime_type(long struct, int capacity) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static int nwidth(long struct) Unsafe version of | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the picture type according to the ID3v2 APIC frame:
Others are reserved and should not be used. There may only be one each of picture type 1 and 2 in a file.
| |
| width | back to summary |
|---|---|
| public int width() the width of the picture in pixels
| |
OpusPictureTag structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OpusPictureTag |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public ByteBuffer | |
| public int | |
| public int | |
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the OpusPictureTag#description field.
|
| public String | Returns: the null-terminated string pointed to by theOpusPictureTag#description field.
|
| public int | |
| protected OpusPictureTag | |
| public int | |
| public ByteBuffer | |
| protected OpusPictureTag. | |
| public int | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OpusPictureTag ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| colors | back to summary |
|---|---|
public int colors()
| |
| data | back to summary |
|---|---|
public ByteBuffer data()
| |
| data_length | back to summary |
|---|---|
public int data_length()
| |
| depth | back to summary |
|---|---|
public int depth()
| |
| description | back to summary |
|---|---|
public ByteBuffer description()
| |
| descriptionString | back to summary |
|---|---|
public String descriptionString()
| |
| format | back to summary |
|---|---|
public int format()
| |
| getElementFactory | back to summary |
|---|---|
| protected OpusPictureTag getElementFactory() Implements abstract org.
| |
| height | back to summary |
|---|---|
public int height()
| |
| mime_type | back to summary |
|---|---|
public ByteBuffer mime_type(int capacity)
| |
| self | back to summary |
|---|---|
| protected OpusPictureTag. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| width | back to summary |
|---|---|
public int width()
| |