Home
last modified time | relevance | path

Searched refs:num_to_check (Results 1 – 8 of 8) sorted by relevance

/external/libpng/
Dpngpread.c155 num_to_check = 8 - num_checked; in png_push_read_sig() local
157 if (png_ptr->buffer_size < num_to_check) in png_push_read_sig()
159 num_to_check = png_ptr->buffer_size; in png_push_read_sig()
163 num_to_check); in png_push_read_sig()
164 png_ptr->sig_bytes = (png_byte)(png_ptr->sig_bytes + num_to_check); in png_push_read_sig()
166 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_push_read_sig()
169 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_push_read_sig()
Dpng.c49 png_sig_cmp(png_const_bytep sig, png_size_t start, png_size_t num_to_check) in png_sig_cmp() argument
53 if (num_to_check > 8) in png_sig_cmp()
54 num_to_check = 8; in png_sig_cmp()
56 else if (num_to_check < 1) in png_sig_cmp()
62 if (start + num_to_check > 8) in png_sig_cmp()
63 num_to_check = 8 - start; in png_sig_cmp()
65 return ((int)(memcmp(&sig[start], &png_signature[start], num_to_check))); in png_sig_cmp()
Dpngrutil.c117 png_size_t num_checked, num_to_check; in png_read_sig() local
124 num_to_check = 8 - num_checked; in png_read_sig()
131 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_sig()
134 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_read_sig()
137 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_read_sig()
Dpng.h1037 png_size_t num_to_check));
/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngpread.c154 num_to_check = 8 - num_checked; in png_push_read_sig() local
156 if (png_ptr->buffer_size < num_to_check) in png_push_read_sig()
158 num_to_check = png_ptr->buffer_size; in png_push_read_sig()
162 num_to_check); in png_push_read_sig()
163 png_ptr->sig_bytes = (png_byte)(png_ptr->sig_bytes + num_to_check); in png_push_read_sig()
165 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_push_read_sig()
168 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_push_read_sig()
Dfx_png.c48 png_sig_cmp(png_const_bytep sig, png_size_t start, png_size_t num_to_check) in png_sig_cmp() argument
52 if (num_to_check > 8) in png_sig_cmp()
53 num_to_check = 8; in png_sig_cmp()
55 else if (num_to_check < 1) in png_sig_cmp()
61 if (start + num_to_check > 8) in png_sig_cmp()
62 num_to_check = 8 - start; in png_sig_cmp()
64 return ((int)(memcmp(&sig[start], &png_signature[start], num_to_check))); in png_sig_cmp()
Dfx_pngrutil.c116 png_size_t num_checked, num_to_check; in png_read_sig() local
123 num_to_check = 8 - num_checked; in png_read_sig()
130 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_sig()
133 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_read_sig()
136 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_read_sig()
Dpng.h1271 png_size_t num_to_check));