Version 0.53 (21nov2024)
(this is work in progress)
This document describes RAW file formats used by Sony cameras, with extensions SRF, SR2, ARW and ARQ, from 2004 to today.
All formats are based on TIFF format, with Intel (little) endianess ('II' marker). SRF appeared in January 2004 (DSC-F828), SR2 in December 2005 (DSC-R1) and ARW in July 2006 with Alpha DSLR-A100.
ARQ, pixel shifting, appeared in November 2017 (A7R III).
Evolution of Sony RAW formatsSRF likely stands for Sony Raw File, SR2 is version 2 of SRF, and ARW means Alpha RAW.
RAW versions and formats had additional features over time:
SRF, SR2 and ARW 1.0 : 12 bits uncompressed
ARW 2.1 : 12 bits cRAW (11 bits + 7 bits). Lossy. 2008
ARW 2.3 : 14 bits. (2012)
ARW 4.0 : lossless compression (2021). A1 also introduces YUV420 burst format, which is lossy.
Here is a more detailed view of evolution, and links to implementations:
Model Release date RAW format dcraw / libraw support DSC-F828 jan2004 SRF.You can extract format information with Exiftool with -FileFormat :
> exiftool -FileFormat -SonyModelID -RAWFileType RAW_SONY_A100.ARW
File Format : ARW 1.0
Sony Model ID : DSLR-A100
> exiftool -FileFormat -SonyModelID -RAWFileType A1_DSC02244.ARW
File Format : ARW 4.0
Sony Model ID : ILCE-1
RAW File Type : Uncompressed RAW
> exiftool -FileFormat -SonyModelID -RAWFileType DSC00987_a1_ii.ARW
File Format : ARW 5.0.1
Sony Model ID : Unknown (400)
RAW File Type : Lossless Compressed RAW
Based on dcraw and dnglab code source, there are 4 different kind of compression:
"Compressed" is used by Sony, where this is "lossy".
"Uncompressed" is used when it is "lossless".
But there is lossless compression ! They waited 2021 to adopt lossless jpeg when Canon use it since 2004 !
Below are examples of TIFF structure for SRF, SR2 and some ARW versions.
from http://rawsamples.ch/raws/sony/RAW_SONY_DSC-F828.SRF (Exiftool output: RAW_SONY_DSC-F828.SRF.txt)
IFD0 (15 entries)
SubfileType = 1
SubIFD (19 entries)
EXIF Subdir (30 entries)
SR2Private Subdir ( 6 entries)
IFD1 (11 entries)
See http://www.rawsamples.ch/raws/sony/r1/RAW_SONY_R1.SR2 (Exiftool : RAW_SONY_R1.txt)
See http://www.rawsamples.ch/raws/sony/a100/RAW_SONY_A100.ARW (Exiftool: RAW_SONY_A100.txt)
Dated July 2021
Exiftool : SONY_A9_DSC04458.txt
ARQ likely means Alpha Raw Quad shots, which uses pixel shifting to capture high resolution pictures by combining 4 ARW pictures. This features is available with A7R III and requires Sony software Image Edge. See also Pixel Shift Multi Shooting | SONY.
Supported by RawDigger 1.2.24 and Lightroom Classic CC 7.3.
>exiftool -FileFormat -RAWFileType -BitsPerSample -PixelShiftInfo "Sony-ILCE-7RM3.tif"
File Format : ARW 2.3.5
RAW File Type : Uncompressed RAW
Bits Per Sample : 14
Pixel Shift Info : Group 12094102, Composed 4-shot (0x3c3)
RawDigger: detecting posterization in SONY cRAW/ARW2 files | RawDigger, Iliah Borg, June 2014
Sony ARW2 Compression: Artifacts And Credible Repair, Henry Gordon Dietz, Kentucky Univ, 2016, https://library.imaging.org/admin/apis/public/api/sandbox/website/downloadArticle/ei/28/2/art00020
Sony, What shooting settings affect RAW image bit sizes (14 bits to 12bits)?
Rawdigger, 23jan2018, SonyPixelShift2DNG (Beta 0.8): Convert Sony A7R-III Pixel Shift Mode Shots to DNG | FastRawViewer
ExifTool, Phil Harvey, https://exiftool.org/TagNames/Sony.html
Libraw : LibRaw/decoders_dcraw.cpp at master · LibRaw/LibRaw · GitHub
Sony : https://imagingedge.sony.net
Phase One
Camera Raw
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4