libwebp/examples
Yannis Guyon def64e920f cwebp: Fix -print_psnr for near_lossless
The output was always 99dB because the lossless pipeline is not
modifying the 'picture'. Changing that is not that simple because
near_lossless impacts both VP8ApplyNearLossless() and
ApplyPredictFilter(); the latter cannot be applied as is to the input
and thus the final modified 'picture' cannot be easily retrieved
without decoding the encoded bitstream. Hence ReadWebP() is called in
cwebp.c on the encoded bitstream kept in memory to get the correct
distortion.

However -get_psnr returns a different distortion than get_disto for
lossy encoding configurations because cwebp loads the source as YUV
while get_disto directly reads it as RGB without conversion loss.

Change-Id: I5c32cf8f89eb137973dc7eebda747682d921b8e2
2020-08-17 11:37:37 +02:00
..
Android.mk Android.mk: use LOCAL_EXPORT_C_INCLUDES w/public libs 2018-06-07 16:12:58 -07:00
anim_diff.c libwebp: Unicode command tools on Windows 2018-10-17 13:19:40 +02:00
anim_dump.c libwebp: Unicode command tools on Windows 2018-10-17 13:19:40 +02:00
anim_util.c Expose WebPMalloc() in addition to WebPFree() 2019-10-15 23:19:50 +02:00
anim_util.h gif2webp: fix transcode of loop count=65535 2018-05-11 12:10:25 -07:00
cwebp.c cwebp: Fix -print_psnr for near_lossless 2020-08-17 11:37:37 +02:00
dwebp.c Expose WebPMalloc() in addition to WebPFree() 2019-10-15 23:19:50 +02:00
example_util.c Expose WebPMalloc() in addition to WebPFree() 2019-10-15 23:19:50 +02:00
example_util.h extract the command-line parsing helpers to example_util 2018-02-08 08:11:31 +00:00
gif2webp.c cosmetics: normalize '*' association 2019-07-26 01:04:09 -07:00
gifdec.c Expose WebPMalloc() in addition to WebPFree() 2019-10-15 23:19:50 +02:00
gifdec.h gifdec: Move inclusion of webp/config.h to header. 2015-04-17 12:43:17 -07:00
img2webp.c img2webp: add help note about arguments from a file 2018-10-26 06:16:56 +00:00
Makefile.am libwebp: Remove duplicate GIFDisplayError in anim_util 2018-10-09 17:29:54 +02:00
stopwatch.h cosmetics: normalize include guard comment 2018-08-22 14:46:53 -07:00
test_ref.ppm lot of cosmetics 2010-11-17 20:09:47 -08:00
test.webp remove INAM, ICOP, ... chunks from the test webp file. 2012-07-19 17:34:04 -07:00
unicode_gif.h libwebp: Unicode command tools on Windows 2018-10-17 13:19:40 +02:00
unicode.h unicode,INIT_WARGV: add missing cast 2019-01-24 07:08:55 +00:00
vwebp.c cosmetics: normalize '*' association 2019-07-26 01:04:09 -07:00
webpinfo.c libwebp: Unicode command tools on Windows 2018-10-17 13:19:40 +02:00
webpmux.c Expose WebPMalloc() in addition to WebPFree() 2019-10-15 23:19:50 +02:00