Home
last modified time | relevance | path

Searched refs:png_byte (Results 1 – 25 of 81) sorted by relevance

1234

/external/libpng/
Dpnginfo.h66 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
67 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
69 png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
70 png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
71 png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
76 png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
77 png_byte pixel_depth; /* number of bits per pixel */
78 png_byte spare_byte; /* to align the data, and for future use */
82 png_byte signature[8]; /* magic bytes read by libpng from start of file */
176 png_byte offset_unit_type; /* offset units type */
[all …]
Dpngstruct.h65 png_byte output[1]; /* actually zbuf_size */
221 png_byte user_transform_depth; /* bit depth of user transformed pixels */
222 png_byte user_transform_channels; /* channels in user transformed pixels */
294 png_byte compression; /* file compression type (always 0) */
295 png_byte filter; /* file filter type (always 0) */
296 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
297 png_byte pass; /* current interlace pass (0 - 6) */
298 png_byte do_filter; /* row filter flags (see PNG_FILTER_ below ) */
299 png_byte color_type; /* color type of file */
300 png_byte bit_depth; /* bit depth of file */
[all …]
Dpngrtran.c145 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
405 png_byte left;
406 png_byte right;
428 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize()
430 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
445 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize()
449 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
469 png_byte t; in png_set_quantize()
524 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
525 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
[all …]
Dpngwtran.c59 *dp = (png_byte)v; in png_do_pack()
66 *dp = (png_byte)v; in png_do_pack()
85 png_byte value; in png_do_pack()
87 value = (png_byte)(*sp & 0x03); in png_do_pack()
93 *dp = (png_byte)v; in png_do_pack()
105 *dp = (png_byte)v; in png_do_pack()
124 png_byte value; in png_do_pack()
126 value = (png_byte)(*sp & 0x0f); in png_do_pack()
132 *dp = (png_byte)v; in png_do_pack()
144 *dp = (png_byte)v; in png_do_pack()
[all …]
Dpngwutil.c26 buf[0] = (png_byte)((i >> 24) & 0xff); in png_save_uint_32()
27 buf[1] = (png_byte)((i >> 16) & 0xff); in png_save_uint_32()
28 buf[2] = (png_byte)((i >> 8) & 0xff); in png_save_uint_32()
29 buf[3] = (png_byte)(i & 0xff); in png_save_uint_32()
39 buf[0] = (png_byte)((i >> 8) & 0xff); in png_save_uint_16()
40 buf[1] = (png_byte)(i & 0xff); in png_save_uint_16()
53 png_byte png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10}; in png_write_sig()
76 png_byte buf[8]; in png_write_chunk_header()
149 png_byte buf[4]; in png_write_chunk_end()
281 data[0] = (png_byte)z_cmf; in optimize_cmf()
[all …]
Dpngtrans.c276 *rp = (png_byte)(~(*rp)); in png_do_invert()
290 *rp = (png_byte)(~(*rp)); in png_do_invert()
305 *rp = (png_byte)(~(*rp)); in png_do_invert()
306 *(rp + 1) = (png_byte)(~(*(rp + 1))); in png_do_invert()
330 png_byte t = *rp; in png_do_swap()
340 static PNG_CONST png_byte onebppswaptable[256] = {
375 static PNG_CONST png_byte twobppswaptable[256] = {
410 static PNG_CONST png_byte fourbppswaptable[256] = {
613 png_byte save = *rp; in png_do_bgr()
626 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c152 png_byte buf[8]; in png_read_chunk_header()
210 png_byte tmpbuf[PNG_INFLATE_BUF_SIZE]; in png_crc_finish()
245 png_byte tmpbuf[PNG_INFLATE_BUF_SIZE]; in png_opt_crc_finish()
271 png_byte crc_bytes[4]; in png_crc_error()
821 png_byte buf[13]; in png_handle_IHDR()
851 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
852 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
853 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
855 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
857 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
[all …]
Dpng.h602 png_byte red;
603 png_byte green;
604 png_byte blue;
612 png_byte index; /* used for palette files */
624 png_byte red; /* for use in red green blue files */
625 png_byte green;
626 png_byte blue;
627 png_byte gray; /* for use in grayscale files */
628 png_byte alpha; /* for alpha channel files */
658 png_byte depth; /* depth of palette samples */
[all …]
Dpngwrite.c222 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
456 ptime->month = (png_byte)(ttime->tm_mon + 1); in png_convert_from_struct_tm()
457 ptime->day = (png_byte)ttime->tm_mday; in png_convert_from_struct_tm()
458 ptime->hour = (png_byte)ttime->tm_hour; in png_convert_from_struct_tm()
459 ptime->minute = (png_byte)ttime->tm_min; in png_convert_from_struct_tm()
460 ptime->second = (png_byte)ttime->tm_sec; in png_convert_from_struct_tm()
637 *(rp) = (png_byte)((*rp - *(rp + 1)) & 0xff); in png_do_write_intrapixel()
638 *(rp + 2) = (png_byte)((*(rp + 2) - *(rp + 1)) & 0xff); in png_do_write_intrapixel()
664 *(rp ) = (png_byte)((red >> 8) & 0xff); in png_do_write_intrapixel()
665 *(rp + 1) = (png_byte)(red & 0xff); in png_do_write_intrapixel()
[all …]
/external/qemu/distrib/libpng-1.2.46/
Dpngrtran.c114 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background()
157 png_byte left;
158 png_byte right;
179 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
181 png_ptr->dither_index[i] = (png_byte)i; in png_set_dither()
196 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
200 png_ptr->dither_sort[i] = (png_byte)i; in png_set_dither()
220 png_byte t; in png_set_dither()
273 png_ptr->dither_index[j] = (png_byte)i; in png_set_dither()
274 png_ptr->dither_index[i] = (png_byte)j; in png_set_dither()
[all …]
Dpngwtran.c126 *dp = (png_byte)v; in png_do_pack()
132 *dp = (png_byte)v; in png_do_pack()
148 png_byte value; in png_do_pack()
150 value = (png_byte)(*sp & 0x03); in png_do_pack()
155 *dp = (png_byte)v; in png_do_pack()
164 *dp = (png_byte)v; in png_do_pack()
180 png_byte value; in png_do_pack()
182 value = (png_byte)(*sp & 0x0f); in png_do_pack()
188 *dp = (png_byte)v; in png_do_pack()
198 *dp = (png_byte)v; in png_do_pack()
[all …]
Dpng.h634 png_byte red;
635 png_byte green;
636 png_byte blue;
643 png_byte index; /* used for palette files */
654 png_byte red; /* for use in red green blue files */
655 png_byte green;
656 png_byte blue;
657 png_byte gray; /* for use in grayscale files */
658 png_byte alpha; /* for alpha channel files */
686 png_byte depth; /* depth of palette samples */
[all …]
Dpngwutil.c26 buf[0] = (png_byte)((i >> 24) & 0xff); in png_save_uint_32()
27 buf[1] = (png_byte)((i >> 16) & 0xff); in png_save_uint_32()
28 buf[2] = (png_byte)((i >> 8) & 0xff); in png_save_uint_32()
29 buf[3] = (png_byte)(i & 0xff); in png_save_uint_32()
39 buf[0] = (png_byte)((i >> 24) & 0xff); in png_save_int_32()
40 buf[1] = (png_byte)((i >> 16) & 0xff); in png_save_int_32()
41 buf[2] = (png_byte)((i >> 8) & 0xff); in png_save_int_32()
42 buf[3] = (png_byte)(i & 0xff); in png_save_int_32()
52 buf[0] = (png_byte)((i >> 8) & 0xff); in png_save_uint_16()
53 buf[1] = (png_byte)(i & 0xff); in png_save_uint_16()
[all …]
Dpngtrans.c122 png_ptr->filler = (png_byte)filler; in png_set_filler()
224 *rp = (png_byte)(~(*rp)); in png_do_invert()
237 *rp = (png_byte)(~(*rp)); in png_do_invert()
250 *rp = (png_byte)(~(*rp)); in png_do_invert()
251 *(rp+1) = (png_byte)(~(*(rp+1))); in png_do_invert()
277 png_byte t = *rp; in png_do_swap()
286 static PNG_CONST png_byte onebppswaptable[256] = {
321 static PNG_CONST png_byte twobppswaptable[256] = {
356 static PNG_CONST png_byte fourbppswaptable[256] = {
605 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c114 png_byte buf[8]; in png_read_chunk_header()
209 png_byte crc_bytes[4]; in png_crc_error()
239 png_inflate(png_structp png_ptr, const png_byte *data, png_size_t size, in png_inflate()
459 png_byte buf[13]; in png_handle_IHDR()
489 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
490 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
491 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
493 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
495 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
519 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * in png_handle_IHDR()
[all …]
/external/chromium_org/third_party/libpng/
Dpngrtran.c114 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background()
157 png_byte left;
158 png_byte right;
179 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
181 png_ptr->dither_index[i] = (png_byte)i; in png_set_dither()
196 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither()
200 png_ptr->dither_sort[i] = (png_byte)i; in png_set_dither()
220 png_byte t; in png_set_dither()
273 png_ptr->dither_index[j] = (png_byte)i; in png_set_dither()
274 png_ptr->dither_index[i] = (png_byte)j; in png_set_dither()
[all …]
Dpngwtran.c126 *dp = (png_byte)v; in png_do_pack()
132 *dp = (png_byte)v; in png_do_pack()
148 png_byte value; in png_do_pack()
150 value = (png_byte)(*sp & 0x03); in png_do_pack()
155 *dp = (png_byte)v; in png_do_pack()
164 *dp = (png_byte)v; in png_do_pack()
180 png_byte value; in png_do_pack()
182 value = (png_byte)(*sp & 0x0f); in png_do_pack()
188 *dp = (png_byte)v; in png_do_pack()
198 *dp = (png_byte)v; in png_do_pack()
[all …]
Dpng.h631 png_byte red;
632 png_byte green;
633 png_byte blue;
640 png_byte index; /* used for palette files */
651 png_byte red; /* for use in red green blue files */
652 png_byte green;
653 png_byte blue;
654 png_byte gray; /* for use in grayscale files */
655 png_byte alpha; /* for alpha channel files */
683 png_byte depth; /* depth of palette samples */
[all …]
Dpngwutil.c26 buf[0] = (png_byte)((i >> 24) & 0xff); in png_save_uint_32()
27 buf[1] = (png_byte)((i >> 16) & 0xff); in png_save_uint_32()
28 buf[2] = (png_byte)((i >> 8) & 0xff); in png_save_uint_32()
29 buf[3] = (png_byte)(i & 0xff); in png_save_uint_32()
39 buf[0] = (png_byte)((i >> 24) & 0xff); in png_save_int_32()
40 buf[1] = (png_byte)((i >> 16) & 0xff); in png_save_int_32()
41 buf[2] = (png_byte)((i >> 8) & 0xff); in png_save_int_32()
42 buf[3] = (png_byte)(i & 0xff); in png_save_int_32()
52 buf[0] = (png_byte)((i >> 8) & 0xff); in png_save_uint_16()
53 buf[1] = (png_byte)(i & 0xff); in png_save_uint_16()
[all …]
Dpngtrans.c122 png_ptr->filler = (png_byte)filler; in png_set_filler()
224 *rp = (png_byte)(~(*rp)); in png_do_invert()
237 *rp = (png_byte)(~(*rp)); in png_do_invert()
250 *rp = (png_byte)(~(*rp)); in png_do_invert()
251 *(rp+1) = (png_byte)(~(*(rp+1))); in png_do_invert()
277 png_byte t = *rp; in png_do_swap()
286 static PNG_CONST png_byte onebppswaptable[256] = {
321 static PNG_CONST png_byte twobppswaptable[256] = {
356 static PNG_CONST png_byte fourbppswaptable[256] = {
605 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c114 png_byte buf[8]; in png_read_chunk_header()
192 png_byte crc_bytes[4]; in png_crc_error()
222 png_inflate(png_structp png_ptr, const png_byte *data, png_size_t size, in png_inflate()
443 png_byte buf[13]; in png_handle_IHDR()
473 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
474 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
475 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
477 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
479 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
503 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * in png_handle_IHDR()
[all …]
/external/libpng/contrib/libtests/
Dpngvalid.c68 typedef png_byte *png_const_bytep;
231 *bytes++ = (png_byte)u; in make_random_bytes()
286 #define COL_FROM_ID(id) ((png_byte)((id)& 0x7U))
287 #define DEPTH_FROM_ID(id) ((png_byte)(((id) >> 3) & 0x1fU))
296 standard_name(char *buffer, size_t bufsize, size_t pos, png_byte colour_type, in standard_name()
385 *bit_depth = (png_byte)(*bit_depth << 1); in next_format()
425 sample(png_const_bytep row, png_byte colour_type, png_byte bit_depth, in sample()
493 toBuffer[toIndex >> 3] = (png_byte)(destByte | (sourceByte & destMask)); in pixel_copy()
518 *toBuffer = (png_byte)((*toBuffer & mask) | (*fromBuffer & ~mask)); in row_copy()
576 png_byte buffer[STORE_BUFFER_SIZE];
[all …]
/external/libpng/contrib/pngminus/
Dpnm2png.c191 png_byte *png_pixels = NULL; in pnm2png()
192 png_byte **row_pointers = NULL; in pnm2png()
193 png_byte *pix_ptr = NULL; in pnm2png()
370 if ((png_pixels = (png_byte *) malloc (row_bytes * height * sizeof (png_byte))) == NULL) in pnm2png()
398 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
400 *pix_ptr = (png_byte) (tmp16 & 0xFF); in pnm2png()
415 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
416 *pix_ptr++ = (png_byte) (tmp16 & 0xFF); in pnm2png()
465 if ((row_pointers = (png_byte **) malloc (height * sizeof (png_bytep))) == NULL) in pnm2png()
576 png_byte token[16]; in get_value()
Dpng2pnm.c193 png_byte buf[8]; in png2pnm()
194 png_byte *png_pixels = NULL; in png2pnm()
195 png_byte **row_pointers = NULL; in png2pnm()
196 png_byte *pix_ptr = NULL; in png2pnm()
318 if ((png_pixels = (png_byte *) malloc (row_bytes * height * sizeof (png_byte))) == NULL) { in png2pnm()
323 if ((row_pointers = (png_byte **) malloc (height * sizeof (png_bytep))) == NULL) in png2pnm()
/external/libpng/contrib/visupng/
DPngFile.c99 BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, in PngLoadImage()
103 png_byte pbSig[8]; in PngLoadImage()
110 png_byte *pbImageData = *ppbImageData; in PngLoadImage()
111 static png_byte **ppbRowPointers = NULL; in PngLoadImage()
239 if ((pbImageData = (png_byte *) malloc(ulRowBytes * (*piHeight) in PngLoadImage()
240 * sizeof(png_byte))) == NULL) in PngLoadImage()
295 BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, in PngSaveImage()
303 static png_byte **ppbRowPointers = NULL; in PngSaveImage()

1234