Caching and File Sizes

To calculate the uncompressed file size of an image, you multiply the image height by the width, and then multiply that result by the number of color channels in the image:

image

Note: The last variable (number of color channels) is typically three (RGB) or four (RGBA), depending on if you have an embedded alpha channel in the image or not.

Using the equation on a single D1 NTSC frame, you can see the following result:

image

This equates ...

Get The Focal Easy Guide to Combustion 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.