Lines Matching refs:buf

52 png_get_uint_31(png_structp png_ptr, png_const_bytep buf)
54 png_uint_32 uval = png_get_uint_32(buf);
71 png_get_fixed_point(png_structp png_ptr, png_const_bytep buf)
73 png_uint_32 uval = png_get_uint_32(buf);
98 png_get_uint_32)(png_const_bytep buf)
101 ((png_uint_32)(*(buf )) << 24) +
102 ((png_uint_32)(*(buf + 1)) << 16) +
103 ((png_uint_32)(*(buf + 2)) << 8) +
104 ((png_uint_32)(*(buf + 3)) ) ;
115 png_get_int_32)(png_const_bytep buf)
117 png_uint_32 uval = png_get_uint_32(buf);
127 png_get_uint_16)(png_const_bytep buf)
135 ((unsigned int)(*buf) << 8) +
136 ((unsigned int)(*(buf + 1)));
182 png_byte buf[8];
192 png_read_data(png_ptr, buf, 8);
193 length = png_get_uint_31(png_ptr, buf);
196 png_memcpy(png_ptr->chunk_name, buf + 4, 4);
217 png_crc_read(png_structp png_ptr, png_bytep buf, png_size_t length)
222 png_read_data(png_ptr, buf, length);
223 png_calculate_crc(png_ptr, buf, length);
556 png_byte buf[13];
572 png_crc_read(png_ptr, buf, 13);
575 width = png_get_uint_31(png_ptr, buf);
576 height = png_get_uint_31(png_ptr, buf + 4);
577 bit_depth = buf[8];
578 color_type = buf[9];
579 compression_type = buf[10];
580 filter_type = buf[11];
581 interlace_type = buf[12];
690 png_byte buf[3];
692 png_crc_read(png_ptr, buf, 3);
693 pal_ptr->red = buf[0];
694 pal_ptr->green = buf[1];
695 pal_ptr->blue = buf[2];
700 png_byte buf[3];
702 png_crc_read(png_ptr, buf, 3);
704 palette[i].red = buf[0];
705 palette[i].green = buf[1];
706 palette[i].blue = buf[2];
803 png_byte buf[4];
839 png_crc_read(png_ptr, buf, 4);
844 igamma = png_get_fixed_point(NULL, buf);
883 png_byte buf[4];
887 buf[0] = buf[1] = buf[2] = buf[3] = 0;
925 png_crc_read(png_ptr, buf, truelen);
932 png_ptr->sig_bit.red = buf[0];
933 png_ptr->sig_bit.green = buf[1];
934 png_ptr->sig_bit.blue = buf[2];
935 png_ptr->sig_bit.alpha = buf[3];
940 png_ptr->sig_bit.gray = buf[0];
941 png_ptr->sig_bit.red = buf[0];
942 png_ptr->sig_bit.green = buf[0];
943 png_ptr->sig_bit.blue = buf[0];
944 png_ptr->sig_bit.alpha = buf[1];
955 png_byte buf[32];
993 png_crc_read(png_ptr, buf, 32);
998 x_white = png_get_fixed_point(NULL, buf);
999 y_white = png_get_fixed_point(NULL, buf + 4);
1000 x_red = png_get_fixed_point(NULL, buf + 8);
1001 y_red = png_get_fixed_point(NULL, buf + 12);
1002 x_green = png_get_fixed_point(NULL, buf + 16);
1003 y_green = png_get_fixed_point(NULL, buf + 20);
1004 x_blue = png_get_fixed_point(NULL, buf + 24);
1005 y_blue = png_get_fixed_point(NULL, buf + 28);
1088 png_byte buf[1];
1120 png_crc_read(png_ptr, buf, 1);
1125 intent = buf[0];
1519 png_byte buf[2];
1528 png_crc_read(png_ptr, buf, 2);
1530 png_ptr->trans_color.gray = png_get_uint_16(buf);
1535 png_byte buf[6];
1544 png_crc_read(png_ptr, buf, (png_size_t)length);
1546 png_ptr->trans_color.red = png_get_uint_16(buf);
1547 png_ptr->trans_color.green = png_get_uint_16(buf + 2);
1548 png_ptr->trans_color.blue = png_get_uint_16(buf + 4);
1601 png_byte buf[6];
1647 png_crc_read(png_ptr, buf, truelen);
1659 background.index = buf[0];
1663 if (buf[0] >= info_ptr->num_palette)
1669 background.red = (png_uint_16)png_ptr->palette[buf[0]].red;
1670 background.green = (png_uint_16)png_ptr->palette[buf[0]].green;
1671 background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue;
1686 background.gray = png_get_uint_16(buf);
1692 background.red = png_get_uint_16(buf);
1693 background.green = png_get_uint_16(buf + 2);
1694 background.blue = png_get_uint_16(buf + 4);
1747 png_byte buf[2];
1749 png_crc_read(png_ptr, buf, 2);
1750 readbuf[i] = png_get_uint_16(buf);
1764 png_byte buf[9];
1794 png_crc_read(png_ptr, buf, 9);
1799 res_x = png_get_uint_32(buf);
1800 res_y = png_get_uint_32(buf + 4);
1801 unit_type = buf[8];
1810 png_byte buf[9];
1840 png_crc_read(png_ptr, buf, 9);
1845 offset_x = png_get_int_32(buf);
1846 offset_y = png_get_int_32(buf + 4);
1847 unit_type = buf[8];
1859 png_charp buf, units, endptr;
1907 for (buf = png_ptr->chunkdata; *buf; buf++)
1915 if (endptr <= buf + 12)
1924 X0 = png_get_int_32((png_bytep)buf+1);
1925 X1 = png_get_int_32((png_bytep)buf+5);
1926 type = buf[9];
1927 nparams = buf[10];
1928 units = buf + 11;
1950 for (buf = units; *buf; buf++)
1969 buf++; /* Skip the null string terminator from previous parameter. */
1973 for (params[i] = buf; buf <= endptr && *buf != 0x00; buf++)
1977 if (buf > endptr)
2105 png_byte buf[7];
2130 png_crc_read(png_ptr, buf, 7);
2135 mod_time.second = buf[6];
2136 mod_time.minute = buf[5];
2137 mod_time.hour = buf[4];
2138 mod_time.day = buf[3];
2139 mod_time.month = buf[2];
2140 mod_time.year = png_get_uint_16(buf);