tests/rotozoom.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include "utils.c"

Go to the source code of this file.

Defines

#define FIXP   (1 << 16)
#define MY_PI   205887
#define W   256
#define H   256

Functions

static int64_t int_pow (int64_t a, int p)
static int64_t int_sin (int64_t a)
static int ipol (uint8_t *src, int x, int y)
static void gen_image (int num, int w, int h)
static int init_demo (const char *filename)
int main (int argc, char **argv)

Variables

static unsigned char tab_r [256 *256]
static unsigned char tab_g [256 *256]
static unsigned char tab_b [256 *256]
static int h_cos [360]
static int h_sin [360]


Define Documentation

#define FIXP   (1 << 16)

Definition at line 29 of file rotozoom.c.

Referenced by gen_image(), init_demo(), and int_pow().

#define H   256

Definition at line 116 of file rotozoom.c.

#define MY_PI   205887

Definition at line 30 of file rotozoom.c.

Referenced by init_demo(), and int_sin().

#define W   256

Definition at line 115 of file rotozoom.c.


Function Documentation

static void gen_image ( int  num,
int  w,
int  h 
) [static]

Definition at line 81 of file rotozoom.c.

Referenced by main().

static int init_demo ( const char *  filename  )  [static]

Definition at line 118 of file rotozoom.c.

Referenced by main().

static int64_t int_pow ( int64_t  a,
int  p 
) [static]

Definition at line 32 of file rotozoom.c.

Referenced by int_sin().

static int64_t int_sin ( int64_t  a  )  [static]

Definition at line 44 of file rotozoom.c.

Referenced by init_demo().

static int ipol ( uint8_t src,
int  x,
int  y 
) [static]

Definition at line 65 of file rotozoom.c.

Referenced by gen_image(), and interpol().

int main ( int  argc,
char **  argv 
)

Definition at line 157 of file rotozoom.c.


Variable Documentation

int h_cos[360] [static]

Definition at line 62 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

int h_sin[360] [static]

Definition at line 63 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

unsigned char tab_b[256 *256] [static]

Definition at line 60 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

unsigned char tab_g[256 *256] [static]

Definition at line 59 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

unsigned char tab_r[256 *256] [static]

Definition at line 58 of file rotozoom.c.

Referenced by gen_image(), and init_demo().


Generated on Fri Oct 26 02:48:03 2012 for FFmpeg by  doxygen 1.5.8