roqaudioenc.c File Reference
#include "libavutil/intmath.h"
#include "avcodec.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  ROQDPCMContext

Macros

#define ROQ_FIRST_FRAME_SIZE   (735*8)
#define ROQ_FRAME_SIZE   735
#define MAX_DPCM   (127*127)

Functions

static av_cold int roq_dpcm_encode_init (AVCodecContext *avctx)
static unsigned char dpcm_predict (short *previous, short current)
static int roq_dpcm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static av_cold int roq_dpcm_encode_close (AVCodecContext *avctx)

Variables

AVCodec ff_roq_dpcm_encoder

Macro Definition Documentation

#define MAX_DPCM   (127*127)

Definition at line 32 of file roqaudioenc.c.

Referenced by dpcm_predict().

#define ROQ_FIRST_FRAME_SIZE   (735*8)

Definition at line 28 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().

#define ROQ_FRAME_SIZE   735

Definition at line 29 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame().

Function Documentation

static unsigned char dpcm_predict ( short *  previous,
short  current 
)
static

Definition at line 67 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame().

static av_cold int roq_dpcm_encode_close ( AVCodecContext avctx)
static

Definition at line 149 of file roqaudioenc.c.

static int roq_dpcm_encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void data 
)
static

Definition at line 107 of file roqaudioenc.c.

static av_cold int roq_dpcm_encode_init ( AVCodecContext avctx)
static

Definition at line 40 of file roqaudioenc.c.

Variable Documentation

AVCodec ff_roq_dpcm_encoder
Initial value:
{
.name = "roq_dpcm",
.priv_data_size = sizeof(ROQDPCMContext),
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"),
}

Definition at line 156 of file roqaudioenc.c.