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
wrppm.c File Reference
#include "cdjpeg.h"

Go to the source code of this file.

Macros

#define PUTPPMSAMPLE(ptr, v)   *ptr++ = (char) (v)
 
#define BYTESPERSAMPLE   1
 
#define PPM_MAXVAL   255
 

Typedefs

typedef ppm_dest_struct * ppm_dest_ptr
 

Functions

 put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 copy_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 put_demapped_rgb (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 put_demapped_gray (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 start_output_ppm (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 finish_output_ppm (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 jinit_write_ppm (j_decompress_ptr cinfo)
 

Macro Definition Documentation

◆ BYTESPERSAMPLE

#define BYTESPERSAMPLE   1

Definition at line 35 of file wrppm.c.

Referenced by jinit_write_ppm().

◆ PPM_MAXVAL

#define PPM_MAXVAL   255

Definition at line 36 of file wrppm.c.

Referenced by start_output_ppm().

◆ PUTPPMSAMPLE

#define PUTPPMSAMPLE (   ptr,
  v 
)    *ptr++ = (char) (v)

Definition at line 34 of file wrppm.c.

Referenced by copy_pixel_rows(), put_demapped_gray(), and put_demapped_rgb().

Typedef Documentation

◆ ppm_dest_ptr

typedef ppm_dest_struct* ppm_dest_ptr

Definition at line 78 of file wrppm.c.

Function Documentation

◆ copy_pixel_rows()

copy_pixel_rows ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 105 of file wrppm.c.

References GETJSAMPLE, JFWRITE, METHODDEF, ptr, PUTPPMSAMPLE, and void().

Referenced by jinit_write_ppm().

◆ finish_output_ppm()

finish_output_ppm ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

Definition at line 205 of file wrppm.c.

References ERREXIT, and GLOBAL.

Referenced by jinit_write_ppm().

◆ jinit_write_ppm()

jinit_write_ppm ( j_decompress_ptr  cinfo)

◆ put_demapped_gray()

put_demapped_gray ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 153 of file wrppm.c.

References GETJSAMPLE, JFWRITE, METHODDEF, ptr, PUTPPMSAMPLE, and void().

Referenced by jinit_write_ppm().

◆ put_demapped_rgb()

put_demapped_rgb ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 128 of file wrppm.c.

References GETJSAMPLE, JFWRITE, METHODDEF, ptr, PUTPPMSAMPLE, and void().

Referenced by jinit_write_ppm().

◆ put_pixel_rows()

put_pixel_rows ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 90 of file wrppm.c.

References JFWRITE, METHODDEF, and void().

Referenced by jinit_write_ppm().

◆ start_output_ppm()

start_output_ppm ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

Definition at line 176 of file wrppm.c.

References ERREXIT, JCS_GRAYSCALE, JCS_RGB, METHODDEF, and PPM_MAXVAL.

Referenced by jinit_write_ppm().