FFmpeg
Loading...
Searching...
No Matches
apac.c File Reference
#include "libavutil/audio_fifo.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  ChContext
 
struct  APACContext
 

Functions

static av_cold int apac_close (AVCodecContext *avctx)
 
static av_cold int apac_init (AVCodecContext *avctx)
 
static int get_code (ChContext *c, GetBitContext *gb)
 
static int apac_decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *pkt)
 

Variables

const FFCodec ff_apac_decoder
 

Function Documentation

◆ apac_close()

static av_cold int apac_close ( AVCodecContext * avctx)
static

Definition at line 51 of file apac.c.

◆ apac_init()

static av_cold int apac_init ( AVCodecContext * avctx)
static

Definition at line 67 of file apac.c.

◆ get_code()

static int get_code ( ChContext * c,
GetBitContext * gb )
static

Definition at line 102 of file apac.c.

Referenced by apac_decode().

◆ apac_decode()

static int apac_decode ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame_ptr,
AVPacket * pkt )
static

Definition at line 126 of file apac.c.

Variable Documentation

◆ ff_apac_decoder

const FFCodec ff_apac_decoder
Initial value:
= {
.p.name = "apac",
CODEC_LONG_NAME("Marian's A-pac audio"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(APACContext),
.close = apac_close,
.p.capabilities = AV_CODEC_CAP_DELAY |
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
#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_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition codec.h:79
#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_APAC
Definition codec_id.h:552
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static av_cold int apac_close(AVCodecContext *avctx)
Definition apac.c:51
static av_cold int apac_init(AVCodecContext *avctx)
Definition apac.c:67
static int apac_decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *pkt)
Definition apac.c:126

Definition at line 265 of file apac.c.