Searched refs:num_to_check (Results 1 – 8 of 8) sorted by relevance
/external/libpng/ |
D | pngpread.c | 155 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()
|
D | png.c | 49 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()
|
D | pngrutil.c | 117 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()
|
D | png.h | 1037 png_size_t num_to_check));
|
/external/pdfium/samples/fx_lpng/lpng_v163/ |
D | fx_pngpread.c | 154 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()
|
D | fx_png.c | 48 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()
|
D | fx_pngrutil.c | 116 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()
|
D | png.h | 1271 png_size_t num_to_check));
|