Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/jni/plugins/
Dwprint_image.c997 int row_width, max_rows; in wprint_image_compute_rows_to_cache() local
1034 max_rows = (available_mem / row_width); in wprint_image_compute_rows_to_cache()
1036 if (max_rows > 0xf) { in wprint_image_compute_rows_to_cache()
1037 max_rows &= ~0xf; in wprint_image_compute_rows_to_cache()
1041 row_width, output_mem, max_rows); in wprint_image_compute_rows_to_cache()
1044 if (max_rows > (MAX(width, height))) { in wprint_image_compute_rows_to_cache()
1045 max_rows = MAX(width, height); in wprint_image_compute_rows_to_cache()
1048 image_info->output_cache = (unsigned char **) malloc(sizeof(unsigned char *) * max_rows); in wprint_image_compute_rows_to_cache()
1049 for (i = 0; i < max_rows; i++) { in wprint_image_compute_rows_to_cache()
1053 max_rows = MIN(max_rows, height); in wprint_image_compute_rows_to_cache()
[all …]