FFmpeg
Macros | Functions | Variables
rotozoom.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include "utils.c"

Go to the source code of this file.

Macros

#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]
 

Macro Definition Documentation

◆ FIXP

#define FIXP   (1 << 16)

Definition at line 29 of file rotozoom.c.

◆ MY_PI

#define MY_PI   205887

Definition at line 30 of file rotozoom.c.

◆ W

#define W   256

Definition at line 115 of file rotozoom.c.

◆ H

#define H   256

Definition at line 116 of file rotozoom.c.

Function Documentation

◆ int_pow()

static int64_t int_pow ( int64_t  a,
int  p 
)
static

Definition at line 32 of file rotozoom.c.

Referenced by int_sin().

◆ int_sin()

static int64_t int_sin ( int64_t  a)
static

Definition at line 44 of file rotozoom.c.

Referenced by init_demo().

◆ ipol()

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

◆ gen_image()

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

Definition at line 81 of file rotozoom.c.

Referenced by main().

◆ init_demo()

static int init_demo ( const char *  filename)
static

Definition at line 118 of file rotozoom.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 157 of file rotozoom.c.

Variable Documentation

◆ tab_r

unsigned char tab_r[256 *256]
static

Definition at line 58 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

◆ tab_g

unsigned char tab_g[256 *256]
static

Definition at line 59 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

◆ tab_b

unsigned char tab_b[256 *256]
static

Definition at line 60 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

◆ h_cos

int h_cos[360]
static

Definition at line 62 of file rotozoom.c.

Referenced by gen_image(), and init_demo().

◆ h_sin

int h_sin[360]
static

Definition at line 63 of file rotozoom.c.

Referenced by gen_image(), and init_demo().