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 "decode.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",
CODEC_LONG_NAME("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.

FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:35
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
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
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
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
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:497
libcelt_context
Definition: libcelt_dec.c:29