w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ppmtopjxl.c File Reference
#include <stdio.h>
#include <math.h>
#include "ppm.h"
#include "ppmcmap.h"
Include dependency graph for ppmtopjxl.c:

Go to the source code of this file.

Classes

struct  options
 

Macros

#define MAXCOLORS   1024
 
#define PCL_MAXWIDTH   2048
 
#define PCL_MAXHEIGHT   32767
 
#define PCL_MAXVAL   255
 
#define DIM   0
 
#define REAL   1
 
#define BOOL   2
 
#define putword(w)   (putchar(((w)>>8) & 255), putchar((w) & 255))
 

Functions

int bitsperpixel ()
 
void putbits ()
 
int bitsperpixel (int v)
 
void putbits (int b, int n)
 
int main (int argc, argv)
 

Variables

char * usage
 
static int nopack = 0
 
static int dark = 0
 
static int diffuse = 0
 
static int dither = 0
 
static int cluster = 0
 
static int xsize = 0
 
static int ysize = 0
 
static int xshift = 0
 
static int yshift = 0
 
static int quality = 0
 
static double xscale = 0.0
 
static double yscale = 0.0
 
static double gamma_val = 0.0
 
static struct options options []
 
static char * inrow = NULL
 
static char * outrow = NULL
 
static char * runcnt = NULL
 

Macro Definition Documentation

◆ BOOL

#define BOOL   2

Definition at line 53 of file ppmtopjxl.c.

◆ DIM

#define DIM   0

Definition at line 51 of file ppmtopjxl.c.

◆ MAXCOLORS

#define MAXCOLORS   1024

Definition at line 20 of file ppmtopjxl.c.

◆ PCL_MAXHEIGHT

#define PCL_MAXHEIGHT   32767

Definition at line 33 of file ppmtopjxl.c.

◆ PCL_MAXVAL

#define PCL_MAXVAL   255

Definition at line 34 of file ppmtopjxl.c.

◆ PCL_MAXWIDTH

#define PCL_MAXWIDTH   2048

Definition at line 32 of file ppmtopjxl.c.

◆ putword

#define putword (   w)    (putchar(((w)>>8) & 255), putchar((w) & 255))

Definition at line 76 of file ppmtopjxl.c.

◆ REAL

#define REAL   1

Definition at line 52 of file ppmtopjxl.c.

Function Documentation

◆ bitsperpixel() [1/2]

int bitsperpixel ( )

◆ bitsperpixel() [2/2]

int bitsperpixel ( int  v)

Definition at line 78 of file ppmtopjxl.c.

References bpp, and v.

◆ main()

◆ putbits() [1/2]

void putbits ( )

Referenced by main().

◆ putbits() [2/2]

void putbits ( int  b,
int  n 
)

Definition at line 93 of file ppmtopjxl.c.

References b, cnt, count, i, inrow, n, next, nopack, num, out, outrow, pack, printf(), runcnt, and start.

Variable Documentation

◆ cluster

◆ dark

int dark = 0
static

Definition at line 37 of file ppmtopjxl.c.

Referenced by main().

◆ diffuse

int diffuse = 0
static

Definition at line 38 of file ppmtopjxl.c.

Referenced by main().

◆ dither

int dither = 0
static

Definition at line 39 of file ppmtopjxl.c.

Referenced by main().

◆ gamma_val

◆ inrow

char* inrow = NULL
static

Definition at line 89 of file ppmtopjxl.c.

Referenced by main(), and putbits().

◆ nopack

int nopack = 0
static

Definition at line 36 of file ppmtopjxl.c.

Referenced by main(), and putbits().

◆ options

struct options options[]
static
Initial value:
= {
{"-gamma", 1 , (char *)&gamma_val },
{"-presentation", 2 , (char *)&quality },
{"-width", 0 , (char *)&xsize },
{"-xsize", 0 , (char *)&xsize },
{"-height", 0 , (char *)&ysize },
{"-ysize", 0 , (char *)&ysize },
{"-xscale", 1 , (char *)&xscale },
{"-yscale", 1 , (char *)&yscale },
{"-xshift", 0 , (char *)&xshift },
{"-yshift", 0 , (char *)&yshift },
{"-dark", 2 , (char *)&dark },
{"-diffuse", 2 , (char *)&diffuse },
{"-dither", 2 , (char *)&dither },
{"-cluster", 2 , (char *)&cluster },
{"-nopack", 2 , (char *)&nopack },
}
static double yscale
Definition: ppmtopjxl.c:47
static int yshift
Definition: ppmtopjxl.c:44
static int cluster
Definition: ppmtopjxl.c:40
static int diffuse
Definition: ppmtopjxl.c:38
static int dither
Definition: ppmtopjxl.c:39
static int ysize
Definition: ppmtopjxl.c:42
static double xscale
Definition: ppmtopjxl.c:46
static double gamma_val
Definition: ppmtopjxl.c:48
static int quality
Definition: ppmtopjxl.c:45
static int dark
Definition: ppmtopjxl.c:37
static int xshift
Definition: ppmtopjxl.c:43
static int xsize
Definition: ppmtopjxl.c:41
static int nopack
Definition: ppmtopjxl.c:36

Referenced by main().

◆ outrow

char* outrow = NULL
static

Definition at line 90 of file ppmtopjxl.c.

Referenced by main(), and putbits().

◆ quality

◆ runcnt

char* runcnt = NULL
static

Definition at line 91 of file ppmtopjxl.c.

Referenced by main(), and putbits().

◆ usage

static void usage ( void  uerr)
Initial value:
="[-nopack] [-gamma <n>] [-presentation] [-dark]\n\
[-diffuse] [-cluster] [-dither]\n\
[-xshift <s>] [-yshift <s>]\n\
[-xshift <s>] [-yshift <s>]\n\
[-xsize|-width|-xscale <s>] [-ysize|-height|-yscale <s>]\n\
[ppmfile]"

Definition at line 25 of file ppmtopjxl.c.

Referenced by main().

◆ xscale

◆ xshift

int xshift = 0
static

Definition at line 43 of file ppmtopjxl.c.

Referenced by FT_Outline_Get_Orientation(), main(), and PsToEditOptions::PsToEditOptions().

◆ xsize

◆ yscale

◆ yshift

int yshift = 0
static

Definition at line 44 of file ppmtopjxl.c.

Referenced by FT_Outline_Get_Orientation(), main(), and PsToEditOptions::PsToEditOptions().

◆ ysize