#include <opus.h>
#include <opus_multistream.h>
#include "avcodec.h"
#include "internal.h"
#include "vorbis.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
Data Structures | |
struct | libopus_context |
Defines | |
#define | OPUS_HEAD_SIZE 19 |
#define | MAX_FRAME_SIZE (960*6) |
Functions | |
static int | ff_opus_error_to_averror (int err) |
static void | reorder (uint8_t *data, unsigned channels, unsigned bps, unsigned samples, const uint8_t *map) |
static av_cold int | libopus_dec_init (AVCodecContext *avc) |
static av_cold int | libopus_dec_close (AVCodecContext *avc) |
static int | libopus_dec_decode (AVCodecContext *avc, void *frame, int *got_frame_ptr, AVPacket *pkt) |
static void | libopus_dec_flush (AVCodecContext *avc) |
Variables | |
AVCodec | ff_libopus_decoder |
#define MAX_FRAME_SIZE (960*6) |
Definition at line 143 of file libopus_dec.c.
#define OPUS_HEAD_SIZE 19 |
Definition at line 39 of file libopus_dec.c.
Referenced by libopus_dec_decode(), and libopus_dec_init().
static av_cold int libopus_dec_close | ( | AVCodecContext * | avc | ) | [static] |
Definition at line 135 of file libopus_dec.c.
static int libopus_dec_decode | ( | AVCodecContext * | avc, | |
void * | frame, | |||
int * | got_frame_ptr, | |||
AVPacket * | pkt | |||
) | [static] |
Definition at line 145 of file libopus_dec.c.
static void libopus_dec_flush | ( | AVCodecContext * | avc | ) | [static] |
Definition at line 200 of file libopus_dec.c.
static av_cold int libopus_dec_init | ( | AVCodecContext * | avc | ) | [static] |
Definition at line 70 of file libopus_dec.c.
Initial value:
{ .name = "libopus", .type = AVMEDIA_TYPE_AUDIO, .id = AV_CODEC_ID_OPUS, .priv_data_size = sizeof(struct libopus_context), .init = libopus_dec_init, .close = libopus_dec_close, .decode = libopus_dec_decode, .flush = libopus_dec_flush, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("libopus Opus"), }
Definition at line 210 of file libopus_dec.c.