struct OpusHead {
int version;
int channel_count;
unsigned int pre_skip;
opus_uint32 input_sample_rate;
int output_gain;
int mapping_family;
int stream_count;
int coupled_count;
unsigned char mapping[255];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | OpusHead.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CHANNEL_COUNT
The struct member offsets. |
| public static final int | COUPLED_COUNT
The struct member offsets. |
| public static final int | INPUT_SAMPLE_RATE
The struct member offsets. |
| public static final int | MAPPING
The struct member offsets. |
| public static final int | MAPPING_FAMILY
The struct member offsets. |
| public static final int | OUTPUT_GAIN
The struct member offsets. |
| public static final int | PRE_SKIP
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STREAM_COUNT
The struct member offsets. |
| public static final int | VERSION
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | OpusHead(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static OpusHead | |
| public static OpusHead. | calloc(int
the buffer capacity capacity)Returns a new |
| public static OpusHead | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusHead. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public int | |
| protected OpusHead | 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 OpusHead | |
| public static OpusHead | |
| public static OpusHead. | create(int
the buffer capacity capacity)Returns a new |
| public static OpusHead. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static OpusHead | |
| public static OpusHead. | |
| public int | |
| public static OpusHead | |
| public static OpusHead. | malloc(int
the buffer capacity capacity)Returns a new |
| public static OpusHead | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static OpusHead. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public ByteBuffer | |
| public byte | |
| public int | |
| public static int | |
| public static int | |
| public static int | |
| public static ByteBuffer | |
| public static byte | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public int | output_gain()
the gain to apply to the decoded output, in dB, as a |
| public int | |
| public int | |
| public int | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CHANNEL_COUNT | back to summary |
|---|---|
| public static final int CHANNEL_COUNT The struct member offsets. | |
| COUPLED_COUNT | back to summary |
|---|---|
| public static final int COUPLED_COUNT The struct member offsets. | |
| INPUT_SAMPLE_RATE | back to summary |
|---|---|
| public static final int INPUT_SAMPLE_RATE The struct member offsets. | |
| MAPPING | back to summary |
|---|---|
| public static final int MAPPING The struct member offsets. | |
| MAPPING_FAMILY | back to summary |
|---|---|
| public static final int MAPPING_FAMILY The struct member offsets. | |
| OUTPUT_GAIN | back to summary |
|---|---|
| public static final int OUTPUT_GAIN The struct member offsets. | |
| PRE_SKIP | back to summary |
|---|---|
| public static final int PRE_SKIP The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STREAM_COUNT | back to summary |
|---|---|
| public static final int STREAM_COUNT The struct member offsets. | |
| VERSION | back to summary |
|---|---|
| public static final int VERSION The struct member offsets. | |
| OpusHead | back to summary |
|---|---|
| protected OpusHead(long address, ByteBuffer container) | |
| OpusHead | back to summary |
|---|---|
| public OpusHead(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static OpusHead calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static OpusHead. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusHead calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static OpusHead. Returns a new
| |
| channel_count | back to summary |
|---|---|
| public int channel_count() the number of channels, in the range | |
| coupled_count | back to summary |
|---|---|
| public int coupled_count() the number of coupled Opus streams in each Ogg packet, in the range This must satisfy | |
| create | back to summary |
|---|---|
| protected OpusHead create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static OpusHead create() Returns a new | |
| create | back to summary |
|---|---|
| public static OpusHead create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static OpusHead. Returns a new
| |
| create | back to summary |
|---|---|
| public static OpusHead. Create a
| |
| createSafe | back to summary |
|---|---|
| public static OpusHead createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static OpusHead. Like
| |
| input_sample_rate | back to summary |
|---|---|
| public int input_sample_rate() the sampling rate of the original input. All Opus audio is coded at 48 kHz, and should also be decoded at 48 kHz for playback (unless the target hardware does not support this sampling rate). However, this field may be used to resample the audio back to the original sampling rate, for example, when saving the output to a file.
| |
| malloc | back to summary |
|---|---|
| public static OpusHead malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static OpusHead. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusHead malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static OpusHead. Returns a new
| |
| mapping | back to summary |
|---|---|
| public ByteBuffer mapping() the mapping from coded stream channels to output channels. Let
| |
| mapping | back to summary |
|---|---|
| public byte mapping(int index) the mapping from coded stream channels to output channels. Let
| |
| mapping_family | back to summary |
|---|---|
| public int mapping_family() the channel mapping family, in the range Channel mapping family 0 covers mono or stereo in a single stream. Channel mapping family 1 covers 1 to 8 channels in one or more streams, using the Vorbis speaker assignments. Channel mapping family 255 covers 1 to 255 channels in one or more streams, but without any defined speaker assignment. | |
| nchannel_count | back to summary |
|---|---|
| public static int nchannel_count(long struct) Unsafe version of | |
| ncoupled_count | back to summary |
|---|---|
| public static int ncoupled_count(long struct) Unsafe version of | |
| ninput_sample_rate | back to summary |
|---|---|
| public static int ninput_sample_rate(long struct) Unsafe version of | |
| nmapping | back to summary |
|---|---|
| public static ByteBuffer nmapping(long struct) Unsafe version of | |
| nmapping | back to summary |
|---|---|
| public static byte nmapping(long struct, int index) Unsafe version of | |
| nmapping_family | back to summary |
|---|---|
| public static int nmapping_family(long struct) Unsafe version of | |
| noutput_gain | back to summary |
|---|---|
| public static int noutput_gain(long struct) Unsafe version of | |
| npre_skip | back to summary |
|---|---|
| public static int npre_skip(long struct) Unsafe version of | |
| nstream_count | back to summary |
|---|---|
| public static int nstream_count(long struct) Unsafe version of | |
| nversion | back to summary |
|---|---|
| public static int nversion(long struct) Unsafe version of | |
| output_gain | back to summary |
|---|---|
| public int output_gain() the gain to apply to the decoded output, in dB, as a The libopusfile API will automatically apply this gain to the decoded output before returning it, scaling it by
| |
| pre_skip | back to summary |
|---|---|
| public int pre_skip() the number of samples that should be discarded from the beginning of the stream
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| stream_count | back to summary |
|---|---|
| public int stream_count() the number of Opus streams in each Ogg packet, in the range | |
| version | back to summary |
|---|---|
| public int version() the Ogg Opus format version, in the range The top 4 bits represent a "major" version, and the bottom four bits represent backwards-compatible "minor" revisions. The current specification describes version 1. This library will recognize versions up through 15 as backwards compatible with the current specification. An earlier draft of the specification described a version 0, but the only difference between version 1 and version 0 is that version 0 did not specify the semantics for handling the version field. | |
OpusHead structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final OpusHead |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| protected OpusHead | |
| public int | |
| public ByteBuffer | |
| public byte | |
| public int | |
| public int | |
| public int | |
| protected OpusHead. | |
| public int | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final OpusHead 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) | |
| channel_count | back to summary |
|---|---|
public int channel_count()
| |
| coupled_count | back to summary |
|---|---|
public int coupled_count()
| |
| getElementFactory | back to summary |
|---|---|
| protected OpusHead getElementFactory() Implements abstract org.
| |
| input_sample_rate | back to summary |
|---|---|
public int input_sample_rate()
| |
| mapping | back to summary |
|---|---|
public ByteBuffer mapping()
| |
| mapping | back to summary |
|---|---|
public byte mapping(int index)
| |
| mapping_family | back to summary |
|---|---|
public int mapping_family()
| |
| output_gain | back to summary |
|---|---|
public int output_gain()
| |
| pre_skip | back to summary |
|---|---|
public int pre_skip()
| |
| self | back to summary |
|---|---|
| protected OpusHead. Implements abstract org.
| |
| stream_count | back to summary |
|---|---|
public int stream_count()
| |
| version | back to summary |
|---|---|
public int version()
| |