FFmpeg
Data Structures | Macros | Functions | Variables
liblc3dec.c File Reference
#include <lc3.h>
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec.h"
#include "codec_internal.h"
#include "decode.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  LibLC3DecContext
 

Macros

#define DECODER_MAX_CHANNELS   2
 

Functions

static av_cold int liblc3_decode_init (AVCodecContext *avctx)
 
static av_cold int liblc3_decode_close (AVCodecContext *avctx)
 
static int liblc3_decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

const FFCodec ff_liblc3_decoder
 

Macro Definition Documentation

◆ DECODER_MAX_CHANNELS

#define DECODER_MAX_CHANNELS   2

Definition at line 31 of file liblc3dec.c.

Function Documentation

◆ liblc3_decode_init()

static av_cold int liblc3_decode_init ( AVCodecContext avctx)
static

Definition at line 39 of file liblc3dec.c.

◆ liblc3_decode_close()

static av_cold int liblc3_decode_close ( AVCodecContext avctx)
static

Definition at line 93 of file liblc3dec.c.

◆ liblc3_decode()

static int liblc3_decode ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 102 of file liblc3dec.c.

Variable Documentation

◆ ff_liblc3_decoder

const FFCodec ff_liblc3_decoder
Initial value:
= {
.p.name = "liblc3",
CODEC_LONG_NAME("LC3 (Low Complexity Communication Codec)"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_LC3,
.p.capabilities = AV_CODEC_CAP_DR1,
.p.wrapper_name = "liblc3",
.priv_data_size = sizeof(LibLC3DecContext),
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 134 of file liblc3dec.c.

FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:43
LibLC3DecContext
Definition: liblc3dec.c:33
liblc3_decode_init
static av_cold int liblc3_decode_init(AVCodecContext *avctx)
Definition: liblc3dec.c:39
AV_CODEC_ID_LC3
@ AV_CODEC_ID_LC3
Definition: codec_id.h:546
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
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
liblc3_decode
static int liblc3_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: liblc3dec.c:102
liblc3_decode_close
static av_cold int liblc3_decode_close(AVCodecContext *avctx)
Definition: liblc3dec.c:93