Utah Raster Toolkit  9999-git
URT Development version (post-3.1b)
Data Structures | Macros | Typedefs | Functions | Variables
getx11.h File Reference
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include "rle.h"
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
#include "fn_decls.h"
Include dependency graph for getx11.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _cmap_info_struct
 
struct  _image_info_struct
 

Macros

#define COUNT_OF(_array_)   ( sizeof (_array_) / sizeof (_array_[0]) )
 
#define IMAGE_BORDERWIDTH   3
 
#define MALLOC_FAILURE   3
 
#define FILE_FAILURE   2
 
#define FATAL_FAILURE   1
 
#define SUCCESS   0
 
#define VPRINTF   if (verbose_flag) fprintf
 
#define DPRINTF   if (debug_flag) fprintf
 
#define SHIFT_MASK_PIXEL(r, g, b)
 
#define SHIFT_MASK_PIXEL_32(r, g, b)
 
#define Min(x, y)   (((x) < (y)) ? (x) : (y))
 
#define Max(x, y)   (((x) > (y)) ? (x) : (y))
 
#define SAVED_RLE_ROW(img, y)   ((img)->scan_data + (((y) + 1) * (img)->w * (img)->dpy_channels))
 
#define duff8(counter, block)
 

Typedefs

typedef int Boolean
 
typedef unsigned long Pixel
 
typedef void VOID_FUNCTION()
 
typedef int array16[16]
 
typedef struct _cmap_info_struct cmap_info
 
typedef struct _image_info_struct image_information
 

Functions

void_star shmat ()
 

Variables

double display_gamma
 
int iflag
 
char * progname
 
Display * dpy
 
Window root_window
 
int screen
 
Boolean debug_flag
 
Boolean verbose_flag
 
int stingy_flag
 
int specified_levels
 
Boolean do_sharing
 
Boolean use_shared_pixmaps
 
Boolean no_shared_space
 
int no_color_ref_counts
 

Macro Definition Documentation

#define COUNT_OF (   _array_)    ( sizeof (_array_) / sizeof (_array_[0]) )

Definition at line 50 of file getx11.h.

#define DPRINTF   if (debug_flag) fprintf

Definition at line 62 of file getx11.h.

#define duff8 (   counter,
  block 
)
Value:
{\
while (counter >= 8) {\
{ block; } \
{ block; } \
{ block; } \
{ block; } \
{ block; } \
{ block; } \
{ block; } \
{ block; } \
counter -= 8;\
} \
switch (counter & 7) { \
case 7: { block; } \
case 6: { block; } \
case 5: { block; } \
case 4: { block; } \
case 3: { block; } \
case 2: { block; } \
case 1: { block; } \
case 0: counter = 0;\
}\
}
static int counter
Definition: XGetHClrs.c:12

Definition at line 196 of file getx11.h.

#define FATAL_FAILURE   1

Definition at line 58 of file getx11.h.

#define FILE_FAILURE   2

Definition at line 57 of file getx11.h.

#define IMAGE_BORDERWIDTH   3

Definition at line 51 of file getx11.h.

#define MALLOC_FAILURE   3

Definition at line 56 of file getx11.h.

#define Max (   x,
  y 
)    (((x) > (y)) ? (x) : (y))

Definition at line 76 of file getx11.h.

#define Min (   x,
  y 
)    (((x) < (y)) ? (x) : (y))

Definition at line 75 of file getx11.h.

#define SAVED_RLE_ROW (   img,
  y 
)    ((img)->scan_data + (((y) + 1) * (img)->w * (img)->dpy_channels))

Definition at line 192 of file getx11.h.

#define SHIFT_MASK_PIXEL (   r,
  g,
  b 
)
Value:
( (( ( (r) << cmap_i.red_shift ) & cmap_i.red_mask )\
| ( ( (g) << cmap_i.green_shift) & cmap_i.green_mask )\
| ( ( (b) << cmap_i.blue_shift ) & cmap_i.blue_mask )) +\
cmap_i.pixel_base)
static unsigned char g
Definition: getami.c:692
static unsigned char r
Definition: getami.c:692
static unsigned char b
Definition: getami.c:692

Definition at line 64 of file getx11.h.

#define SHIFT_MASK_PIXEL_32 (   r,
  g,
  b 
)
Value:
(( (r) << cmap_i.red_shift ) \
| ( (g) << cmap_i.green_shift) \
| ( (b) << cmap_i.blue_shift ))
static unsigned char g
Definition: getami.c:692
static unsigned char r
Definition: getami.c:692
static unsigned char b
Definition: getami.c:692

Definition at line 70 of file getx11.h.

#define SUCCESS   0

Definition at line 59 of file getx11.h.

#define VPRINTF   if (verbose_flag) fprintf

Definition at line 61 of file getx11.h.

Typedef Documentation

typedef int array16[16]

Definition at line 79 of file getx11.h.

typedef int Boolean

Definition at line 53 of file getx11.h.

typedef struct _cmap_info_struct cmap_info
typedef unsigned long Pixel

Definition at line 54 of file getx11.h.

typedef void VOID_FUNCTION()

Definition at line 78 of file getx11.h.

Function Documentation

void_star shmat ( )

Variable Documentation

Boolean debug_flag

Definition at line 79 of file get_orion.c.

double display_gamma

Definition at line 64 of file getx11.c.

Boolean do_sharing

Definition at line 84 of file getx11.c.

Display* dpy

Definition at line 94 of file getx10.c.

int iflag

Definition at line 80 of file getsun.c.

int no_color_ref_counts

Definition at line 88 of file getx11.c.

Boolean no_shared_space

Definition at line 86 of file getx11.c.

char* progname

Definition at line 79 of file rletorla.c.

Window root_window

Definition at line 76 of file getx11.c.

int screen

Definition at line 29 of file show3.c.

Referenced by Fail(), and main().

int specified_levels

Definition at line 82 of file getx11.c.

int stingy_flag

Definition at line 81 of file getx11.c.

Boolean use_shared_pixmaps

Definition at line 85 of file getx11.c.

Boolean verbose_flag

Definition at line 80 of file getx11.c.

Referenced by print_qcr_status().