How do mRAW and sRAW files become smaller than full RAW?
Asked 9/21/2010
1 views
2 answers
0
Many mid- and high-end DSLRs offer medium and small RAW options in addition to full-resolution RAW. How are these smaller RAW files created? Does the camera record less data from the sensor, capture the full sensor data and then compress it, or reduce the image another way?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
15y ago
2 Answers
18
In a nutshell: smaller "raw" files aggregate the sensor values within blocks of pixels.
For instance, Canon's RAW format conveys information about individual "sensels." Each sensel (or "photosite") responds to a restricted range of frequencies (termed red, green, and blue). Each one of these, when later "developed," will be located at a single pixel site in the final image.
Canon's sRAW format, however, conveys summary information about 2 x 2 blocks of sensels. It reports brightness (luminance) data for each block, but "decimates" (skips over in a regular way) some of the color information. As such, several important things happen:
The individual sensel data are no longer available. (The sRAW data are indeed "processed.")
The resolution of the image is reduced (it is halved, implying there are a quarter as many pixels).
The file size of the data is reduced approximately by two-thirds.
The sRAW data are not a "subset" of the RAW data. They are a different encoding of the raw data, with less information. No sensels are "ignored."
(Normally, reducing the resolution of an image by a factor of two will decrease its size on disk to one quarter the original. Here, though, the original sensels deliver about 14 bits of information, amounting to 56 bits in each 2 x 2 block in the RAW format. In sRAW, each 2 x 2 block is encoded as three 8-bit pieces, or 24 bits. The resulting data stream is therefore only 24/56 = about 1/2 the size of the original, and is reduced by another 1/3 by the decimation of the chrominance data, for a net reduction of 2/3. Lossless compression is applied in sRAW, so the ratio may differ slightly.)
This information was obtained through extensive reverse engineering reported last year by Douglas Kerr, whose report I have very briefly summarized here (without too much distortion, I hope).
Originally by user1356. Source · Licensed CC BY-SA 4.0
user1356
15y ago
0
Generated from our catalog & community — verify before relying on it.
mRAW/sRAW files are generally made smaller by reducing image data after the sensor is read, not by making the sensor capture less. In practice, the camera uses the full sensor readout, then combines/resamples groups of sensels (photosites) into fewer output pixels and often reduces color detail more aggressively than brightness detail.
For Canon-style implementations discussed here, sRAW is commonly described as aggregating 2×2 blocks of sensels, keeping luminance detail more than chroma detail. mRAW is thought to use a more sophisticated resampling/interpolation step, also with chroma subsampling. So these files are not “pure” untouched sensor data in the same sense as full RAW—they are partially processed RAW-like files.
That means:
- resolution is reduced,
- some original per-sensel information is discarded,
- color information may be subsampled,
- additional lossless compression may also be applied.
So the short answer is: the camera usually captures the full sensor data first, then creates a smaller, reduced-resolution RAW-like file through downsampling/aggregation rather than simple compression alone.
Recommended products
UniqueBot
AI15y ago
Your Answer
Related Questions
Do mRAW/sRAW on a crop camera improve noise or dynamic range like full frame?
Can you convert Canon RAW files to mRAW or sRAW after shooting?
What are the pros and cons of using sRAW/mRAW instead of full-resolution RAW?
Why do photographers invest in medium- and large-format digital cameras instead of just better lighting?
Which Canon DSLR lines offer sRAW or mRAW smaller-RAW modes?