Lines Matching refs:max_rows
997 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()
1056 image_info->rows_cached = max_rows; in wprint_image_compute_rows_to_cache()
1057 LOGD("wprint_image_compute_rows_to_cache(): %d rows being cached", max_rows); in wprint_image_compute_rows_to_cache()