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

Unified Diff: remoting/base/decoder_vp8.cc

Issue 9138050: Merge 117748 - Linear sub-rectangle scaler for use in Chromoting. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: 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 | « media/tools/scaler_bench/scaler_bench.cc ('k') | remoting/base/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/decoder_vp8.cc
===================================================================
--- remoting/base/decoder_vp8.cc (revision 118600)
+++ remoting/base/decoder_vp8.cc (working copy)
@@ -230,16 +230,22 @@
if (!output_rect.intersect(clip_rect))
continue;
- // The scaler will not read outside the input dimensions.
- ScaleYUVToRGB32WithRect(last_image_->planes[0],
- last_image_->planes[1],
- last_image_->planes[2],
- output_rgb_buf,
- input_rects[i],
- output_rect,
- last_image_->stride[0],
- last_image_->stride[1],
- output_stride);
+ // The scaler will not to read outside the input dimensions.
+ media::ScaleYUVToRGB32WithRect(last_image_->planes[0],
+ last_image_->planes[1],
+ last_image_->planes[2],
+ output_rgb_buf,
+ image_size.width(),
+ image_size.height(),
+ output_size_.width(),
+ output_size_.height(),
+ output_rect.x(),
+ output_rect.y(),
+ output_rect.right(),
+ output_rect.bottom(),
+ last_image_->stride[0],
+ last_image_->stride[1],
+ output_stride);
output_rects->push_back(output_rect);
}
}
« no previous file with comments | « media/tools/scaler_bench/scaler_bench.cc ('k') | remoting/base/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698