#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <setjmp.h>
#include <time.h>
#include <math.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/keysym.h>
#include "readpng2.h"
Go to the source code of this file.
|
#define | PROGNAME "rpng2-x" |
|
#define | LONGNAME "Progressive PNG Viewer for X" |
|
#define | VERSION "2.02 of 16 March 2008" |
|
#define | RESNAME "rpng2" /* our X resource application name */ |
|
#define | RESCLASS "Rpng" /* our X resource class name */ |
|
#define | PI 3.141592653589793238 |
|
#define | PI_2 (PI*0.5) |
|
#define | INV_PI_360 (360.0 / PI) |
|
#define | MAX(a, b) (a>b?a:b) |
|
#define | MIN(a, b) (a<b?a:b) |
|
#define | CLIP(a, min, max) MAX(min,MIN((a),max)) |
|
#define | ABS(a) ((a)<0?-(a):(a)) |
|
#define | CLIP8P(c) MAX(0,(MIN((c),255))) /* 8-bit pos. integer (uch) */ |
|
#define | ROUNDF(f) ((int)(f + 0.5)) |
|
#define | QUIT(e, k) |
|
#define | NO_24BIT_MASKS /* undef case not fully written--only for redisplay() */ |
|
#define | rgb1_max bg_freq |
|
#define | rgb1_min bg_gray |
|
#define | rgb2_max bg_bsat |
|
#define | rgb2_min bg_brot |
|
#define | alpha_composite(composite, fg, alpha, bg) |
|
#define | INBUFSIZE |
|
◆ ABS
#define ABS |
( |
|
a | ) |
((a)<0?-(a):(a)) |
◆ alpha_composite
#define alpha_composite |
( |
|
composite, |
|
|
|
fg, |
|
|
|
alpha, |
|
|
|
bg |
|
) |
| |
Value:{ \
(composite) = (
uch)((temp + (temp >> 8)) >> 8); \
}
GLfloat GLfloat GLfloat alpha
Definition at line 151 of file rpng2-x.c.
◆ CLIP
◆ CLIP8P
#define CLIP8P |
( |
|
c | ) |
MAX(0,(MIN((c),255))) /* 8-bit pos. integer (uch) */ |
◆ INBUFSIZE
◆ INV_PI_360
#define INV_PI_360 (360.0 / PI) |
◆ LONGNAME
#define LONGNAME "Progressive PNG Viewer for X" |
◆ MAX
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| (a>b?a:b) |
◆ MIN
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (a<b?a:b) |
◆ NO_24BIT_MASKS
#define NO_24BIT_MASKS /* undef case not fully written--only for redisplay() */ |
◆ PI
#define PI 3.141592653589793238 |
◆ PI_2
◆ PROGNAME
#define PROGNAME "rpng2-x" |
◆ QUIT
Value:((e.type == ButtonPress && e.xbutton.button == Button1) || \
(e.type == KeyPress && \
((k = XLookupKeysym(&e.xkey, 0)) == XK_q || k == XK_Escape)))
Definition at line 130 of file rpng2-x.c.
◆ RESCLASS
#define RESCLASS "Rpng" /* our X resource class name */ |
◆ RESNAME
#define RESNAME "rpng2" /* our X resource application name */ |
◆ rgb1_max
◆ rgb1_min
◆ rgb2_max
◆ rgb2_min
◆ ROUNDF
#define ROUNDF |
( |
|
f | ) |
((int)(f + 0.5)) |
◆ VERSION
#define VERSION "2.02 of 16 March 2008" |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ demo_timing
◆ pause_after_pass
◆ usleep_duration