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

Unified Diff: webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc

Issue 2021843002: Delete unused code in webrtc_libyuv.cc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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 | « webrtc/modules/video_capture/video_capture_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
diff --git a/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc b/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
index d562dd4bb97e21f80726f3b3e54e55735982662c..1a38d0d59ff6188579e7b45b7c54dcad2d17810e 100644
--- a/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
@@ -132,9 +132,8 @@ class TestVp8Impl : public ::testing::Test {
const int kFramerate = 30;
codec_inst_.maxFramerate = kFramerate;
// Setting aligned stride values.
- int stride_uv = 0;
- int stride_y = 0;
- Calc16ByteAlignedStride(codec_inst_.width, &stride_y, &stride_uv);
+ int stride_y = 16 * ((codec_inst_.width + 15) / 16);
pbos-webrtc 2016/05/31 10:48:45 Pref copying the method here as well, this reads w
nisse-webrtc 2016/05/31 12:55:22 Done.
+ int stride_uv = 16 * ((codec_inst_.width + 31) / 32);
EXPECT_EQ(stride_y, 176);
EXPECT_EQ(stride_uv, 96);
« no previous file with comments | « webrtc/modules/video_capture/video_capture_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698