libavcodec/roqaudioenc.c File Reference

#include "avcodec.h"
#include "bytestream.h"

Go to the source code of this file.

Data Structures

struct  ROQDPCMContext

Defines

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

Functions

static av_cold void roq_dpcm_table_init (void)
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

static unsigned char dpcmValues [MAX_DPCM]
AVCodec roq_dpcm_encoder


Define Documentation

#define MAX_DPCM   (127*127)

Definition at line 31 of file roqaudioenc.c.

Referenced by dpcm_predict(), and roq_dpcm_table_init().

#define ROQ_FIRST_FRAME_SIZE   (735*8)

Definition at line 27 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().

#define ROQ_FRAME_SIZE   735

Definition at line 28 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 81 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame().

static av_cold int roq_dpcm_encode_close ( AVCodecContext avctx  )  [static]

Definition at line 161 of file roqaudioenc.c.

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

Definition at line 119 of file roqaudioenc.c.

static av_cold int roq_dpcm_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 52 of file roqaudioenc.c.

static av_cold void roq_dpcm_table_init ( void   )  [static]

Definition at line 40 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().


Variable Documentation

unsigned char dpcmValues[MAX_DPCM] [static]

Definition at line 32 of file roqaudioenc.c.

Referenced by dpcm_predict(), and roq_dpcm_table_init().

Initial value:

Definition at line 168 of file roqaudioenc.c.


Generated on Fri Oct 26 02:35:44 2012 for FFmpeg by  doxygen 1.5.8