FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
libopusdec.c File Reference
#include <opus.h>
#include <opus_multistream.h>
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include "vorbis.h"
#include "mathops.h"
#include "libopus.h"

Go to the source code of this file.

Data Structures

struct  libopus_context
 

Macros

#define OPUS_HEAD_SIZE   19
 
#define MAX_FRAME_SIZE   (960 * 6)
 

Functions

static av_cold int libopus_decode_init (AVCodecContext *avc)
 
static av_cold int libopus_decode_close (AVCodecContext *avc)
 
static int libopus_decode (AVCodecContext *avc, void *data, int *got_frame_ptr, AVPacket *pkt)
 
static void libopus_flush (AVCodecContext *avc)
 

Variables

AVCodec ff_libopus_decoder
 

Macro Definition Documentation

#define OPUS_HEAD_SIZE   19

Definition at line 41 of file libopusdec.c.

Referenced by libopus_decode_init().

#define MAX_FRAME_SIZE   (960 * 6)

Definition at line 125 of file libopusdec.c.

Referenced by libopus_decode().

Function Documentation

static av_cold int libopus_decode_init ( AVCodecContext avc)
static

Definition at line 43 of file libopusdec.c.

static av_cold int libopus_decode_close ( AVCodecContext avc)
static

Definition at line 117 of file libopusdec.c.

static int libopus_decode ( AVCodecContext avc,
void data,
int *  got_frame_ptr,
AVPacket pkt 
)
static

Definition at line 127 of file libopusdec.c.

static void libopus_flush ( AVCodecContext avc)
static

Definition at line 174 of file libopusdec.c.

Variable Documentation

AVCodec ff_libopus_decoder
Initial value:
= {
.name = "libopus",
.long_name = NULL_IF_CONFIG_SMALL("libopus Opus"),
.priv_data_size = sizeof(struct libopus_context),
.decode = libopus_decode,
.flush = libopus_flush,
.capabilities = CODEC_CAP_DR1,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
}

Definition at line 184 of file libopusdec.c.