Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/jni/plugins/
Dwprint_image.c203 float native_scaling = 1.0f; in wprint_image_set_output_properties() local
211 native_scaling = (image_info->print_resolution * 1.0f) / (native_units * 1.0f); in wprint_image_set_output_properties()
212 native_image_output_width = (int) floorf(image_output_width * native_scaling); in wprint_image_set_output_properties()
213 native_image_output_height = (int) floorf(image_output_height * native_scaling); in wprint_image_set_output_properties()
214 LOGD("need to do native scaling by %f factor to size %dx%d", native_scaling, in wprint_image_set_output_properties()
220 (native_scaling == 1.0f)) { in wprint_image_set_output_properties()
286 } else if ((native_scaling != 1.0f) && in wprint_image_set_output_properties()
296 native_scaling = 1.0f; in wprint_image_set_output_properties()
306 || (native_scaling != 1.0f)) { in wprint_image_set_output_properties()