Lines Matching refs:num_bytes
85 /* Tells libpng that we have already handled the first "num_bytes" bytes
87 * stream we can set num_bytes = 8 so that libpng will not attempt to read
92 png_set_sig_bytes(png_structp png_ptr, int num_bytes)
95 if (num_bytes > 8)
98 png_ptr->sig_bytes = (png_byte)(num_bytes < 0 ? 0 : num_bytes);
148 png_uint_32 num_bytes;
155 num_bytes = (png_uint_32)items * size;
158 ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
165 if (num_bytes > (png_uint_32)0x8000L)
169 (png_size_t)(num_bytes - (png_uint_32)0x8000L));
173 png_memset(ptr, 0, (png_size_t)num_bytes);