libavcodec/roqaudioenc.c File Reference

#include "libavutil/intmath.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  ROQDPCMContext

Defines

#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


Define Documentation

#define MAX_DPCM   (127*127)

Definition at line 32 of file roqaudioenc.c.

Referenced by dpcm_predict().

#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().


Function Documentation

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

Definition at line 98 of file roqaudioenc.c.

Referenced by roq_dpcm_encode_frame().

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

Definition at line 138 of file roqaudioenc.c.

static av_cold int roq_dpcm_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 57 of file roqaudioenc.c.


Variable Documentation

Initial value:

 {
    .name           = "roq_dpcm",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = CODEC_ID_ROQ_DPCM,
    .priv_data_size = sizeof(ROQDPCMContext),
    .init           = roq_dpcm_encode_init,
    .encode2        = roq_dpcm_encode_frame,
    .close          = roq_dpcm_encode_close,
    .capabilities   = CODEC_CAP_DELAY,
    .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 203 of file roqaudioenc.c.


Generated on Fri Oct 26 02:47:58 2012 for FFmpeg by  doxygen 1.5.8