Suggested by James Zern to clear out cpplint warnings for all unit test code.
Showing the changes to test/encode_test_driver.cc (1 of 27 files). Show all
Unified · Split
| @@ -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 | ||