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
Function Documentation
static void gen_image |
( |
int |
num, |
|
|
int |
w, |
|
|
int |
h | |
|
) |
| | [static] |
static int init_demo |
( |
const char * |
filename |
) |
[static] |
static int64_t int_pow |
( |
int64_t |
a, |
|
|
int |
p | |
|
) |
| | [static] |
static int64_t int_sin |
( |
int64_t |
a |
) |
[static] |
static int ipol |
( |
uint8_t * |
src, |
|
|
int |
x, |
|
|
int |
y | |
|
) |
| | [static] |
int main |
( |
int |
argc, |
|
|
char ** |
argv | |
|
) |
| | |
Variable Documentation
unsigned char tab_b[256 *256] [static] |
unsigned char tab_g[256 *256] [static] |
unsigned char tab_r[256 *256] [static] |