anibali / pywebp

Python bindings for WebP
MIT License
74 stars 24 forks source link

how to calculate rate and distortion #36

Closed achel-x closed 2 years ago

achel-x commented 2 years ago

hi, i wonder if this package could encode an raw to bitstream, and in turn. if could, does it can calculate bpp and psnr?

anibali commented 2 years ago

WebPAuxStats (stats field of WebPPicture) does not currently have bindings implemented, so it is not possible to get BPP and PSNR in pywebp.