Home
last modified time | relevance | path

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

/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideocommon.cc112 int new_frame_width = frame_width; in ComputeScaleMaxPixels() local
116 if (new_frame_width > kMaxWidth) { in ComputeScaleMaxPixels()
117 new_frame_height = new_frame_height * kMaxWidth / new_frame_width; in ComputeScaleMaxPixels()
118 new_frame_width = kMaxWidth; in ComputeScaleMaxPixels()
122 new_frame_width = new_frame_width * kMaxHeight / new_frame_height; in ComputeScaleMaxPixels()
126 if (new_frame_width * new_frame_height > max_pixels) { in ComputeScaleMaxPixels()
129 new_frame_width = static_cast<int>(sqrtf(static_cast<float>( in ComputeScaleMaxPixels()
130 max_pixels) * new_frame_width / new_frame_height)); in ComputeScaleMaxPixels()
131 new_frame_height = max_pixels / new_frame_width; in ComputeScaleMaxPixels()
135 new_frame_width * new_frame_height); in ComputeScaleMaxPixels()