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
8 * be found in the AUTHORS file in the root of the source tree.8 * be found in the AUTHORS file in the root of the source tree.
9 */9 */
10 10
11#include "vpx_config.h"11#include "./vpx_config.h"
12#include "test/codec_factory.h"12#include "test/codec_factory.h"
13#include "test/encode_test_driver.h"13#include "test/encode_test_driver.h"
14#include "test/decode_test_driver.h"14#include "test/decode_test_driver.h"
@@ -114,19 +114,19 @@ static bool compare_img(const vpx_image_t *img1, · 99 unmodified lines
114 const unsigned int height_y = img1->d_h;114 const unsigned int height_y = img1->d_h;
115 unsigned int i;115 unsigned int i;
116 for (i = 0; i < height_y; ++i)116 for (i = 0; i < height_y; ++i)
117 match = ( memcmp(img1->planes[VPX_PLANE_Y] + i * img1->stride[VPX_PLANE_Y],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],118 img2->planes[VPX_PLANE_Y] + i * img2->stride[VPX_PLANE_Y],
119 width_y) == 0) && match;119 width_y) == 0) && match;
120 const unsigned int width_uv = (img1->d_w + 1) >> 1;120 const unsigned int width_uv = (img1->d_w + 1) >> 1;
121 const unsigned int height_uv = (img1->d_h + 1) >> 1;121 const unsigned int height_uv = (img1->d_h + 1) >> 1;
122 for (i = 0; i < height_uv; ++i)122 for (i = 0; i < height_uv; ++i)
123 match = ( memcmp(img1->planes[VPX_PLANE_U] + i * img1->stride[VPX_PLANE_U],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],124 img2->planes[VPX_PLANE_U] + i * img2->stride[VPX_PLANE_U],
125 width_uv) == 0) && match;125 width_uv) == 0) && match;
126 for (i = 0; i < height_uv; ++i)126 for (i = 0; i < height_uv; ++i)
127 match = ( memcmp(img1->planes[VPX_PLANE_V] + i * img1->stride[VPX_PLANE_V],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],128 img2->planes[VPX_PLANE_V] + i * img2->stride[VPX_PLANE_V],
129 width_uv) == 0) && match;129 width_uv) == 0) && match;
130 return match;130 return match;
131}131}
132 132

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