Home
last modified time | relevance | path

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

123

/external/libpng/
Dpngrtran.c147 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
410 png_byte left;
411 png_byte right;
433 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
435 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
450 (png_alloc_size_t)((png_uint_32)num_palette * (sizeof (png_byte)))); in png_set_quantize()
454 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
474 png_byte t; in png_set_quantize()
529 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
530 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
[all …]
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 …]
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()
149 png_byte buf[4]; in png_write_chunk_end()
281 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 PNG_CONST png_byte onebppswaptable[256] = {
383 static PNG_CONST png_byte twobppswaptable[256] = {
418 static PNG_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.h511 png_byte red;
512 png_byte green;
513 png_byte blue;
521 png_byte index; /* used for palette files */
533 png_byte red; /* for use in red green blue files */
534 png_byte green;
535 png_byte blue;
536 png_byte gray; /* for use in grayscale files */
537 png_byte alpha; /* for alpha channel files */
567 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/pdfium/third_party/libpng16/
Dpngrtran.c146 png_ptr->background_gamma_type = (png_byte)(background_gamma_code); in png_set_background_fixed()
409 png_byte left;
410 png_byte right;
432 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize()
434 png_ptr->quantize_index[i] = (png_byte)i; in png_set_quantize()
449 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize()
453 png_ptr->quantize_sort[i] = (png_byte)i; in png_set_quantize()
473 png_byte t; in png_set_quantize()
528 png_ptr->quantize_index[j] = (png_byte)i; in png_set_quantize()
529 png_ptr->quantize_index[i] = (png_byte)j; in png_set_quantize()
[all …]
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 …]
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_ below ) */
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()
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()
336 png_byte t = *rp; in png_do_swap()
347 static PNG_CONST png_byte onebppswaptable[256] = {
382 static PNG_CONST png_byte twobppswaptable[256] = {
417 static PNG_CONST png_byte fourbppswaptable[256] = {
620 png_byte save = *rp; in png_do_bgr()
633 png_byte save = *rp; in png_do_bgr()
[all …]
Dpngrutil.c158 png_byte buf[8]; in png_read_chunk_header()
216 png_byte tmpbuf[PNG_INFLATE_BUF_SIZE]; in png_crc_finish()
250 png_byte crc_bytes[4]; in png_crc_error()
831 png_byte buf[13]; in png_handle_IHDR()
861 png_ptr->bit_depth = (png_byte)bit_depth; in png_handle_IHDR()
862 png_ptr->interlaced = (png_byte)interlace_type; in png_handle_IHDR()
863 png_ptr->color_type = (png_byte)color_type; in png_handle_IHDR()
865 png_ptr->filter_type = (png_byte)filter_type; in png_handle_IHDR()
867 png_ptr->compression_type = (png_byte)compression_type; in png_handle_IHDR()
892 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR()
[all …]
Dpng.h516 png_byte red;
517 png_byte green;
518 png_byte blue;
526 png_byte index; /* used for palette files */
538 png_byte red; /* for use in red green blue files */
539 png_byte green;
540 png_byte blue;
541 png_byte gray; /* for use in grayscale files */
542 png_byte alpha; /* for alpha channel files */
572 png_byte depth; /* depth of palette samples */
[all …]
Dpngwrite.c228 (png_byte)(255 - info_ptr->trans_alpha[j]); in png_write_info()
466 ptime->month = (png_byte)(ttime->tm_mon + 1); in png_convert_from_struct_tm()
467 ptime->day = (png_byte)ttime->tm_mday; in png_convert_from_struct_tm()
468 ptime->hour = (png_byte)ttime->tm_hour; in png_convert_from_struct_tm()
469 ptime->minute = (png_byte)ttime->tm_min; in png_convert_from_struct_tm()
470 ptime->second = (png_byte)ttime->tm_sec; in png_convert_from_struct_tm()
647 *(rp) = (png_byte)(*rp - *(rp + 1)); in png_do_write_intrapixel()
648 *(rp + 2) = (png_byte)(*(rp + 2) - *(rp + 1)); in png_do_write_intrapixel()
674 *(rp ) = (png_byte)(red >> 8); in png_do_write_intrapixel()
675 *(rp + 1) = (png_byte)red; in png_do_write_intrapixel()
[all …]
Dpngset.c219 info_ptr->bit_depth = (png_byte)bit_depth; in png_set_IHDR()
220 info_ptr->color_type = (png_byte)color_type; in png_set_IHDR()
221 info_ptr->compression_type = (png_byte)compression_type; in png_set_IHDR()
222 info_ptr->filter_type = (png_byte)filter_type; in png_set_IHDR()
223 info_ptr->interlace_type = (png_byte)interlace_type; in png_set_IHDR()
241 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth); in png_set_IHDR()
258 info_ptr->offset_unit_type = (png_byte)unit_type; in png_set_oFFs()
326 info_ptr->pcal_type = (png_byte)type; in png_set_pCAL()
327 info_ptr->pcal_nparams = (png_byte)nparams; in png_set_pCAL()
406 info_ptr->scal_unit = (png_byte)unit; in png_set_sCAL_s()
[all …]
/external/libpng/powerpc/
Dfilter_vsx_intrinsics.c42 png_byte i;\
70 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
96 *rp = (png_byte)(((int)(*rp) + (int)(*pp++)) & 0xff); in png_read_filter_row_up_vsx()
176 const png_byte bpp = 4; in png_read_filter_row_sub4_vsx()
191 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
200 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
224 *rp = (png_byte)(((int)(*rp) + (int)(*(rp - bpp))) & 0xff); in png_read_filter_row_sub4_vsx()
233 const png_byte bpp = 3; in png_read_filter_row_sub3_vsx()
248 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub3_vsx()
257 *rp = (png_byte)(((int)(*rp) + (int)(*(rp-bpp))) & 0xff); in png_read_filter_row_sub3_vsx()
[all …]
/external/libpng/contrib/libtests/
Dpngvalid.c77 typedef png_byte *png_const_bytep;
286 *bytes++ = (png_byte)u; in make_random_bytes()
311 static png_byte
369 #define COL_FROM_ID(id) ((png_byte)((id)& 0x7U))
370 #define DEPTH_FROM_ID(id) ((png_byte)(((id) >> 3) & 0x1fU))
372 #define INTERLACE_FROM_ID(id) ((png_byte)(((id) >> 13) & 0x3))
379 standard_name(char *buffer, size_t bufsize, size_t pos, png_byte colour_type, in standard_name()
469 png_byte ct = *colour_type; in next_format()
479 *bit_depth = (png_byte)(*bit_depth << 1); in next_format()
519 sample(png_const_bytep row, png_byte colour_type, png_byte bit_depth, in sample()
[all …]
/external/libpng/contrib/pngminus/
Dpnm2png.c208 png_byte *png_pixels = NULL; in pnm2png()
209 png_byte **row_pointers = NULL; in pnm2png()
210 png_byte *pix_ptr = NULL; in pnm2png()
394 if ((png_pixels = (png_byte *) in pnm2png()
395 malloc ((size_t)row_bytes * (size_t)height * sizeof (png_byte))) == NULL) in pnm2png()
424 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
426 *pix_ptr = (png_byte) (tmp16 & 0xFF); in pnm2png()
441 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); in pnm2png()
442 *pix_ptr++ = (png_byte) (tmp16 & 0xFF); in pnm2png()
498 if ((row_pointers = (png_byte **) in pnm2png()
[all …]
Dpng2pnm.c211 png_byte buf[8]; in png2pnm()
212 png_byte *png_pixels = NULL; in png2pnm()
213 png_byte **row_pointers = NULL; in png2pnm()
214 png_byte *pix_ptr = NULL; in png2pnm()
342 if ((png_pixels = (png_byte *) in png2pnm()
343 malloc ((size_t)row_bytes * (size_t)height * sizeof (png_byte))) == NULL) in png2pnm()
349 if ((row_pointers = (png_byte **) in png2pnm()
/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/autotest/client/deps/glbench/src/
Dpng_helper.cc33 png_byte bit_depth = 8; // 8 bits per channel RGBA in write_png_file()
34 png_byte color_type = 6; // RGBA in write_png_file()
39 row_pointers[y] = (png_byte*)malloc(4 * width); in write_png_file()
41 png_byte* pixel = &(row_pointers[y][x * 4]); in write_png_file()

123