FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
roqaudioenc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  ROQDPCMContext
 

Macros

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

Functions

static av_cold int roq_dpcm_encode_close (AVCodecContext *avctx)
 
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, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

AVCodec ff_roq_dpcm_encoder
 

Macro Definition Documentation

#define ROQ_FRAME_SIZE   735

Definition at line 29 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().

#define ROQ_HEADER_SIZE   8

Definition at line 30 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame(), and roq_dpcm_encode_init().

#define MAX_DPCM   (127*127)

Definition at line 32 of file roqaudioenc.c.

Referenced by dpcm_predict().

Function Documentation

static av_cold int roq_dpcm_encode_close ( AVCodecContext avctx)
static

Definition at line 44 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().

static av_cold int roq_dpcm_encode_init ( AVCodecContext avctx)
static

Definition at line 53 of file roqaudioenc.c.

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

Definition at line 86 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame().

static int roq_dpcm_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
)
static

Definition at line 126 of file roqaudioenc.c.

Variable Documentation

AVCodec ff_roq_dpcm_encoder
Initial value:
= {
.name = "roq_dpcm",
.long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"),
.priv_data_size = sizeof(ROQDPCMContext),
.capabilities = CODEC_CAP_DELAY,
}

Definition at line 192 of file roqaudioenc.c.