History

cleanup cpplint warnings

Suggested by James Zern to clear out cpplint warnings for all unit test code.

Yaowu Xu committed 13 years ago

Commit afffa3d1 parent e4e864527 files · +112 −102Browse files

Showing the changes to test/encode_test_driver.cc (1 of 27 files). Show all

Unified · Split

test/encode_test_driver.cc+10−10
@@ -8,7 +8,7 @@ · 7 unmodified lines
88 * be found in the AUTHORS file in the root of the source tree.
99 */
1010
11−#include "vpx_config.h"
11+#include "./vpx_config.h"
1212 #include "test/codec_factory.h"
1313 #include "test/encode_test_driver.h"
1414 #include "test/decode_test_driver.h"
@@ -114,19 +114,19 @@ static bool compare_img(const vpx_image_t *img1, · 99 unmodified lines
114114 const unsigned int height_y = img1->d_h;
115115 unsigned int i;
116116 for (i = 0; i < height_y; ++i)
117− match = ( memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y],
118− img2->planes[VPX_PLANE_Y] + i * img2->stride[VPX_PLANE_Y],
119− width_y) == 0) && match;
117+ match = (memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y],
118+ img2->planes[VPX_PLANE_Y] + i * img2->stride[VPX_PLANE_Y],
119+ width_y) == 0) && match;
120120 const unsigned int width_uv = (img1->d_w + 1) >> 1;
121121 const unsigned int height_uv = (img1->d_h + 1) >> 1;
122122 for (i = 0; i < height_uv; ++i)
123− match = ( memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U],
124− img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U],
125− width_uv) == 0) && match;
123+ match = (memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U],
124+ img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U],
125+ width_uv) == 0) && match;
126126 for (i = 0; i < height_uv; ++i)
127− match = ( memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V],
128− img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V],
129− width_uv) == 0) && match;
127+ match = (memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V],
128+ img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V],
129+ width_uv) == 0) && match;
130130 return match;
131131 }
132132

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t