scalatopng.C File Reference

#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <cmath>
#include <glib.h>
#include <netcdf.hh>
#include <png.h>
#include <popt.h>
#include "config.h"
#include "thumbpal.h"
#include "writepng.h"

Go to the source code of this file.

Classes

class  raw_image
class  scala_image

Defines

#define WORDS_BIGENDIAN   0
#define MAXFILELENGTH   64
#define THUMB_X   96
#define THUMB_Y   91

Enumerations

enum  OMICRON_SCALA_STATUS { SCALA_READ_OK, SCALA_OPEN_FAILED, SCALA_FILE_NOT_VALID }

Functions

int write_png (gchar *file_name, raw_image *img)
int main (int argc, const char *argv[])


Define Documentation

#define MAXFILELENGTH   64
 

Definition at line 62 of file scalatopng.C.

Referenced by main().

#define THUMB_X   96
 

Definition at line 63 of file scalatopng.C.

#define THUMB_Y   91
 

Definition at line 64 of file scalatopng.C.

#define WORDS_BIGENDIAN   0
 

Definition at line 57 of file scalatopng.C.


Enumeration Type Documentation

enum OMICRON_SCALA_STATUS
 

Enumerator:
SCALA_READ_OK 
SCALA_OPEN_FAILED 
SCALA_FILE_NOT_VALID 

Definition at line 60 of file scalatopng.C.


Function Documentation

int main int  argc,
const char *  argv[]
 

Definition at line 348 of file scalatopng.C.

References filename, MAXFILELENGTH, SCALA_FILE_NOT_VALID, SCALA_OPEN_FAILED, SCALA_READ_OK, scala_image::status(), and width.

int write_png gchar *  file_name,
raw_image img
 

Definition at line 309 of file scalatopng.C.

References _mainprog_info::author, _mainprog_info::copyright, _mainprog_info::desc, _mainprog_info::email, FALSE, _mainprog_info::gamma, _mainprog_info::have_bg, _mainprog_info::have_text, _mainprog_info::have_time, raw_image::height(), _mainprog_info::height, _mainprog_info::infile, _mainprog_info::interlaced, _mainprog_info::modtime, _mainprog_info::outfile, _mainprog_info::pnmtype, _mainprog_info::row_pointers, raw_image::row_rgb_pointers(), _mainprog_info::sample_depth, _mainprog_info::title, _mainprog_info::url, raw_image::width(), _mainprog_info::width, writepng_cleanup(), writepng_encode_finish(), writepng_encode_image(), and writepng_init().


Generated on Sat Apr 1 09:04:53 2006 for GXSM by  doxygen 1.4.6