apps/png/pnghist.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <fcntl.h>
#include <math.h>
#include <asm/elphel/autoexp.h>
#include <asm/elphel/hist.h>
#include <sys/mman.h>
#include <asm/elphel/c313a.h>
#include "libpng/png.h"

Include dependency graph for pnghist.c:

Go to the source code of this file.

Data Structures

struct  key_value

Defines

#define HIST_SIZE   256 * 4 * 4
#define HPNG_PLOT_BARS   1
#define HPNG_CONNECT_DOTS   2
#define HPNG_FILL_ZEROS   4
#define HPNG_LIN_INTERP   8
#define HPNG_RUN_SQRT   16
#define QRY_MAXPARAMS   64
#define HPNG_PLOT_BARS   1
#define ERROR   -1
#define OK   0

Functions

int unescape (char *, int)
int hexdigit (char)
char * paramValue (struct key_value *, char *)
int parseQuery (struct key_value *, char *)
int write_png (int height, int data[1024], int mode, int colors)
int main (int argc, argv)
int write_png (int png_height, int data[1536], int mode, int colors)

Variables

char copyQuery [4096]
const char * uri
const char * method
const char * query
key_value gparams [QRY_MAXPARAMS+1]
autoexp_t autoexp


Define Documentation

#define ERROR   -1

Definition at line 282 of file pnghist.c.

Referenced by write_png().

#define HIST_SIZE   256 * 4 * 4

Definition at line 43 of file pnghist.c.

#define HPNG_CONNECT_DOTS   2

Definition at line 46 of file pnghist.c.

#define HPNG_FILL_ZEROS   4

Definition at line 47 of file pnghist.c.

Referenced by main().

#define HPNG_LIN_INTERP   8

Definition at line 48 of file pnghist.c.

Referenced by main().

#define HPNG_PLOT_BARS   1

Definition at line 45 of file pnghist.c.

#define HPNG_PLOT_BARS   1

Definition at line 45 of file pnghist.c.

#define HPNG_RUN_SQRT   16

Definition at line 49 of file pnghist.c.

Referenced by main().

#define OK   0

Definition at line 283 of file pnghist.c.

Referenced by write_png().

#define QRY_MAXPARAMS   64

Definition at line 51 of file pnghist.c.


Function Documentation

int hexdigit ( char   ) 

Definition at line 25 of file unescape.c.

int main ( int  argc,
argv   
)

Definition at line 73 of file pnghist.c.

References _CCCMD, autoexp, AUTOEXP_DEV_NAME, CCAM_RPARS, coeff, copyQuery, gparams, autoexp_t::height, HIST_SIZE, HPNG_FILL_ZEROS, HPNG_LIN_INTERP, HPNG_RUN_SQRT, IOC_AUTOEXP_GET, memcpy(), method, mode, P_ACTUAL_HEIGHT, P_ACTUAL_WIDTH, paramValue(), parseQuery(), query, stdout, unescape(), uri, wh, autoexp_t::width, write_png(), and ww.

char* paramValue ( struct key_value ,
char *   
)

int parseQuery ( struct key_value ,
char *   
)

int unescape ( char *  ,
int   
)

int write_png ( int  png_height,
int  data[1536],
int  mode,
int  colors 
)

Definition at line 288 of file pnghist.c.

References ERROR, height, image, memset(), OK, stdout, and width.

int write_png ( int  height,
int  data[1024],
int  mode,
int  colors 
)

Referenced by main().


Variable Documentation

struct autoexp_t autoexp

Definition at line 71 of file pnghist.c.

char copyQuery[4096]

Definition at line 53 of file pnghist.c.

struct key_value gparams[QRY_MAXPARAMS+1]

Definition at line 63 of file pnghist.c.

const char* method

Definition at line 55 of file pnghist.c.

const char* query

Definition at line 56 of file pnghist.c.

const char* uri

Definition at line 54 of file pnghist.c.


Generated on Thu Aug 7 16:19:50 2008 for elphel by  doxygen 1.5.1