Home
last modified time | relevance | path

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

123

/external/pdfium/third_party/libpng16/
Dpnginfo.h65 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
66 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
68 png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
69 png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
70 png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
75 png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
76 png_byte pixel_depth; /* number of bits per pixel */
77 png_byte spare_byte; /* to align the data, and for future use */
81 png_byte signature[8]; /* magic bytes read by libpng from start of file */
175 png_byte offset_unit_type; /* offset units type */
[all …]
Dpngrtran.c158 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
421 png_byte left;
422 png_byte right;
444 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
446 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
461 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
465 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
485 png_byte t; in png_set_quantize()
540 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
541 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
[all …]
Dpngstruct.h64 png_byte output[1]; /* actually zbuf_size */
173 png_byte user_transform_depth; /* bit depth of user transformed pixels */
174 png_byte user_transform_channels; /* channels in user transformed pixels */
248 png_byte compression; /* file compression type (always 0) */
249 png_byte filter; /* file filter type (always 0) */
250 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
251 png_byte pass; /* current interlace pass (0 - 6) */
252 png_byte do_filter; /* row filter flags (see PNG_FILTER_ in png.h ) */
253 png_byte color_type; /* color type of file */
254 png_byte bit_depth; /* bit depth of file */
[all …]
Dpngwtran.c59 *dp = (png_byte)v; in png_do_pack()
66 *dp = (png_byte)v; in png_do_pack()
86 png_byte value; in png_do_pack()
88 value = (png_byte)(*sp & 0x03); in png_do_pack()
94 *dp = (png_byte)v; in png_do_pack()
106 *dp = (png_byte)v; in png_do_pack()
126 png_byte value; in png_do_pack()
128 value = (png_byte)(*sp & 0x0f); in png_do_pack()
134 *dp = (png_byte)v; in png_do_pack()
146 *dp = (png_byte)v; in png_do_pack()
[all …]
Dpngwutil.c26 buf[0] = (png_byte)((i >> 24) & 0xffU); in png_save_uint_32()
27 buf[1] = (png_byte)((i >> 16) & 0xffU); in png_save_uint_32()
28 buf[2] = (png_byte)((i >> 8) & 0xffU); in png_save_uint_32()
29 buf[3] = (png_byte)( i & 0xffU); in png_save_uint_32()
39 buf[0] = (png_byte)((i >> 8) & 0xffU); in png_save_uint_16()
40 buf[1] = (png_byte)( i & 0xffU); 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()
148 png_byte buf[4]; in png_write_chunk_end()
280 data[0] = (png_byte)z_cmf; in optimize_cmf()
[all …]
Dpngtrans.c277 *rp = (png_byte)(~(*rp)); in png_do_invert()
291 *rp = (png_byte)(~(*rp)); in png_do_invert()
306 *rp = (png_byte)(~(*rp)); in png_do_invert()
307 *(rp + 1) = (png_byte)(~(*(rp + 1))); in png_do_invert()
337 png_byte t = *rp; in png_do_swap()
348 static const png_byte onebppswaptable[256] = {
383 static const png_byte twobppswaptable[256] = {
418 static const png_byte fourbppswaptable[256] = {
635 png_byte save = *rp; in png_do_bgr()
648 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c158 png_byte buf[8]; in png_read_chunk_header()
219 png_byte tmpbuf[PNG_INFLATE_BUF_SIZE]; in png_crc_finish()
253 png_byte crc_bytes[4]; in png_crc_error()
841 png_byte buf[13]; in png_handle_IHDR()
871 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
872 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
873 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
875 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
877 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
902 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR()
[all …]
Dpng.h480 png_byte red;
481 png_byte green;
482 png_byte blue;
490 png_byte index; /* used for palette files */
502 png_byte red; /* for use in red green blue files */
503 png_byte green;
504 png_byte blue;
505 png_byte gray; /* for use in grayscale files */
506 png_byte alpha; /* for alpha channel files */
536 png_byte depth; /* depth of palette samples */
[all …]
Dpngwrite.c228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
477 ptime->month = (png_byte)(ttime->tm_mon + 1); in png_convert_from_struct_tm()
478 ptime->day = (png_byte)ttime->tm_mday; in png_convert_from_struct_tm()
479 ptime->hour = (png_byte)ttime->tm_hour; in png_convert_from_struct_tm()
480 ptime->minute = (png_byte)ttime->tm_min; in png_convert_from_struct_tm()
481 ptime->second = (png_byte)ttime->tm_sec; in png_convert_from_struct_tm()
658 *(rp) = (png_byte)(*rp - *(rp + 1)); in png_do_write_intrapixel()
659 *(rp + 2) = (png_byte)(*(rp + 2) - *(rp + 1)); in png_do_write_intrapixel()
685 *(rp ) = (png_byte)(red >> 8); in png_do_write_intrapixel()
686 *(rp + 1) = (png_byte)red; in png_do_write_intrapixel()
[all …]
/external/libpng/
Dpnginfo.h65 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */
66 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */
68 png_byte compression_type; /* must be PNG_COMPRESSION_TYPE_BASE (IHDR) */
69 png_byte filter_type; /* must be PNG_FILTER_TYPE_BASE (from IHDR) */
70 png_byte interlace_type; /* One of PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
75 png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
76 png_byte pixel_depth; /* number of bits per pixel */
77 png_byte spare_byte; /* to align the data, and for future use */
81 png_byte signature[8]; /* magic bytes read by libpng from start of file */
175 png_byte offset_unit_type; /* offset units type */
[all …]
Dpngrtran.c158 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
421 png_byte left;
422 png_byte right;
444 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
446 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
461 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
465 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
485 png_byte t; in png_set_quantize()
540 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
541 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
[all …]
Dpngstruct.h64 png_byte output[1]; /* actually zbuf_size */
173 png_byte user_transform_depth; /* bit depth of user transformed pixels */
174 png_byte user_transform_channels; /* channels in user transformed pixels */
248 png_byte compression; /* file compression type (always 0) */
249 png_byte filter; /* file filter type (always 0) */
250 png_byte interlaced; /* PNG_INTERLACE_NONE, PNG_INTERLACE_ADAM7 */
251 png_byte pass; /* current interlace pass (0 - 6) */
252 png_byte do_filter; /* row filter flags (see PNG_FILTER_ in png.h ) */
253 png_byte color_type; /* color type of file */
254 png_byte bit_depth; /* bit depth of file */
[all …]
Dpngwtran.c59 *dp = (png_byte)v; in png_do_pack()
66 *dp = (png_byte)v; in png_do_pack()
86 png_byte value; in png_do_pack()
88 value = (png_byte)(*sp & 0x03); in png_do_pack()
94 *dp = (png_byte)v; in png_do_pack()
106 *dp = (png_byte)v; in png_do_pack()
126 png_byte value; in png_do_pack()
128 value = (png_byte)(*sp & 0x0f); in png_do_pack()
134 *dp = (png_byte)v; in png_do_pack()
146 *dp = (png_byte)v; in png_do_pack()
[all …]
Dpngwutil.c26 buf[0] = (png_byte)((i >> 24) & 0xffU); in png_save_uint_32()
27 buf[1] = (png_byte)((i >> 16) & 0xffU); in png_save_uint_32()
28 buf[2] = (png_byte)((i >> 8) & 0xffU); in png_save_uint_32()
29 buf[3] = (png_byte)( i & 0xffU); in png_save_uint_32()
39 buf[0] = (png_byte)((i >> 8) & 0xffU); in png_save_uint_16()
40 buf[1] = (png_byte)( i & 0xffU); 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()
148 png_byte buf[4]; in png_write_chunk_end()
280 data[0] = (png_byte)z_cmf; in optimize_cmf()
[all …]
Dpngtrans.c277 *rp = (png_byte)(~(*rp)); in png_do_invert()
291 *rp = (png_byte)(~(*rp)); in png_do_invert()
306 *rp = (png_byte)(~(*rp)); in png_do_invert()
307 *(rp + 1) = (png_byte)(~(*(rp + 1))); in png_do_invert()
337 png_byte t = *rp; in png_do_swap()
348 static const png_byte onebppswaptable[256] = {
383 static const png_byte twobppswaptable[256] = {
418 static const png_byte fourbppswaptable[256] = {
635 png_byte save = *rp; in png_do_bgr()
648 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c158 png_byte buf[8]; in png_read_chunk_header()
219 png_byte tmpbuf[PNG_INFLATE_BUF_SIZE]; in png_crc_finish()
253 png_byte crc_bytes[4]; in png_crc_error()
841 png_byte buf[13]; in png_handle_IHDR()
871 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
872 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
873 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
875 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
877 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
902 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR()
[all …]
Dpng.h480 png_byte red;
481 png_byte green;
482 png_byte blue;
490 png_byte index; /* used for palette files */
502 png_byte red; /* for use in red green blue files */
503 png_byte green;
504 png_byte blue;
505 png_byte gray; /* for use in grayscale files */
506 png_byte alpha; /* for alpha channel files */
536 png_byte depth; /* depth of palette samples */
[all …]
Dpngwrite.c228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
477 ptime->month = (png_byte)(ttime->tm_mon + 1); in png_convert_from_struct_tm()
478 ptime->day = (png_byte)ttime->tm_mday; in png_convert_from_struct_tm()
479 ptime->hour = (png_byte)ttime->tm_hour; in png_convert_from_struct_tm()
480 ptime->minute = (png_byte)ttime->tm_min; in png_convert_from_struct_tm()
481 ptime->second = (png_byte)ttime->tm_sec; in png_convert_from_struct_tm()
658 *(rp) = (png_byte)(*rp - *(rp + 1)); in png_do_write_intrapixel()
659 *(rp + 2) = (png_byte)(*(rp + 2) - *(rp + 1)); in png_do_write_intrapixel()
685 *(rp ) = (png_byte)(red >> 8); in png_do_write_intrapixel()
686 *(rp + 1) = (png_byte)red; in png_do_write_intrapixel()
[all …]
/external/libpng/powerpc/
Dfilter_vsx_intrinsics.c43 png_byte i;\
71 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
97 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
177 png_byte bpp = 4; in png_read_filter_row_sub4_vsx()
192 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
201 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
225 *rp = (png_byte)(((int)(*rp) + (int)(*(rp - bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
234 png_byte bpp = 3; in png_read_filter_row_sub3_vsx()
249 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub3_vsx()
258 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub3_vsx()
[all …]
/external/libpng/contrib/libtests/
Dpngvalid.c78 typedef png_byte *png_const_bytep;
287 *bytes++ = (png_byte)u; in make_random_bytes()
312 static png_byte
370 #define COL_FROM_ID(id) ((png_byte)((id)& 0x7U))
371 #define DEPTH_FROM_ID(id) ((png_byte)(((id) >> 3) & 0x1fU))
373 #define INTERLACE_FROM_ID(id) ((png_byte)(((id) >> 13) & 0x3))
380 standard_name(char *buffer, size_t bufsize, size_t pos, png_byte colour_type, in standard_name()
470 png_byte ct = *colour_type; in next_format()
480 *bit_depth = (png_byte)(*bit_depth << 1); in next_format()
520 sample(png_const_bytep row, png_byte colour_type, png_byte bit_depth, in sample()
[all …]
/external/libpng/contrib/visupng/
DPngFile.c99 BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
103 png_byte pbSig[8];
110 png_byte *pbImageData = *ppbImageData;
111 static png_byte **ppbRowPointers = NULL;
243 if ((pbImageData = (png_byte *) malloc(ulRowBytes * (*piHeight)
244 * sizeof(png_byte))) == NULL)
299 BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
307 static png_byte **ppbRowPointers = NULL;
/external/libpng/contrib/pngminus/
Dpnm2png.c168 png_byte *png_pixels = NULL; in pnm2png()
169 png_byte **row_pointers = NULL; in pnm2png()
170 png_byte *pix_ptr = NULL; in pnm2png()
366 if ((png_pixels = (png_byte *) in pnm2png()
407 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
409 *pix_ptr = (png_byte) (tmp16 & 0xFF); in pnm2png()
430 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
431 *pix_ptr++ = (png_byte) (tmp16 & 0xFF); in pnm2png()
484 if ((row_pointers = (png_byte **) in pnm2png()
485 malloc (height * sizeof (png_byte *))) == NULL) in pnm2png()
Dpng2pnm.c168 png_byte buf[8]; in png2pnm()
169 png_byte *png_pixels = NULL; in png2pnm()
170 png_byte **row_pointers = NULL; in png2pnm()
171 png_byte *pix_ptr = NULL; in png2pnm()
299 if ((png_pixels = (png_byte *) in png2pnm()
306 if ((row_pointers = (png_byte **) in png2pnm()
307 malloc ((size_t) height * sizeof (png_byte *))) == NULL) in png2pnm()
/external/ImageMagick/coders/
Dpng.c143 png_byte intent;
534 static const png_byte mng_MHDR[5]={ 77, 72, 68, 82, (png_byte) '\0'};
535 static const png_byte mng_BACK[5]={ 66, 65, 67, 75, (png_byte) '\0'};
536 static const png_byte mng_BASI[5]={ 66, 65, 83, 73, (png_byte) '\0'};
537 static const png_byte mng_CLIP[5]={ 67, 76, 73, 80, (png_byte) '\0'};
538 static const png_byte mng_CLON[5]={ 67, 76, 79, 78, (png_byte) '\0'};
539 static const png_byte mng_DEFI[5]={ 68, 69, 70, 73, (png_byte) '\0'};
540 static const png_byte mng_DHDR[5]={ 68, 72, 68, 82, (png_byte) '\0'};
541 static const png_byte mng_DISC[5]={ 68, 73, 83, 67, (png_byte) '\0'};
542 static const png_byte mng_ENDL[5]={ 69, 78, 68, 76, (png_byte) '\0'};
[all …]
/external/libpng/contrib/tools/
Dpngcp.c283 png_byte search; /* Search on --search */
284 png_byte value_count; /* length of the list of values: */
312 # define VLSIZE(name) voidcast(png_byte,\
433 png_byte ct;
440 png_byte entry[option_count]; /* The selected entry+1 of an option
471 png_byte opt; /* The option being tested */
472 png_byte entry; /* The next value entry to be tested */
473 png_byte end; /* This is the last entry */
711 static png_byte
718 png_byte j; in option_index()
[all …]

123