gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the source code of this file.
Classes | |
struct | box |
Macros | |
#define | HASH_SIZE 20023 |
#define | ppm_hashpixel(p) (((int)(p)&0x7fffffff) % HASH_SIZE) |
#define | LARGE_LUM |
#define | REP_AVERAGE_PIXELS |
#define | BITS 12 |
#define | HSIZE 5003 /* 80% occupancy */ |
#define | TRUE 1 |
#define | FALSE 0 |
#define | ARGVAL() (*++(*argv) || (--argc && *++argv)) |
#define | MAXCODE(n_bits) (((code_int)1 << (n_bits)) - 1) |
#define | HashTabOf(i) htab[i] |
#define | CodeTabOf(i) codetab[i] |
#define | tab_prefixof(i) CodeTabOf(i) |
#define | tab_suffixof(i) ((char_type *)(htab))[i] |
#define | de_stack ((char_type *)&tab_suffixof((code_int)1 << BITS)) |
#define | FS_SCALE 1024 |
#define | MAXCOL2 32767 |
Typedefs | |
typedef colorhist_list * | colorhash_table |
typedef struct box * | box_vector |
typedef unsigned char | char_type |
typedef int(* | ifunptr) (int, int) |
Functions | |
static colorhash_table | ppm_alloccolorhash () |
static void | ppm_freecolorhash (colorhash_table cht) |
static colorhash_table | ppm_computecolorhash (pixel **const pixels, const int cols, const int rows, const int maxcolors, int *const colorsP) |
static int | ppm_addtocolorhash (colorhash_table cht, const pixel *const colorP, const int value) |
static colorhist_vector | ppm_colorhashtocolorhist (const colorhash_table cht, const int maxcolors) |
static colorhash_table | ppm_colorhisttocolorhash (const colorhist_vector chv, const int colors) |
static colorhist_vector | ppm_computecolorhist (pixel **const pixels, const int cols, const int rows, const int maxcolors, int *const colorsP) |
static int | ppm_lookupcolor (const colorhash_table cht, const pixel *const colorP) |
static void | ppm_freecolorhist (colorhist_vector chv) |
static int | colorstobpp (int colors) |
static int | sqr (int x) |
static int | closestcolor (pixel color) |
static int | GetPixel (int x, int y) |
static int | redcompare (const void *ch1, const void *ch2) |
static int | greencompare (const void *ch1, const void *ch2) |
static int | bluecompare (const void *ch1, const void *ch2) |
static int | sumcompare (const void *b1, const void *b2) |
static colorhist_vector | mediancut (colorhist_vector chv, int colors, int sum, pixval maxval, int newcolors) |
static void | char_init () |
static void | flush_char () |
static void | char_out (int c) |
static void | BumpPixel () |
static int | GIFNextPixel (ifunptr getpixel) |
static void | output (code_int code) |
static void | cl_hash (count_int hsize) |
static void | cl_block () |
static void | compress (int init_bits, FILE *outfile, ifunptr ReadValue) |
static void | Putword (int w, FILE *fp) |
static void | GIFEncode (FILE *fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, int Red[], int Green[], int Blue[], ifunptr GetPixel) |
void | create_gif (FILE *outfile, PixelBuffer *buffer, int dither, int sort, int interlace, int transparency) |
Variables | |
static int | static_red [MAX_GIFCOLORS] |
static int | static_green [MAX_GIFCOLORS] |
static int | static_blue [MAX_GIFCOLORS] |
static int | static_perm [MAX_GIFCOLORS] |
static int | static_permi [MAX_GIFCOLORS] |
static int | static_nbcolors |
static pixel ** | static_pixels |
static colorhash_table | static_cht |
static int | g_init_bits |
static FILE * | g_outfile |
static int | Width |
static int | Height |
static int | curx |
static int | cury |
static long | CountDown |
static int | Pass = 0 |
static int | Interlace |
static int | n_bits |
static int | maxbits = BITS |
static code_int | maxcode |
static code_int | maxmaxcode = (code_int)1 << BITS |
static count_int | htab [HSIZE] |
static unsigned short | codetab [HSIZE] |
static code_int | hsize = HSIZE |
static code_int | free_ent = 0 |
static int | clear_flg = 0 |
static long int | in_count = 1 |
static long int | out_count = 0 |
static int | ClearCode |
static int | EOFCode |
static int | a_count |
static char | accum [256] |
static unsigned long | cur_accum = 0 |
static int | cur_bits = 0 |
static unsigned long | masks [] |
#define ARGVAL | ( | ) | (*++(*argv) || (--argc && *++argv)) |
Definition at line 571 of file gl2gif.cpp.
#define BITS 12 |
Definition at line 553 of file gl2gif.cpp.
#define CodeTabOf | ( | i | ) | codetab[i] |
Definition at line 584 of file gl2gif.cpp.
#define de_stack ((char_type *)&tab_suffixof((code_int)1 << BITS)) |
Definition at line 599 of file gl2gif.cpp.
#define FALSE 0 |
Definition at line 556 of file gl2gif.cpp.
#define FS_SCALE 1024 |
Definition at line 1108 of file gl2gif.cpp.
#define HASH_SIZE 20023 |
Definition at line 54 of file gl2gif.cpp.
#define HashTabOf | ( | i | ) | htab[i] |
Definition at line 583 of file gl2gif.cpp.
#define HSIZE 5003 /* 80% occupancy */ |
Definition at line 554 of file gl2gif.cpp.
#define LARGE_LUM |
Definition at line 305 of file gl2gif.cpp.
Definition at line 579 of file gl2gif.cpp.
#define MAXCOL2 32767 |
Definition at line 1109 of file gl2gif.cpp.
#define ppm_hashpixel | ( | p | ) | (((int)(p)&0x7fffffff) % HASH_SIZE) |
Definition at line 55 of file gl2gif.cpp.
#define REP_AVERAGE_PIXELS |
Definition at line 309 of file gl2gif.cpp.
#define tab_prefixof | ( | i | ) | CodeTabOf(i) |
Definition at line 597 of file gl2gif.cpp.
Definition at line 598 of file gl2gif.cpp.
#define TRUE 1 |
Definition at line 555 of file gl2gif.cpp.
typedef struct box* box_vector |
Definition at line 310 of file gl2gif.cpp.
typedef unsigned char char_type |
Definition at line 557 of file gl2gif.cpp.
typedef colorhist_list* colorhash_table |
Definition at line 73 of file gl2gif.cpp.
typedef int(* ifunptr) (int, int) |
Definition at line 558 of file gl2gif.cpp.
|
static |
Definition at line 329 of file gl2gif.cpp.
Referenced by mediancut().
|
static |
Definition at line 654 of file gl2gif.cpp.
Referenced by GIFNextPixel().
|
static |
Definition at line 621 of file gl2gif.cpp.
Referenced by compress().
|
static |
Definition at line 644 of file gl2gif.cpp.
Referenced by output().
|
static |
Definition at line 846 of file gl2gif.cpp.
Referenced by compress().
|
static |
Definition at line 812 of file gl2gif.cpp.
Referenced by cl_block(), and compress().
|
static |
Definition at line 268 of file gl2gif.cpp.
Referenced by create_gif(), and GetPixel().
|
static |
Definition at line 238 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 856 of file gl2gif.cpp.
Referenced by GIFEncode().
void create_gif | ( | FILE * | outfile, |
PixelBuffer * | buffer, | ||
int | dither, | ||
int | sort, | ||
int | interlace, | ||
int | transparency | ||
) |
Definition at line 1110 of file gl2gif.cpp.
Referenced by CreateOutputFile().
|
static |
Definition at line 631 of file gl2gif.cpp.
Referenced by char_out(), and output().
|
static |
Definition at line 289 of file gl2gif.cpp.
Referenced by create_gif(), and GIFEncode().
|
static |
Definition at line 948 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 706 of file gl2gif.cpp.
Referenced by compress().
|
static |
Definition at line 323 of file gl2gif.cpp.
Referenced by mediancut().
|
static |
Definition at line 346 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 743 of file gl2gif.cpp.
Referenced by cl_block(), compress(), Octree_SearchAll(), and GMSH_SpanningTreePlugin::run().
|
static |
Definition at line 145 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 83 of file gl2gif.cpp.
Referenced by create_gif(), ppm_colorhisttocolorhash(), and ppm_computecolorhash().
|
static |
Definition at line 160 of file gl2gif.cpp.
Referenced by ppm_computecolorhist().
|
static |
Definition at line 182 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 108 of file gl2gif.cpp.
Referenced by ppm_computecolorhist().
|
static |
Definition at line 209 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 95 of file gl2gif.cpp.
Referenced by create_gif(), ppm_computecolorhash(), and ppm_computecolorhist().
|
static |
Definition at line 236 of file gl2gif.cpp.
Referenced by create_gif().
|
static |
Definition at line 224 of file gl2gif.cpp.
Referenced by create_gif(), and GetPixel().
|
static |
Definition at line 942 of file gl2gif.cpp.
Referenced by GIFEncode().
|
static |
Definition at line 317 of file gl2gif.cpp.
Referenced by mediancut().
|
static |
Definition at line 266 of file gl2gif.cpp.
Referenced by closestcolor(), JacobianBasis::getMetricMinAndGradients(), insertVerticesInRegion(), MeshDelaunayVolume(), and STensor3::norm2().
|
static |
Definition at line 335 of file gl2gif.cpp.
Referenced by mediancut().
|
static |
Definition at line 616 of file gl2gif.cpp.
Referenced by char_init(), char_out(), flush_char(), RTFileStream::ReadArray(), and RTFileStream::WriteArray().
|
static |
Definition at line 626 of file gl2gif.cpp.
Referenced by char_out(), and flush_char().
|
static |
Definition at line 606 of file gl2gif.cpp.
Referenced by cl_block(), compress(), and output().
|
static |
Definition at line 610 of file gl2gif.cpp.
Referenced by cl_block(), and compress().
|
static |
Definition at line 581 of file gl2gif.cpp.
|
static |
Definition at line 564 of file gl2gif.cpp.
Referenced by GIFEncode(), and GIFNextPixel().
|
static |
Definition at line 736 of file gl2gif.cpp.
Referenced by GIFEncode(), and output().
|
static |
Definition at line 737 of file gl2gif.cpp.
Referenced by GIFEncode(), and output().
|
static |
Definition at line 563 of file gl2gif.cpp.
Referenced by BumpPixel(), GIFEncode(), and GIFNextPixel().
|
static |
Definition at line 563 of file gl2gif.cpp.
Referenced by BumpPixel(), GIFEncode(), and GIFNextPixel().
|
static |
Definition at line 611 of file gl2gif.cpp.
Referenced by compress(), and output().
|
static |
Definition at line 600 of file gl2gif.cpp.
Referenced by cl_block(), compress(), GIFEncode(), and output().
|
static |
Definition at line 560 of file gl2gif.cpp.
Referenced by compress(), and output().
|
static |
Definition at line 561 of file gl2gif.cpp.
Referenced by compress(), flush_char(), and output().
|
static |
Definition at line 562 of file gl2gif.cpp.
Referenced by BumpPixel(), and GIFEncode().
Definition at line 585 of file gl2gif.cpp.
Referenced by cl_block(), cl_hash(), and compress().
Definition at line 580 of file gl2gif.cpp.
Referenced by cl_hash().
|
static |
Definition at line 608 of file gl2gif.cpp.
Referenced by compress().
|
static |
Definition at line 566 of file gl2gif.cpp.
Referenced by BumpPixel(), and GIFEncode().
|
static |
Definition at line 739 of file gl2gif.cpp.
Referenced by output().
|
static |
Definition at line 573 of file gl2gif.cpp.
Referenced by compress(), and output().
|
static |
Definition at line 574 of file gl2gif.cpp.
Referenced by compress(), and output().
Definition at line 575 of file gl2gif.cpp.
Referenced by compress(), and output().
|
static |
Definition at line 572 of file gl2gif.cpp.
Referenced by compress(), and output().
|
static |
Definition at line 609 of file gl2gif.cpp.
Referenced by compress().
|
static |
Definition at line 565 of file gl2gif.cpp.
Referenced by BumpPixel(), and GIFEncode().
|
static |
Definition at line 77 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 81 of file gl2gif.cpp.
Referenced by closestcolor(), create_gif(), and GetPixel().
|
static |
Definition at line 76 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 79 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 78 of file gl2gif.cpp.
Referenced by create_gif(), and GetPixel().
|
static |
Definition at line 78 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 80 of file gl2gif.cpp.
Referenced by create_gif(), and GetPixel().
|
static |
Definition at line 75 of file gl2gif.cpp.
Referenced by closestcolor(), and create_gif().
|
static |
Definition at line 562 of file gl2gif.cpp.
Referenced by BumpPixel(), and GIFEncode().