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

Unified Diff: media/base/video_frame_impl_unittest.cc

Issue 113407: ScaleYV12 optimization.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/renderer/media/video_renderer_impl.cc ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame_impl_unittest.cc
===================================================================
--- media/base/video_frame_impl_unittest.cc (revision 16299)
+++ media/base/video_frame_impl_unittest.cc (working copy)
@@ -42,15 +42,16 @@
EXPECT_EQ(rgb_surface.height, yuv_surface.height);
EXPECT_EQ(rgb_surface.planes, expect_rgb_planes);
- media::ConvertYV12ToRGB32(yuv_surface.data[VideoSurface::kYPlane],
- yuv_surface.data[VideoSurface::kUPlane],
- yuv_surface.data[VideoSurface::kVPlane],
- rgb_surface.data[VideoSurface::kRGBPlane],
- rgb_surface.width,
- rgb_surface.height,
- yuv_surface.strides[VideoSurface::kYPlane],
- yuv_surface.strides[VideoSurface::kUPlane],
- rgb_surface.strides[VideoSurface::kRGBPlane]);
+ media::ConvertYUVToRGB32(yuv_surface.data[VideoSurface::kYPlane],
+ yuv_surface.data[VideoSurface::kUPlane],
+ yuv_surface.data[VideoSurface::kVPlane],
+ rgb_surface.data[VideoSurface::kRGBPlane],
+ rgb_surface.width,
+ rgb_surface.height,
+ yuv_surface.strides[VideoSurface::kYPlane],
+ yuv_surface.strides[VideoSurface::kUPlane],
+ rgb_surface.strides[VideoSurface::kRGBPlane],
+ media::YV12);
for (size_t row = 0; row < rgb_surface.height; ++row) {
uint32* rgb_row_data = reinterpret_cast<uint32*>(
« no previous file with comments | « chrome/renderer/media/video_renderer_impl.cc ('k') | media/base/yuv_convert.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698