add suggested decode color type to colorspaceinfo
E.g. ~/skia (decode-as|✚1…) $ ninja -C out/ colorspaceinfo; and out/colorspaceinfo --input ~/Downloads/prophoto.png ninja: Entering directory `out/' [2/2] link colorspaceinfo SkCodec would naturally decode as colorType=RGBA_8888 Color Profile Description: "Google/Skia/215028B4833C240E0583AFE600C80A79" ... Change-Id: Id36efadaa84e9ffa5d67153e074be8a8426b6c42 Reviewed-on: https://skia-review.googlesource.com/26140 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
97d6a7af80
commit
fd51b2ba45
@ -465,6 +465,8 @@ int main(int argc, char** argv) {
|
||||
} else {
|
||||
codec.reset(SkCodec::NewFromData(data));
|
||||
colorSpace = sk_ref_sp(codec->getInfo().colorSpace());
|
||||
SkDebugf("SkCodec would naturally decode as colorType=%s\n",
|
||||
sk_tool_utils::colortype_name(codec->getInfo().colorType()));
|
||||
}
|
||||
|
||||
if (!colorSpace) {
|
||||
|
Loading…
Reference in New Issue
Block a user