#include <stdlib.h>#include <stdint.h>#include <stdio.h>Go to the source code of this file.
Data Structures | |
| struct | VObj |
Defines | |
| #define | SCALEBITS 8 |
| #define | ONE_HALF (1 << (SCALEBITS - 1)) |
| #define | FIX(x) ((int) ((x) * (1L << SCALEBITS) + 0.5)) |
| #define | DEFAULT_WIDTH 352 |
| #define | DEFAULT_HEIGHT 288 |
| #define | DEFAULT_NB_PICT 50 |
| #define | NOISE_X 10 |
| #define | NOISE_Y 30 |
| #define | NOISE_W 26 |
| #define | FRAC_BITS 8 |
| #define | FRAC_ONE (1 << FRAC_BITS) |
| #define | NB_OBJS 10 |
Typedefs | |
| typedef struct VObj | VObj |
Functions | |
| static void | rgb24_to_yuv420p (uint8_t *lum, uint8_t *cb, uint8_t *cr, uint8_t *src, int width, int height) |
| static void | pgmyuv_save (const char *filename, int w, int h, unsigned char *rgb_tab) |
| static void | put_pixel (int x, int y, int r, int g, int b) |
| static unsigned int | myrnd (unsigned int *seed_ptr, int n) |
| static int | int_cos (int a) |
| static void | gen_image (int num, int w, int h) |
| int | main (int argc, char **argv) |
Variables | |
| unsigned char * | rgb_tab |
| int | width |
| int | height |
| int | |