Skip to content
Discussion options

You must be logged in to vote

Hi Pietro,

I am happy to hear that you find the code useful.
Sorry for the late reply.

I think the you want to know the absolute maximum upper size of the compressed file, assuming lossless compression.
Let's say that the file has $X$ components. The total size, in bytes, would be

$$ \alpha \times \left( \frac{W_1 \times H_1 \times b_1} {8} + \frac{W_2 \times H_2 \times b_2} {8} + \ldots + \frac{W_X \times H_X \times b_X} {8} \right) $$

where $W_1$ is the width of the first component, $H_1$ is the height of the first component and $b_1$ is the bit depth of the first component (bit depth includes the sign bit, as is normally done in this context).

The factor $\alpha$ depends on the type of…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@piever
Comment options

Answer selected by piever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants