make histogram use 8 digits for all values for more consistent formatting.

BUG=394
TESTED=TestFullYUV
R=harryjin@google.com

Review URL: https://webrtc-codereview.appspot.com/34129004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1260 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
fbarchard@google.com 2015-02-04 20:00:38 +00:00
parent c4e032c543
commit 9d67669697
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1259
Version: 1260
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1259
#define LIBYUV_VERSION 1260
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -325,32 +325,32 @@ TEST_F(libyuvTest, TestFullYUV) {
}
if (step == 1) {
for (i = 0; i < 256; ++i) {
printf("red %d %d, green %d %d, blue %d %d\n",
printf("red %2d %2d, green %2d %2d, blue %2d %2d\n",
rn[i], rx[i], gn[i], gx[i], bn[i], bx[i]);
}
}
printf("hist\t");
for (i = 0; i < 256; ++i) {
if (rh[i] || gh[i] || bh[i]) {
printf("\t%d", i - 128);
printf("\t%8d", i - 128);
}
}
printf("\nred\t");
for (i = 0; i < 256; ++i) {
if (rh[i] || gh[i] || bh[i]) {
printf("\t%d", rh[i]);
printf("\t%8d", rh[i]);
}
}
printf("\ngreen\t");
for (i = 0; i < 256; ++i) {
if (rh[i] || gh[i] || bh[i]) {
printf("\t%d", gh[i]);
printf("\t%8d", gh[i]);
}
}
printf("\nblue\t");
for (i = 0; i < 256; ++i) {
if (rh[i] || gh[i] || bh[i]) {
printf("\t%d", bh[i]);
printf("\t%8d", bh[i]);
}
}
printf("\n");