#include <opus.h>
#include <opus_multistream.h>
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "libopus.h"
#include "vorbis.h"
#include "audio_frame_queue.h"
Go to the source code of this file.
static void libopus_write_header |
( |
AVCodecContext * |
avctx, |
|
|
int |
stream_count, |
|
|
int |
coupled_stream_count, |
|
|
const uint8_t * |
channel_mapping |
|
) |
| |
|
static |
const uint8_t opus_coupled_streams[8] |
|
static |
const uint8_t opus_vorbis_channel_map[8][8] |
|
static |
Initial value:= {
{ 0 },
{ 0, 1 },
{ 0, 2, 1 },
{ 0, 1, 2, 3 },
{ 0, 4, 1, 2, 3 },
{ 0, 4, 1, 2, 3, 5 },
{ 0, 4, 1, 2, 3, 5, 6 },
{ 0, 6, 1, 2, 3, 4, 5, 7 },
}
Definition at line 57 of file libopusenc.c.
Referenced by libopus_encode_init().
const uint8_t libavcodec_libopus_channel_map[8][8] |
|
static |
Initial value:= {
{ 0 },
{ 0, 1 },
{ 0, 1, 2 },
{ 0, 1, 2, 3 },
{ 0, 1, 3, 4, 2 },
{ 0, 1, 4, 5, 2, 3 },
{ 0, 1, 5, 6, 2, 4, 3 },
{ 0, 1, 6, 7, 4, 5, 2, 3 },
}
Definition at line 69 of file libopusenc.c.
Referenced by libopus_encode_init().
Initial value:= {
{
"application",
"Intended application type",
OFFSET(application),
AV_OPT_TYPE_INT, { .i64 = OPUS_APPLICATION_AUDIO }, OPUS_APPLICATION_VOIP, OPUS_APPLICATION_RESTRICTED_LOWDELAY,
FLAGS,
"application" },
{
"voip",
"Favor improved speech intelligibility", 0,
AV_OPT_TYPE_CONST, { .i64 = OPUS_APPLICATION_VOIP }, 0, 0,
FLAGS,
"application" },
{
"audio",
"Favor faithfulness to the input", 0,
AV_OPT_TYPE_CONST, { .i64 = OPUS_APPLICATION_AUDIO }, 0, 0,
FLAGS,
"application" },
{
"lowdelay",
"Restrict to only the lowest delay modes", 0,
AV_OPT_TYPE_CONST, { .i64 = OPUS_APPLICATION_RESTRICTED_LOWDELAY }, 0, 0,
FLAGS,
"application" },
}
Definition at line 401 of file libopusenc.c.
Initial value:= {
.class_name = "libopus",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption libopus_options[]
Definition at line 415 of file libopusenc.c.
Initial value:= {
{ "b", "0" },
{ "compression_level", "10" },
}
Definition at line 422 of file libopusenc.c.
const int libopus_sample_rates[] |
|
static |
Initial value:= {
48000, 24000, 16000, 12000, 8000, 0,
}
Definition at line 428 of file libopusenc.c.
Initial value:= {
.name = "libopus",
}
static av_cold int init(AVCodecContext *avctx)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
static const AVClass libopus_class
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define AV_CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
static const int libopus_sample_rates[]
static av_cold int libopus_encode_init(AVCodecContext *avctx)
AVSampleFormat
Audio sample formats.
static int libopus_encode(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
const uint64_t ff_vorbis_channel_layouts[9]
static av_cold int libopus_encode_close(AVCodecContext *avctx)
static const AVCodecDefault libopus_defaults[]
static enum AVSampleFormat sample_fmts[]
Definition at line 432 of file libopusenc.c.