Commit 9d676696 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent c4e032c5
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1259
Version: 1260
License: BSD
License File: LICENSE
......
......@@ -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
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment