Make the JDA unit tests save decoded output as .png instead of .yuv.
This CL changes the JpegClient::SaveToFile method in jpeg_decode_accelerator_unittest.cc so that it saves the decode result as a PNG file for easy visualization. Previously, the output was a .yuv file which couldn't be readily visualized. This makes the problem with odd-sized images more evident. Here are examples of the PNG output for three images (compared to a reference output which is the result of opening the original JPEG image in GIMP): - 80x46 JPEG (even-sized): Reference: https://drive.google.com/open?id=15hv1c4d2Iy1SPXxTk6575JPGhkGMEYnr Unit test: https://drive.google.com/open?id=1ZQtNkZzwvfIwp9kBsbwf301aIjY7zSmY - 81x46 JPEG (odd-sized): Reference: https://drive.google.com/open?id=1WB2gW0H4XB9T4-fkRIBygXvfpKkX1rxY Unit test: https://drive.google.com/open?id=1Zprc8UaPyVoYw7IWGngSmwXNEsyy__jQ - 80x45 JPEG (odd-sized): Reference: https://drive.google.com/open?id=1tnOQU4cvbtgIH5036pbb2qmaOLPBLOmK Unit test: https://drive.google.com/open?id=1XWXYnStEqTtLQPqDxZidaPIH4ShzDSaq The issue with odd-sized images will be corrected in follow-up CLs. Bug: 849776 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I50a8662544b014c6d26ed8017c1a20f2fdca329f Reviewed-on: https://chromium-review.googlesource.com/1087727 Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#565000}
Showing
Please register or sign in to comment