Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions
rdppm.c File Reference
#include "cdjpeg.h"

Go to the source code of this file.

Macros

#define UCH(x)   ((int) (x))
 
#define ReadOK(file, buffer, len)   (JFREAD(file,buffer,len) == ((size_t) (len)))
 

Typedefs

typedef unsigned char U_CHAR
 
typedef ppm_source_struct * ppm_source_ptr
 

Functions

 pbm_getc (FILE *infile)
 
 read_pbm_integer (j_compress_ptr cinfo, FILE *infile)
 
 get_text_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_text_rgb_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_scaled_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_scaled_rgb_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_raw_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_word_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_word_rgb_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 start_input_ppm (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 finish_input_ppm (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 jinit_read_ppm (j_compress_ptr cinfo)
 

Macro Definition Documentation

◆ ReadOK

#define ReadOK (   file,
  buffer,
  len 
)    (JFREAD(file,buffer,len) == ((size_t) (len)))

◆ UCH

#define UCH (   x)    ((int) (x))

Typedef Documentation

◆ ppm_source_ptr

typedef ppm_source_struct* ppm_source_ptr

Definition at line 80 of file rdppm.c.

◆ U_CHAR

typedef unsigned char U_CHAR

Definition at line 42 of file rdppm.c.

Function Documentation

◆ finish_input_ppm()

finish_input_ppm ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 432 of file rdppm.c.

References GLOBAL.

Referenced by jinit_read_ppm().

◆ get_raw_row()

get_raw_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 223 of file rdppm.c.

References ERREXIT, METHODDEF, and ReadOK.

Referenced by start_input_ppm().

◆ get_scaled_gray_row()

get_scaled_gray_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 179 of file rdppm.c.

References ERREXIT, METHODDEF, ptr, ReadOK, and UCH.

Referenced by start_input_ppm().

◆ get_scaled_rgb_row()

get_scaled_rgb_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 200 of file rdppm.c.

References ERREXIT, METHODDEF, ptr, ReadOK, and UCH.

Referenced by start_input_ppm().

◆ get_text_gray_row()

get_text_gray_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 141 of file rdppm.c.

References infile, METHODDEF, ptr, and read_pbm_integer().

Referenced by start_input_ppm().

◆ get_text_rgb_row()

get_text_rgb_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 159 of file rdppm.c.

References infile, METHODDEF, ptr, and read_pbm_integer().

Referenced by start_input_ppm().

◆ get_word_gray_row()

get_word_gray_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 238 of file rdppm.c.

References ERREXIT, METHODDEF, ptr, ReadOK, and UCH.

Referenced by start_input_ppm().

◆ get_word_rgb_row()

get_word_rgb_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 262 of file rdppm.c.

References ERREXIT, METHODDEF, ptr, ReadOK, and UCH.

Referenced by start_input_ppm().

◆ jinit_read_ppm()

jinit_read_ppm ( j_compress_ptr  cinfo)

Definition at line 443 of file rdppm.c.

References finish_input_ppm(), JPOOL_IMAGE, SIZEOF, and start_input_ppm().

◆ pbm_getc()

pbm_getc ( FILE *  infile)

Definition at line 84 of file rdppm.c.

References EOF, and LOCAL.

Referenced by read_pbm_integer().

◆ read_pbm_integer()

read_pbm_integer ( j_compress_ptr  cinfo,
FILE *  infile 
)

Definition at line 101 of file rdppm.c.

References EOF, ERREXIT, infile, METHODDEF, and pbm_getc().

Referenced by get_text_gray_row(), get_text_rgb_row(), and start_input_ppm().

◆ start_input_ppm()

start_input_ppm ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)