From 587f0b86098eae3b6c90356389f1e7f08f065deb Mon Sep 17 00:00:00 2001 From: Shivam Kumar Jha Date: Wed, 7 Mar 2018 01:05:09 +0530 Subject: [PATCH] Display quantisation mode in info box (#954) --- src/lib_ccx/params_dump.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/lib_ccx/params_dump.c b/src/lib_ccx/params_dump.c index f6f3850e1..8c1dcd128 100644 --- a/src/lib_ccx/params_dump.c +++ b/src/lib_ccx/params_dump.c @@ -188,6 +188,23 @@ void params_dump(struct lib_ccx_ctx *ctx) (long) (ccx_options.enc_cfg.endcreditsforatmost.time_in_ms/1000) ); } + // print quantisation mode used + mprint("[Quantisation-mode: "); + switch(ccx_options.ocr_quantmode) + { + case 0: + // when no quantisation + mprint("None]\n"); + break; + case 1: + // default mode, CCExtractor's internal function + mprint("CCExtractor's internal function]\n"); + break; + case 2: + // reduced color palette quantisation + mprint("Reduced color palette]\n"); + break; + } } #define Y_N(cond) ((cond) ? "Yes" : "No")