Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: remoting/base/util.cc

Issue 8954003: Revised sub-rectangle scaling for use in Chromoting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last-line UV buffer overrun. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.cc
diff --git a/remoting/base/util.cc b/remoting/base/util.cc
index d069ce83da818c5933fc850dad3b46284f914c13..6e92bdddb289ecdf428d417c093ffc2254c0cd5d 100644
--- a/remoting/base/util.cc
+++ b/remoting/base/util.cc
@@ -77,41 +77,6 @@ void ConvertYUVToRGB32WithRect(const uint8* y_plane,
media::YV12);
}
-void ScaleYUVToRGB32WithRect(const uint8* y_plane,
- const uint8* u_plane,
- const uint8* v_plane,
- uint8* rgb_plane,
- const SkIRect& source_rect,
- const SkIRect& dest_rect,
- int y_stride,
- int uv_stride,
- int rgb_stride) {
- int rgb_offset = CalculateRGBOffset(dest_rect.left(),
- dest_rect.top(),
- rgb_stride);
- int y_offset = CalculateYOffset(source_rect.left(),
- source_rect.top(),
- y_stride);
- int uv_offset = CalculateUVOffset(source_rect.left(),
- source_rect.top(),
- uv_stride);
-
- media::ScaleYUVToRGB32(y_plane + y_offset,
- u_plane + uv_offset,
- v_plane + uv_offset,
- rgb_plane + rgb_offset,
- source_rect.width(),
- source_rect.height(),
- dest_rect.width(),
- dest_rect.height(),
- y_stride,
- uv_stride,
- rgb_stride,
- media::YV12,
- media::ROTATE_0,
- media::FILTER_NONE);
-}
-
void ConvertRGB32ToYUVWithRect(const uint8* rgb_plane,
uint8* y_plane,
uint8* u_plane,
« no previous file with comments | « remoting/base/util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698