FFmpeg
|
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"
Include dependency graph for libopusdec.c:
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 MAX_FRAME_SIZE (960 * 6) |
Definition at line 125 of file libopusdec.c.
Referenced by libopus_decode().
#define OPUS_HEAD_SIZE 19 |
Definition at line 41 of file libopusdec.c.
Referenced by libopus_decode_init().
Function Documentation
|
static |
Definition at line 127 of file libopusdec.c.
|
static |
Definition at line 117 of file libopusdec.c.
|
static |
Definition at line 43 of file libopusdec.c.
|
static |
Definition at line 174 of file libopusdec.c.
Variable Documentation
AVCodec ff_libopus_decoder |
Initial value:
= {
.name = "libopus",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_OPUS,
.close = libopus_decode_close,
.decode = libopus_decode,
.flush = libopus_flush,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libopus Opus"),
}
static int libopus_decode(AVCodecContext *avc, void *data, int *got_frame_ptr, AVPacket *pkt)
Definition: libopusdec.c:127
Definition: samplefmt.h:50
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
Definition: libopusdec.c:33
static av_cold int libopus_decode_init(AVCodecContext *avc)
Definition: libopusdec.c:43
Definition: libavcodec/avcodec.h:449
static av_cold int libopus_decode_close(AVCodecContext *avc)
Definition: libopusdec.c:117
Definition at line 184 of file libopusdec.c.
Generated on Fri Dec 20 2024 06:56:13 for FFmpeg by 1.8.11