Home
last modified time | relevance | path

Searched refs:new_height (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/ash/desktop_background/
Dwallpaper_resizer.cc39 const int new_height = target_size.height(); in Resize() local
41 if (orig_width > new_width || orig_height > new_height) { in Resize()
44 std::min(new_height, orig_height)); in Resize()
59 new_width, new_height); in Resize()
62 if (orig_width > new_width && orig_height > new_height) { in Resize()
67 double vertical_ratio = static_cast<double>(new_height) / in Resize()
76 static_cast<double>(new_height) / horizontal_ratio)); in Resize()
84 new_width, new_height); in Resize()
/external/chromium_org/chrome/utility/importer/
Dfavicon_reencode.cc30 int new_height = decoded.height(); in ReencodeFavicon() local
31 gfx::CalculateFaviconTargetSize(&new_width, &new_height); in ReencodeFavicon()
33 decoded, skia::ImageOperations::RESIZE_LANCZOS3, new_width, new_height); in ReencodeFavicon()
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideoadapter.cc502 int new_width, new_height; in OnOutputFormatRequest() local
503 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnOutputFormatRequest()
508 << " To: " << new_width << "x" << new_height; in OnOutputFormatRequest()
572 int new_width, new_height; in OnEncoderResolutionRequest() local
573 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnEncoderResolutionRequest()
587 << " To: " << new_width << "x" << new_height; in OnEncoderResolutionRequest()
633 int new_width, new_height; in OnCpuResolutionRequest() local
634 bool changed = AdaptToMinimumFormat(&new_width, &new_height); in OnCpuResolutionRequest()
640 << " To: " << new_width << "x" << new_height; in OnCpuResolutionRequest()
700 int* new_height) { in AdaptToMinimumFormat() argument
[all …]
Dvideoadapter.h180 bool AdaptToMinimumFormat(int* new_width, int* new_height);
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/
Dcube.cc254 int32_t new_height = view.GetRect().height(); in DidChangeView() local
257 if (!InitGL(new_width, new_height)) { in DidChangeView()
268 int32_t result = context_.ResizeBuffers(new_width, new_height); in DidChangeView()
273 new_height); in DidChangeView()
279 height_ = new_height; in DidChangeView()
322 bool InitGL(int32_t new_width, int32_t new_height) { in InitGL() argument
332 PP_GRAPHICS3DATTRIB_HEIGHT, new_height, in InitGL()
/external/chromium_org/native_client_sdk/src/examples/api/graphics_3d/
Dgraphics_3d.cc254 int32_t new_height = view.GetRect().height() * view.GetDeviceScale(); in DidChangeView() local
257 if (!InitGL(new_width, new_height)) { in DidChangeView()
268 int32_t result = context_.ResizeBuffers(new_width, new_height); in DidChangeView()
273 new_height); in DidChangeView()
279 height_ = new_height; in DidChangeView()
322 bool InitGL(int32_t new_width, int32_t new_height) { in InitGL() argument
332 PP_GRAPHICS3DATTRIB_HEIGHT, new_height, in InitGL()
/external/chromium_org/chrome/browser/ui/panels/
Dpanel_resize_controller.cc116 int new_height = std::max(bounds_at_start_.height() + in Resize() local
118 int new_y = bounds_at_start_.bottom() - new_height; in Resize()
128 new_height -= work_area.y() - new_y; in Resize()
131 bounds.set_height(new_height); in Resize()
Dpanel.cc692 int new_height = size.height(); in ClampSize() local
693 if (new_height > max_size_.height()) in ClampSize()
694 new_height = max_size_.height(); in ClampSize()
695 if (new_height < min_size_.height()) in ClampSize()
696 new_height = min_size_.height(); in ClampSize()
698 return gfx::Size(new_width, new_height); in ClampSize()
/external/chromium_org/ash/wm/gestures/
Dtray_gesture_handler.cc57 int new_height = std::min( in UpdateGestureDrag() local
60 int height_change = bounds.height() - new_height; in UpdateGestureDrag()
61 bounds.set_height(new_height); in UpdateGestureDrag()
/external/chromium_org/ppapi/cpp/
Drect.cc114 int32_t new_height = height(); in AdjustToFit() local
116 AdjustAlongAxis(rect.y(), rect.height(), &new_y, &new_height); in AdjustToFit()
117 return Rect(new_x, new_y, new_width, new_height); in AdjustToFit()
218 float new_height = height(); in AdjustToFit() local
220 AdjustAlongAxis(rect.y(), rect.height(), &new_y, &new_height); in AdjustToFit()
221 return FloatRect(new_x, new_y, new_width, new_height); in AdjustToFit()
/external/pixman/demos/
Dscale.c191 double new_width, new_height; in rescale() local
214 new_height = pixman_image_get_height (app->original) * fscale_y; in rescale()
218 pixman_f_transform_translate (&ftransform, NULL, - new_width / 2.0, - new_height / 2.0); in rescale()
223 pixman_f_transform_translate (&ftransform, NULL, new_width / 2.0, new_height / 2.0); in rescale()
251 app->scaled_height = ceil (new_height); in rescale()
254 get_widget (app, "drawing_area"), new_width + 0.5, new_height + 0.5); in rescale()
/external/chromium_org/ui/keyboard/
Dkeyboard_controller_proxy.cc60 int new_height = pos.height(); in MoveContents() local
61 bounds.set_y(bounds.y() + bounds.height() - new_height); in MoveContents()
62 bounds.set_height(new_height); in MoveContents()
/external/chromium_org/ui/gfx/geometry/
Drect_base_impl.h254 Type new_height = height(); in AdjustToFit() local
256 AdjustAlongAxis(rect.y(), rect.height(), &new_y, &new_height); in AdjustToFit()
257 SetRect(new_x, new_y, new_width, new_height); in AdjustToFit()
280 Type new_height = std::min(height(), size.height()); in ClampToCenteredSize() local
282 Type new_y = y() + (height() - new_height) / 2; in ClampToCenteredSize()
283 SetRect(new_x, new_y, new_width, new_height); in ClampToCenteredSize()
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideoframe.cc320 int new_height = dh; in Reset() local
323 new_height = dw; in Reset()
326 size_t desired_size = SizeOf(new_width, new_height); in Reset()
331 Attach(video_buffer.get(), desired_size, new_width, new_height, pixel_width, in Reset()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeonsi/
Dr600_blit.c275 int new_height, new_width; in r600_compressed_to_blittable() local
291 new_height = util_format_get_nblocksy(tex->format, orig->height0); in r600_compressed_to_blittable()
294 tex->height0 = new_height; in r600_compressed_to_blittable()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_blit.c275 int new_height, new_width; in r600_compressed_to_blittable() local
291 new_height = util_format_get_nblocksy(tex->format, orig->height0); in r600_compressed_to_blittable()
294 tex->height0 = new_height; in r600_compressed_to_blittable()
/external/chromium_org/media/video/capture/mac/
Dvideo_capture_device_mac.mm519 int new_height = capture_format_.frame_size.height();
523 new_height = (new_height * aspect_denominator) / aspect_numerator;
524 capture_format_.frame_size.SetSize(new_width, new_height);
/external/chromium_org/chrome/browser/ui/views/
Ddesktop_media_picker_views.cc547 int new_height = widget_bound.height() - scroll_view_->height() + in OnMediaListRowsChanged() local
550 GetWidget()->CenterWindow(gfx::Size(widget_bound.width(), new_height)); in OnMediaListRowsChanged()
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/
Dfirstpass.c3209 int new_height = cpi->oxcf.Height; in find_next_key_frame() local
3283 …mes_to_key, (int)(cpi->twopass.kf_group_bits / cpi->twopass.frames_to_key), new_height, new_width); in find_next_key_frame()
3335 new_height = ((vs - 1) + (cpi->oxcf.Height * vr)) / vs; in find_next_key_frame()
3341 …effective_size_ratio = (double)(new_width * new_height) / (double)(cpi->oxcf.Width * cpi->oxcf.Hei… in find_next_key_frame()
3354 …mes_to_key, (int)(cpi->twopass.kf_group_bits / cpi->twopass.frames_to_key), new_height, new_width); in find_next_key_frame()
3360 if ((cpi->common.Width != new_width) || (cpi->common.Height != new_height)) in find_next_key_frame()
3363 cpi->common.Height = new_height; in find_next_key_frame()
/external/libvpx/libvpx/vp8/encoder/
Dfirstpass.c3209 int new_height = cpi->oxcf.Height; in find_next_key_frame() local
3283 …mes_to_key, (int)(cpi->twopass.kf_group_bits / cpi->twopass.frames_to_key), new_height, new_width); in find_next_key_frame()
3335 new_height = ((vs - 1) + (cpi->oxcf.Height * vr)) / vs; in find_next_key_frame()
3341 …effective_size_ratio = (double)(new_width * new_height) / (double)(cpi->oxcf.Width * cpi->oxcf.Hei… in find_next_key_frame()
3354 …mes_to_key, (int)(cpi->twopass.kf_group_bits / cpi->twopass.frames_to_key), new_height, new_width); in find_next_key_frame()
3360 if ((cpi->common.Width != new_width) || (cpi->common.Height != new_height)) in find_next_key_frame()
3363 cpi->common.Height = new_height; in find_next_key_frame()
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/
Dqm_select_unittest.cc67 uint16_t new_height,
1298 uint16_t new_height, in IsSelectedActionCorrect() argument
1304 qm_scale->codec_height == new_height && in IsSelectedActionCorrect()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/
Dr600_blit.c577 int new_height, new_width; in r600_compressed_to_blittable() local
593 new_height = util_format_get_nblocksy(tex->format, orig->height0); in r600_compressed_to_blittable()
596 tex->height0 = new_height; in r600_compressed_to_blittable()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_blit.c577 int new_height, new_width; in r600_compressed_to_blittable() local
593 new_height = util_format_get_nblocksy(tex->format, orig->height0); in r600_compressed_to_blittable()
596 tex->height0 = new_height; in r600_compressed_to_blittable()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c962 GLuint new_width, new_height; in wmesa_viewport() local
964 wmesa_get_buffer_size(ctx->WinSysDrawBuffer, &new_width, &new_height); in wmesa_viewport()
969 wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height); in wmesa_viewport()
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/windows/gdi/
Dwmesa.c962 GLuint new_width, new_height; in wmesa_viewport() local
964 wmesa_get_buffer_size(ctx->WinSysDrawBuffer, &new_width, &new_height); in wmesa_viewport()
969 wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height); in wmesa_viewport()

12