FFmpeg
Loading...
Searching...
No Matches
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 94 of file liblc3dec.c.

◆ liblc3_decode()

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

Definition at line 103 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,
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_LC3
Definition codec_id.h:559
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static av_cold int liblc3_decode_init(AVCodecContext *avctx)
Definition liblc3dec.c:39
static av_cold int liblc3_decode_close(AVCodecContext *avctx)
Definition liblc3dec.c:94
static int liblc3_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition liblc3dec.c:103

Definition at line 140 of file liblc3dec.c.