From 479d19085d9b63f3dd96aa12dd7d9237b598d9b8 Mon Sep 17 00:00:00 2001 From: Urvang Joshi Date: Fri, 8 Jul 2016 15:44:38 -0700 Subject: [PATCH] webpmux: Also print compression info per frame. As per the user request: https://groups.google.com/a/webmproject.org/forum/#!topic/webp-discuss/dk9M-q1MFnw Change-Id: Id2540413a89e1f043e50abb0cec7c69367ee8325 --- examples/webpmux.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/webpmux.c b/examples/webpmux.c index 7acf9d7e..8d60c8ef 100644 --- a/examples/webpmux.c +++ b/examples/webpmux.c @@ -222,7 +222,7 @@ static WebPMuxError DisplayInfo(const WebPMux* mux) { int i; printf("No.: width height alpha x_offset y_offset "); if (is_anim) printf("duration dispose blend "); - printf("image_size\n"); + printf("image_size compression\n"); for (i = 1; i <= nFrames; i++) { WebPMuxFrameInfo frame; err = WebPMuxGetFrame(mux, i, &frame); @@ -243,7 +243,10 @@ static WebPMuxError DisplayInfo(const WebPMux* mux) { (frame.blend_method == WEBP_MUX_BLEND) ? "yes" : "no"; printf("%8d %10s %5s ", frame.duration, dispose, blend); } - printf("%10d\n", (int)frame.bitstream.size); + printf("%10d %11s\n", (int)frame.bitstream.size, + (features.format == 1) ? "lossy" : + (features.format == 2) ? "lossless" : + "undefined"); } WebPDataClear(&frame.bitstream); RETURN_IF_ERROR3("Failed to retrieve %s#%d\n", type_str, i);