15#ifdef PNG_WRITE_SUPPORTED
16#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
18#ifdef PNG_WRITE_PACK_SUPPORTED
31 switch ((
int)bit_depth)
45 for (
i = 0;
i < row_width;
i++)
83 for (
i = 0;
i < row_width;
i++)
123 for (
i = 0;
i < row_width;
i++)
127 value = (png_byte)(*
sp & 0x0f);
154 row_info->
bit_depth = (png_byte)bit_depth;
162#ifdef PNG_WRITE_SHIFT_SUPPORTED
178 int shift_start[4], shift_dec[4];
216 size_t row_bytes = row_info->
rowbytes;
227 for (
i = 0;
i < row_bytes;
i++, bp++)
235 for (
j = shift_start[0];
j > -shift_dec[0];
j -= shift_dec[0])
244 *bp = (png_byte)(
out & 0xff);
254 for (
i = 0;
i < istop;
i++, bp++)
263 for (
j = shift_start[
c];
j > -shift_dec[
c];
j -= shift_dec[
c])
272 *bp = (png_byte)(
out & 0xff);
282 for (bp =
row,
i = 0;
i < istop;
i++)
291 for (
j = shift_start[
c];
j > -shift_dec[
c];
j -= shift_dec[
c])
299 *bp++ = (png_byte)((
value >> 8) & 0xff);
300 *bp++ = (png_byte)(
value & 0xff);
307#ifdef PNG_WRITE_SWAP_ALPHA_SUPPORTED
311 png_debug(1,
"in png_do_write_swap_alpha");
323 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
325 png_byte save = *(
sp++);
333#ifdef PNG_WRITE_16BIT_SUPPORTED
341 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
368 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
370 png_byte save = *(
sp++);
376#ifdef PNG_WRITE_16BIT_SUPPORTED
384 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
401#ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED
405 png_debug(1,
"in png_do_write_invert_alpha");
417 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
425 *dp = (png_byte)(255 - *(
sp++));
429#ifdef PNG_WRITE_16BIT_SUPPORTED
437 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
448 *(dp++) = (png_byte)(255 - *(
sp++));
449 *dp = (png_byte)(255 - *(
sp++));
464 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
467 *(dp++) = (png_byte)(255 - *(
sp++));
471#ifdef PNG_WRITE_16BIT_SUPPORTED
479 for (
i = 0,
sp = dp =
row;
i < row_width;
i++)
486 *(dp++) = (png_byte)(255 - *(
sp++));
487 *dp = (png_byte)(255 - *(
sp++));
502 png_debug(1,
"in png_do_write_transformations");
507#ifdef PNG_WRITE_USER_TRANSFORM_SUPPORTED
510 (*(
png_ptr->write_user_transform_fn))
523#ifdef PNG_WRITE_FILLER_SUPPORTED
525 png_do_strip_channel(row_info,
png_ptr->row_buf + 1,
529#ifdef PNG_WRITE_PACKSWAP_SUPPORTED
531 png_do_packswap(row_info,
png_ptr->row_buf + 1);
534#ifdef PNG_WRITE_PACK_SUPPORTED
536 png_do_pack(row_info,
png_ptr->row_buf + 1,
540#ifdef PNG_WRITE_SWAP_SUPPORTED
541# ifdef PNG_16BIT_SUPPORTED
543 png_do_swap(row_info,
png_ptr->row_buf + 1);
547#ifdef PNG_WRITE_SHIFT_SUPPORTED
549 png_do_shift(row_info,
png_ptr->row_buf + 1,
553#ifdef PNG_WRITE_SWAP_ALPHA_SUPPORTED
555 png_do_write_swap_alpha(row_info,
png_ptr->row_buf + 1);
558#ifdef PNG_WRITE_INVERT_ALPHA_SUPPORTED
560 png_do_write_invert_alpha(row_info,
png_ptr->row_buf + 1);
563#ifdef PNG_WRITE_BGR_SUPPORTED
565 png_do_bgr(row_info,
png_ptr->row_buf + 1);
568#ifdef PNG_WRITE_INVERT_SUPPORTED
570 png_do_invert(row_info,
png_ptr->row_buf + 1);
struct png_info_def *typedef unsigned char **typedef struct png_info_def *typedef struct png_info_def *typedef struct png_info_def *typedef unsigned char ** row
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
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 GLint GLint j
#define PNG_COLOR_TYPE_RGB_ALPHA
#define PNG_COLOR_TYPE_GRAY_ALPHA
#define PNG_COLOR_TYPE_PALETTE
#define png_get_uint_16(buf)
#define PNG_COLOR_MASK_COLOR
#define PNG_COLOR_MASK_ALPHA
png_struct *PNG_RESTRICT png_structrp
#define PNG_ROWBYTES(pixel_bits, width)
#define PNG_USER_TRANSFORM
#define PNG_FLAG_FILLER_AFTER
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out