From a5b78c81b5529dd8e339c7fc8dff5f9310b4f1da Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 29 Aug 2011 21:49:18 -0700 Subject: [PATCH] wrap alpha-related options under WEBP_EXPERIMENTAL_FEATURES flag Change-Id: I6d8f4b4ec7dca53054e28b969a536e7c93c1e5e2 --- examples/cwebp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/cwebp.c b/examples/cwebp.c index 67bdf9f8..1ac78535 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -679,8 +679,10 @@ static void HelpLong(void) { printf(" -partition_limit . limit quality to fit the 512k limit on\n"); printf(" " "the first partition (0=no degradation ... 100=full)\n"); +#ifdef WEBP_EXPERIMENTAL_FEATURES printf(" -alpha_comp ...... set the transparency-compression\n"); printf(" -noalpha ............... discard any transparency information.\n"); +#endif printf(" -pass ............ analysis pass number (1..10)\n"); printf(" -crop .. crop picture with the given rectangle\n"); printf(" -resize ........ resize picture (after any cropping)\n"); @@ -800,10 +802,12 @@ int main(int argc, const char *argv[]) { config.segments = strtol(argv[++c], NULL, 0); } else if (!strcmp(argv[c], "-partition_limit") && c < argc - 1) { config.partition_limit = strtol(argv[++c], NULL, 0); +#ifdef WEBP_EXPERIMENTAL_FEATURES } else if (!strcmp(argv[c], "-alpha_comp") && c < argc - 1) { config.alpha_compression = strtol(argv[++c], NULL, 0); } else if (!strcmp(argv[c], "-noalpha")) { keep_alpha = 0; +#endif } else if (!strcmp(argv[c], "-map") && c < argc - 1) { picture.extra_info_type = strtol(argv[++c], NULL, 0); #ifdef WEBP_EXPERIMENTAL_FEATURES