Libav
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 45 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_init().

static av_cold int roq_dpcm_encode_init ( AVCodecContext avctx)
static

Definition at line 54 of file roqaudioenc.c.

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

Definition at line 87 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 127 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,
}
static av_cold int roq_dpcm_encode_close(AVCodecContext *avctx)
Definition: roqaudioenc.c:45
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:713
sample_fmts
Definition: avconv_filter.c:68
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:150
static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: roqaudioenc.c:127
static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
Definition: roqaudioenc.c:54
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:61
AV_SAMPLE_FMT_NONE
Definition: avconv_filter.c:68
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
signed 16 bits
Definition: samplefmt.h:64
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 194 of file roqaudioenc.c.