libavcodec/8svx.c File Reference

8svx audio decoder More...

#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  EightSvxContext
 decoder context More...

Functions

static int eightsvx_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 decode a frame
static av_cold int eightsvx_decode_init (AVCodecContext *avctx)
 initialize 8svx decoder

Variables

static const int16_t fibonacci [16]
static const int16_t exponential [16]
AVCodec eightsvx_fib_decoder
AVCodec eightsvx_exp_decoder


Detailed Description

8svx audio decoder

Author:
Jaikrishnan Menon supports: fibonacci delta encoding : exponential encoding

Definition in file 8svx.c.


Function Documentation

static int eightsvx_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

decode a frame

Definition at line 44 of file 8svx.c.

static av_cold int eightsvx_decode_init ( AVCodecContext avctx  )  [static]

initialize 8svx decoder

Definition at line 77 of file 8svx.c.


Variable Documentation

Initial value:

 {
  .name           = "8svx_exp",
  .type           = AVMEDIA_TYPE_AUDIO,
  .id             = CODEC_ID_8SVX_EXP,
  .priv_data_size = sizeof (EightSvxContext),
  .init           = eightsvx_decode_init,
  .decode         = eightsvx_decode_frame,
  .long_name      = NULL_IF_CONFIG_SMALL("8SVX exponential"),
}

Definition at line 105 of file 8svx.c.

Initial value:

 {
  .name           = "8svx_fib",
  .type           = AVMEDIA_TYPE_AUDIO,
  .id             = CODEC_ID_8SVX_FIB,
  .priv_data_size = sizeof (EightSvxContext),
  .init           = eightsvx_decode_init,
  .decode         = eightsvx_decode_frame,
  .long_name      = NULL_IF_CONFIG_SMALL("8SVX fibonacci"),
}

Definition at line 95 of file 8svx.c.

const int16_t exponential[16] [static]

Initial value:

 { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8,
                                          0, 1<<8, 2<<8, 4<<8, 8<<8, 16<<8, 32<<8, 64<<8 }

Definition at line 40 of file 8svx.c.

Referenced by eightsvx_decode_init().

const int16_t fibonacci[16] [static]

Initial value:

 { -34<<8, -21<<8, -13<<8,  -8<<8, -5<<8, -3<<8, -2<<8, -1<<8,
                                          0, 1<<8, 2<<8, 3<<8, 5<<8, 8<<8, 13<<8, 21<<8 }

Definition at line 38 of file 8svx.c.

Referenced by eightsvx_decode_init().


Generated on Fri Oct 26 02:36:50 2012 for FFmpeg by  doxygen 1.5.8