FFmpeg
Data Structures | Functions | Variables
libcelt_dec.c File Reference
#include <celt/celt.h>
#include <celt/celt_header.h>
#include "avcodec.h"
#include "codec_internal.h"
#include "internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  libcelt_context
 

Functions

static int ff_celt_error_to_averror (int err)
 
static int ff_celt_bitstream_version_hack (CELTMode *mode)
 
static av_cold int libcelt_dec_init (AVCodecContext *c)
 
static av_cold int libcelt_dec_close (AVCodecContext *c)
 
static int libcelt_dec_decode (AVCodecContext *c, AVFrame *frame, int *got_frame_ptr, AVPacket *pkt)
 

Variables

const FFCodec ff_libcelt_decoder
 

Function Documentation

◆ ff_celt_error_to_averror()

static int ff_celt_error_to_averror ( int  err)
static

Definition at line 35 of file libcelt_dec.c.

Referenced by libcelt_dec_decode(), and libcelt_dec_init().

◆ ff_celt_bitstream_version_hack()

static int ff_celt_bitstream_version_hack ( CELTMode *  mode)
static

Definition at line 53 of file libcelt_dec.c.

Referenced by libcelt_dec_init().

◆ libcelt_dec_init()

static av_cold int libcelt_dec_init ( AVCodecContext c)
static

Definition at line 60 of file libcelt_dec.c.

◆ libcelt_dec_close()

static av_cold int libcelt_dec_close ( AVCodecContext c)
static

Definition at line 97 of file libcelt_dec.c.

◆ libcelt_dec_decode()

static int libcelt_dec_decode ( AVCodecContext c,
AVFrame frame,
int got_frame_ptr,
AVPacket pkt 
)
static

Definition at line 106 of file libcelt_dec.c.

Variable Documentation

◆ ff_libcelt_decoder

const FFCodec ff_libcelt_decoder
Initial value:
= {
.p.name = "libcelt",
.p.long_name = NULL_IF_CONFIG_SMALL("Xiph CELT decoder using libcelt"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.capabilities = AV_CODEC_CAP_DR1,
.p.wrapper_name = "libcelt",
.priv_data_size = sizeof(struct libcelt_context),
}

Definition at line 130 of file libcelt_dec.c.

init
static int init
Definition: av_tx.c:47
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
libcelt_dec_decode
static int libcelt_dec_decode(AVCodecContext *c, AVFrame *frame, int *got_frame_ptr, AVPacket *pkt)
Definition: libcelt_dec.c:106
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
libcelt_dec_init
static av_cold int libcelt_dec_init(AVCodecContext *c)
Definition: libcelt_dec.c:60
libcelt_dec_close
static av_cold int libcelt_dec_close(AVCodecContext *c)
Definition: libcelt_dec.c:97
AV_CODEC_ID_CELT
@ AV_CODEC_ID_CELT
Definition: codec_id.h:476
libcelt_context
Definition: libcelt_dec.c:29