libswresample/rematrix.c File Reference

#include "swresample_internal.h"
#include "libavutil/audioconvert.h"
#include "libavutil/avassert.h"
#include "rematrix_template.c"

Go to the source code of this file.

Defines

#define ONE   (1.0)
#define R(x)   x
#define SAMPLE   float
#define COEFF   float
#define RENAME(x)   x ## _float
#define ONE   (-32768)
#define R(x)   (((x) + 16384)>>15)
#define SAMPLE   int16_t
#define COEFF   int
#define RENAME(x)   x ## _s16
#define FRONT_LEFT   0
#define FRONT_RIGHT   1
#define FRONT_CENTER   2
#define LOW_FREQUENCY   3
#define BACK_LEFT   4
#define BACK_RIGHT   5
#define FRONT_LEFT_OF_CENTER   6
#define FRONT_RIGHT_OF_CENTER   7
#define BACK_CENTER   8
#define SIDE_LEFT   9
#define SIDE_RIGHT   10
#define TOP_CENTER   11
#define TOP_FRONT_LEFT   12
#define TOP_FRONT_CENTER   13
#define TOP_FRONT_RIGHT   14
#define TOP_BACK_LEFT   15
#define TOP_BACK_CENTER   16
#define TOP_BACK_RIGHT   17

Functions

static int even (int64_t layout)
static int sane_layout (int64_t layout)
int swri_rematrix_init (SwrContext *s)
int swri_rematrix (SwrContext *s, AudioData *out, AudioData *in, int len, int mustcopy)


Define Documentation

#define BACK_CENTER   8

Definition at line 53 of file rematrix.c.

Referenced by swri_rematrix_init().

#define BACK_LEFT   4

Definition at line 49 of file rematrix.c.

Referenced by swri_rematrix_init().

#define BACK_RIGHT   5

Definition at line 50 of file rematrix.c.

Referenced by swri_rematrix_init().

#define COEFF   int

Definition at line 40 of file rematrix.c.

#define COEFF   float

Definition at line 40 of file rematrix.c.

#define FRONT_CENTER   2

Definition at line 47 of file rematrix.c.

Referenced by swri_rematrix_init().

#define FRONT_LEFT   0

Definition at line 45 of file rematrix.c.

Referenced by swri_rematrix_init().

#define FRONT_LEFT_OF_CENTER   6

Definition at line 51 of file rematrix.c.

Referenced by swri_rematrix_init().

#define FRONT_RIGHT   1

Definition at line 46 of file rematrix.c.

Referenced by swri_rematrix_init().

#define FRONT_RIGHT_OF_CENTER   7

Definition at line 52 of file rematrix.c.

Referenced by swri_rematrix_init().

#define LOW_FREQUENCY   3

Definition at line 48 of file rematrix.c.

#define ONE   (-32768)

Definition at line 37 of file rematrix.c.

#define ONE   (1.0)

Definition at line 37 of file rematrix.c.

#define R (  )     (((x) + 16384)>>15)

Definition at line 38 of file rematrix.c.

#define R (  )     x

Definition at line 38 of file rematrix.c.

#define RENAME (  )     x ## _s16

Definition at line 41 of file rematrix.c.

#define RENAME (  )     x ## _float

Definition at line 41 of file rematrix.c.

#define SAMPLE   int16_t

Definition at line 39 of file rematrix.c.

#define SAMPLE   float

Definition at line 39 of file rematrix.c.

Referenced by copy_TMPL().

#define SIDE_LEFT   9

Definition at line 54 of file rematrix.c.

Referenced by swri_rematrix_init().

#define SIDE_RIGHT   10

Definition at line 55 of file rematrix.c.

Referenced by swri_rematrix_init().

#define TOP_BACK_CENTER   16

Definition at line 61 of file rematrix.c.

#define TOP_BACK_LEFT   15

Definition at line 60 of file rematrix.c.

#define TOP_BACK_RIGHT   17

Definition at line 62 of file rematrix.c.

#define TOP_CENTER   11

Definition at line 56 of file rematrix.c.

#define TOP_FRONT_CENTER   13

Definition at line 58 of file rematrix.c.

#define TOP_FRONT_LEFT   12

Definition at line 57 of file rematrix.c.

#define TOP_FRONT_RIGHT   14

Definition at line 59 of file rematrix.c.


Function Documentation

static int even ( int64_t  layout  )  [static]

Definition at line 64 of file rematrix.c.

Referenced by block_diffs(), and sane_layout().

static int sane_layout ( int64_t  layout  )  [static]

Definition at line 70 of file rematrix.c.

Referenced by swri_rematrix_init().

int swri_rematrix ( SwrContext s,
AudioData out,
AudioData in,
int  len,
int  mustcopy 
)

Definition at line 242 of file rematrix.c.

Referenced by swr_convert().

int swri_rematrix_init ( SwrContext s  ) 

Definition at line 87 of file rematrix.c.

Referenced by swr_init().


Generated on Fri Oct 26 02:43:53 2012 for FFmpeg by  doxygen 1.5.8