Calculator: Uncompressed image memory
Enter the labelled inputs to calculate: Value (byte); Value (MB); Value (MiB); Bytes per row (byte).
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
B=H·⌈Wb/8⌉; MB=B/10⁶; MiB=B/2²⁰
Image rows are packed to whole bytes without extra row alignment. PCM samples use ceil(bits/8) bytes per channel and floor(rate×duration) sample frames. No compression or file headers are included. Video uses constant average bitrates and a user-supplied overhead percentage. MB is decimal; MiB is binary.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
B=H·⌈Wb/8⌉; MB=B/10⁶; MiB=B/2²⁰
What assumptions apply?
Image rows are packed to whole bytes without extra row alignment. PCM samples use ceil(bits/8) bytes per channel and floor(rate×duration) sample frames. No compression or file headers are included. Video uses constant average bitrates and a user-supplied overhead percentage. MB is decimal; MiB is binary.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Pixels W (px) = 1920
Pixels H (px) = 1080
Bit width (bit/px) = 24
|
Value (byte): 6220800
Value (MB): 6.2208
Value (MiB): 5.932617188
Bytes per row (byte): 5760
|
| 2 |
Pixels W (px) = 4000
Pixels H (px) = 3000
Bit width (bit/px) = 48
|
Value (byte): 72000000
Value (MB): 72
Value (MiB): 68.66455078
Bytes per row (byte): 24000
|
| 3 |
Pixels W (px) = 101
Pixels H (px) = 50
Bit width (bit/px) = 1
|
Value (byte): 650
Value (MB): 0.00065
Value (MiB): 0.0006198883057
Bytes per row (byte): 13
|
Sources
- The International System of Units (SI), 9th edition (2019) — SI Brochure — Bureau International des Poids et Mesures (BIPM)
- Prefixes for binary multiples (IEC 60027-2: kibi, mebi, gibi…) — National Institute of Standards and Technology