I'v got a bitmap 24bits, I am writing application in c++, MFC, I am using libjpeg for encoding the bitmap into jpeg file 24bits.
When this bitmap's width is M, and height is N.
How to estimate jpeg file size before saving it with certain quality factor N (0-100).
How can I do it ? Many thanks!
Is it possible to do this?
For example. I want to implement a slide bar, which represent save a current bitmap with certain quality factor N. A label is beside it. shows the approximate file size when decode the bitmap with this quality factor. When user move the slide bar. He can have a approximate preview of the filesize of the tobe saved jpeg file.