From 0b3bbc7f5e232324d5d397f7a43284d33f44880a Mon Sep 17 00:00:00 2001 From: psi Date: Tue, 3 Mar 2020 14:57:18 +0900 Subject: [PATCH] Alpha image size can be different from the primary one. See: https://github.com/AOMediaCodec/av1-avif/issues/68 --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e26460a..250aa72 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,9 +223,9 @@ int _main(int argc, char** argv) { unsigned int elapsed = decodeImageAt(log, res, alphaID.value(), ctx, alphaImg.value()); log.info(" Decoded: %s -> %s in %d [ms] (Alpha image)", inputFilename, outputFilename, elapsed); if(alphaImg.value().p.w != primaryImg.p.w || alphaImg.value().p.h != primaryImg.p.h) { - // TODO(ledyba-z): Can alpha image and primary image be different size? + // TODO(ledyba-z): It is okay to alpha image and primary image are different sizes. // see: https://github.com/AOMediaCodec/av1-avif/issues/68 - log.fatal("Alpha size (%d x %d) does not match to primary image(%d x %d).", + log.fatal("Currently, alpha image whose size (%d x %d) does not match to primary image (%d x %d) is not supported.", alphaImg.value().p.w, alphaImg.value().p.h, primaryImg.p.w, primaryImg.p.h); } if(outputAlphaFilename.has_value()) { @@ -233,7 +233,7 @@ int _main(int argc, char** argv) { saveImage(log, outputAlphaFilename.value(), fileBox, alphaImg.value(), empty); log.info(" Extracted: %s -> %s (Alpha image)", inputFilename, outputAlphaFilename.value()); } - }else{ + } else { if(outputAlphaFilename.has_value()) { log.fatal("%s does not have alpha plane.", inputFilename); }