28#if BITS_IN_JSAMPLE != 8
29 Sorry,
this code only copes with 8-bit JSAMPLEs.
51typedef tga_dest_struct * tga_dest_ptr;
65 targaheader[5] = (
char) (num_colors & 0xFF);
66 targaheader[6] = (
char) (num_colors >> 8);
74 targaheader[17] = 0x20;
90 ERREXIT(cinfo, JERR_FILE_WRITE);
104 tga_dest_ptr
dest = (tga_dest_ptr) dinfo;
106 register char * outptr;
109 inptr =
dest->pub.buffer[0];
110 outptr =
dest->iobuffer;
115 inptr += 3, outptr += 3;
125 tga_dest_ptr
dest = (tga_dest_ptr) dinfo;
127 register char * outptr;
130 inptr =
dest->pub.buffer[0];
131 outptr =
dest->iobuffer;
148 tga_dest_ptr
dest = (tga_dest_ptr) dinfo;
150 register char * outptr;
154 inptr =
dest->pub.buffer[0];
155 outptr =
dest->iobuffer;
179 dinfo->put_pixel_rows = put_demapped_gray;
181 dinfo->put_pixel_rows = put_gray_rows;
187 if (num_colors > 256)
188 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
192 for (
i = 0;
i < num_colors;
i++) {
197 dinfo->put_pixel_rows = put_gray_rows;
200 dinfo->put_pixel_rows = put_pixel_rows;
204 ERREXIT(cinfo, JERR_TGA_COLORSPACE);
219 ERREXIT(cinfo, JERR_FILE_WRITE);
233 dest = (tga_dest_ptr) (*cinfo->mem->alloc_small)
235 dest->pub.start_output = start_output_tga;
236 dest->pub.finish_output = finish_output_tga;
249 dest->pub.buffer_height = 1;
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl putc(_In_ int _Ch, _Inout_ FILE *_File)
jpeg_calc_output_dimensions(j_decompress_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
#define JFWRITE(file, buf, sizeofbuf)
#define GETJSAMPLE(value)
struct jpeg_common_struct * j_common_ptr
J_COLOR_SPACE out_color_space
int actual_number_of_colors
#define MEMZERO(addr, type, size)