diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 07:09:01 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 07:09:01 +0000 |
commit | 82156e838b1c5b51ef38e621eb095bf892ab4997 (patch) | |
tree | c475f4998e44c3bfe8c3ee2b6164455f0d7f4b44 /remoting/base/util.h | |
parent | d8bd7dde5c4a70ca251816a294545de7be9f9881 (diff) | |
download | chromium_src-82156e838b1c5b51ef38e621eb095bf892ab4997.zip chromium_src-82156e838b1c5b51ef38e621eb095bf892ab4997.tar.gz chromium_src-82156e838b1c5b51ef38e621eb095bf892ab4997.tar.bz2 |
Remoting client rectangle decoder and VP8 decoder fixes.
These are required to avoid artefacts when linear scaling is implemented.
BUG=93451
Review URL: http://codereview.chromium.org/8745008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/util.h')
-rw-r--r-- | remoting/base/util.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/remoting/base/util.h b/remoting/base/util.h index b60e072..cf2b2dd 100644 --- a/remoting/base/util.h +++ b/remoting/base/util.h @@ -5,6 +5,8 @@ #ifndef REMOTING_BASE_UTIL_H_ #define REMOTING_BASE_UTIL_H_ +#include <string> + #include "media/base/video_frame.h" #include "third_party/skia/include/core/SkRect.h" @@ -52,8 +54,9 @@ int RoundToTwosMultiple(int x); // Align the sides of the rectangle to multiples of 2 (expanding outwards). SkIRect AlignRect(const SkIRect& rect); -// Return a scaled rectangle using the horizontal and vertical scale -// factors. +// Scale a rectangle by horizontal and vertical factors. If the result has +// non-integer coordinates then the smallest integer-coordinate rectangle that +// wholly encloses it is returned. SkIRect ScaleRect(const SkIRect& rect, double horizontal_ratio, double vertical_ratio); |