1450N/A * Copyright (C) 2011-2013 Intel Corporation 1450N/A * Permission is hereby granted, free of charge, to any person obtaining a 1450N/A * copy of this software and associated documentation files (the "Software"), 1450N/A * to deal in the Software without restriction, including without limitation 1450N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1450N/A * and/or sell copies of the Software, and to permit persons to whom the 1450N/A * Software is furnished to do so, subject to the following conditions: 1450N/A * The above copyright notice and this permission notice (including the next 1450N/A * paragraph) shall be included in all copies or substantial portions of the 1450N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1450N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1450N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1450N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1450N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1450N/A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1450N/A * drm_rect_intersect - intersect two rectangles 1450N/A * Calculate the intersection of rectangles @r1 and @r2. 1450N/A * @r1 will be overwritten with the intersection. 1450N/A * %true if rectangle @r1 is still visible after the operation, 1450N/A * drm_rect_clip_scaled - perform a scaled clip operation 1450N/A * @src: source window rectangle 1450N/A * @dst: destination window rectangle 1450N/A * @hscale: horizontal scaling factor 1450N/A * @vscale: vertical scaling factor 1450N/A * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the 1450N/A * same amounts multiplied by @hscale and @vscale. 1450N/A * %true if rectangle @dst is still visible after being clipped, 1450N/A * drm_rect_calc_hscale - calculate the horizontal scaling factor 1450N/A * @src: source window rectangle 1450N/A * @dst: destination window rectangle 1450N/A * @min_hscale: minimum allowed horizontal scaling factor 1450N/A * @max_hscale: maximum allowed horizontal scaling factor 1450N/A * Calculate the horizontal scaling factor as 1450N/A * (@src width) / (@dst width). 1450N/A * The horizontal scaling factor, or errno of out of limits. 1450N/A * drm_rect_calc_vscale - calculate the vertical scaling factor 1450N/A * @src: source window rectangle 1450N/A * @dst: destination window rectangle 1450N/A * @min_vscale: minimum allowed vertical scaling factor 1450N/A * @max_vscale: maximum allowed vertical scaling factor 1450N/A * Calculate the vertical scaling factor as 1450N/A * (@src height) / (@dst height). 1450N/A * The vertical scaling factor, or errno of out of limits. 1450N/A * drm_calc_hscale_relaxed - calculate the horizontal scaling factor 1450N/A * @src: source window rectangle 1450N/A * @dst: destination window rectangle 1450N/A * @min_hscale: minimum allowed horizontal scaling factor 1450N/A * @max_hscale: maximum allowed horizontal scaling factor 1450N/A * Calculate the horizontal scaling factor as 1450N/A * (@src width) / (@dst width). 1450N/A * If the calculated scaling factor is below @min_vscale, 1450N/A * decrease the height of rectangle @dst to compensate. 1450N/A * If the calculated scaling factor is above @max_vscale, 1450N/A * decrease the height of rectangle @src to compensate. 1450N/A * The horizontal scaling factor. 1450N/A * drm_rect_calc_vscale_relaxed - calculate the vertical scaling factor 1450N/A * @src: source window rectangle 1450N/A * @dst: destination window rectangle 1450N/A * @min_vscale: minimum allowed vertical scaling factor 1450N/A * @max_vscale: maximum allowed vertical scaling factor 1450N/A * Calculate the vertical scaling factor as 1450N/A * (@src height) / (@dst height). 1450N/A * If the calculated scaling factor is below @min_vscale, 1450N/A * decrease the height of rectangle @dst to compensate. 1450N/A * If the calculated scaling factor is above @max_vscale, 1450N/A * decrease the height of rectangle @src to compensate. 1450N/A * The vertical scaling factor. 1450N/A * drm_rect_debug_print - print the rectangle information 1450N/A * @fixed_point: rectangle is in 16.16 fixed point format 1450N/A w >>
16, ((w &
0xffff) *
15625) >>
10,
1450N/A h >>
16, ((h &
0xffff) *
15625) >>
10,
1450N/A r->
y1 >>
16, ((r->
y1 &
0xffff) *
15625) >>
10);