Lines Matching refs:height
86 // Find the scale factor that, when applied to width and height, is closest
90 int width, int height,
98 float pixels = static_cast<float>(width * height);
126 float VideoAdapter::FindClosestScale(int width, int height,
129 width, height, target_num_pixels);
133 float VideoAdapter::FindClosestViewScale(int width, int height,
136 width, height, target_num_pixels);
139 // Finds the scale factor that, when applied to width and height, produces
142 float VideoAdapter::FindLowerScale(int width, int height,
145 width, height, target_num_pixels);
197 int previous_height = input_format().height;
200 previous_height != format.height);
203 int width, height;
207 AdaptToMinimumFormat(&width, &height);
212 << format.width << "x" << format.height
214 << width << "x" << height;
228 output_num_pixels_ = output_format_.width * output_format_.height;
345 output_format_.height = output_height;
425 view_desired_num_pixels_ = format.width * format.height;
430 height
480 int width, int height, AdaptRequest request) {
487 int new_encoder_desired_num_pixels = width * height;
509 << " From: " << width << "x" << height
555 static_cast<int>(input_format().width * input_format().height >>
613 input.height,
617 new_output.height = static_cast<int>(input.height * scale + .5f);
618 int new_pixels = new_output.width * new_output.height;
653 float scale = FindClosestScale(input.width, input.height, min_num_pixels);
655 static_cast<int>(input.height * scale + .5f);
669 scale = FindLowerScale(input.width, input.height, min_num_pixels);
671 static_cast<int>(input.height * scale + .5f);
677 *new_height = new_output.height = static_cast<int>(input.height * scale +
702 << "x" << input.height
705 << "x" << new_output.height