FFmpeg
Data Structures | Functions | Variables
ftr.c File Reference
#include "adts_header.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "get_bits.h"
#include "decode.h"

Go to the source code of this file.

Data Structures

struct  FTRContext
 

Functions

static av_cold int ftr_init (AVCodecContext *avctx)
 
static int ftr_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static void ftr_flush (AVCodecContext *avctx)
 
static av_cold int ftr_close (AVCodecContext *avctx)
 

Variables

const FFCodec ff_ftr_decoder
 

Function Documentation

◆ ftr_init()

static av_cold int ftr_init ( AVCodecContext avctx)
static

Definition at line 32 of file ftr.c.

◆ ftr_decode_frame()

static int ftr_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 72 of file ftr.c.

◆ ftr_flush()

static void ftr_flush ( AVCodecContext avctx)
static

Definition at line 176 of file ftr.c.

◆ ftr_close()

static av_cold int ftr_close ( AVCodecContext avctx)
static

Definition at line 184 of file ftr.c.

Variable Documentation

◆ ff_ftr_decoder

const FFCodec ff_ftr_decoder
Initial value:
= {
.p.name = "ftr",
.p.long_name = NULL_IF_CONFIG_SMALL("FTR Voice"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.id = AV_CODEC_ID_FTR,
.init = ftr_init,
.close = ftr_close,
.flush = ftr_flush,
.priv_data_size = sizeof(FTRContext),
.p.capabilities =
AV_CODEC_CAP_SUBFRAMES |
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 196 of file ftr.c.

FTRContext
Definition: ftr.c:25
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:42
ftr_close
static av_cold int ftr_close(AVCodecContext *avctx)
Definition: ftr.c:184
ftr_decode_frame
static int ftr_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: ftr.c:72
ftr_init
static av_cold int ftr_init(AVCodecContext *avctx)
Definition: ftr.c:32
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:286
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
ftr_flush
static void ftr_flush(AVCodecContext *avctx)
Definition: ftr.c:176
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:94
AV_CODEC_ID_FTR
@ AV_CODEC_ID_FTR
Definition: codec_id.h:540