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
rdtarga.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)))
 
#define get_32bit_row   get_24bit_row
 
#define GET_2B(offset)
 

Typedefs

typedef unsigned char U_CHAR
 
typedef struct _tga_source_struct * tga_source_ptr
 
typedef struct _tga_source_struct tga_source_struct
 

Functions

 read_byte (tga_source_ptr sinfo)
 
 read_colormap (tga_source_ptr sinfo, int cmaplen, int mapentrysize)
 
 read_non_rle_pixel (tga_source_ptr sinfo)
 
 read_rle_pixel (tga_source_ptr sinfo)
 
 get_8bit_gray_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_8bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_16bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_24bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 get_memory_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 preload_image (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 start_input_tga (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 finish_input_tga (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 
 jinit_read_targa (j_compress_ptr cinfo)
 

Macro Definition Documentation

◆ GET_2B

#define GET_2B (   offset)
Value:
((unsigned int) UCH(targaheader[offset]) + \
(((unsigned int) UCH(targaheader[offset+1])) << 8))
GLintptr offset
#define UCH(x)
Definition: rdtarga.c:29
typedef int
Definition: png.h:978

Referenced by start_input_tga().

◆ get_32bit_row

#define get_32bit_row   get_24bit_row

Definition at line 263 of file rdtarga.c.

Referenced by start_input_tga().

◆ ReadOK

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

Definition at line 41 of file rdtarga.c.

Referenced by start_input_tga().

◆ UCH

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

Definition at line 29 of file rdtarga.c.

Referenced by get_16bit_row(), get_24bit_row(), get_8bit_gray_row(), and start_input_tga().

Typedef Documentation

◆ tga_source_ptr

typedef struct _tga_source_struct* tga_source_ptr

Definition at line 46 of file rdtarga.c.

◆ tga_source_struct

typedef struct _tga_source_struct tga_source_struct

◆ U_CHAR

typedef unsigned char U_CHAR

Definition at line 28 of file rdtarga.c.

Function Documentation

◆ finish_input_tga()

finish_input_tga ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 473 of file rdtarga.c.

References GLOBAL.

Referenced by jinit_read_targa().

◆ get_16bit_row()

get_16bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 211 of file rdtarga.c.

References ptr, and UCH.

Referenced by start_input_tga().

◆ get_24bit_row()

get_24bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 239 of file rdtarga.c.

References ptr, and UCH.

Referenced by start_input_tga().

◆ get_8bit_gray_row()

get_8bit_gray_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 174 of file rdtarga.c.

References METHODDEF, ptr, and UCH.

Referenced by start_input_tga().

◆ get_8bit_row()

get_8bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 190 of file rdtarga.c.

References ptr.

Referenced by start_input_tga().

◆ get_memory_row()

get_memory_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 273 of file rdtarga.c.

References FALSE, METHODDEF, and source_row.

Referenced by preload_image().

◆ jinit_read_targa()

jinit_read_targa ( j_compress_ptr  cinfo)

Definition at line 484 of file rdtarga.c.

References finish_input_tga(), JPOOL_IMAGE, SIZEOF, and start_input_tga().

◆ preload_image()

preload_image ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

◆ read_byte()

read_byte ( tga_source_ptr  sinfo)

Definition at line 88 of file rdtarga.c.

References EOF, ERREXIT, infile, and LOCAL.

Referenced by read_colormap(), read_rle_pixel(), and start_input_tga().

◆ read_colormap()

read_colormap ( tga_source_ptr  sinfo,
int  cmaplen,
int  mapentrysize 
)

Definition at line 101 of file rdtarga.c.

References ERREXIT, i, METHODDEF, and read_byte().

Referenced by start_input_tga().

◆ read_non_rle_pixel()

read_non_rle_pixel ( tga_source_ptr  sinfo)

Definition at line 123 of file rdtarga.c.

References i, infile, and METHODDEF.

Referenced by start_input_tga().

◆ read_rle_pixel()

read_rle_pixel ( tga_source_ptr  sinfo)

Definition at line 136 of file rdtarga.c.

References i, infile, METHODDEF, and read_byte().

Referenced by start_input_tga().

◆ start_input_tga()

start_input_tga ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)