table of contents
| makedng(1) | General Commands Manual | makedng(1) |
NAME¶
makedng - pack raw sensor data into a dng file with metadata
SYNOPSIS¶
makedng [OPTIONS] input-file output-file
OPTIONS := { -w width | -h height | -p pixfmt | -m make,model | -s software | -o orientation | -n r,g,b | -b r,g,b | -e program }
DESCRIPTION¶
Read raw sensor data from a file and generate a DNG 1.4 compliant file with the metadata to correctly render the file.
OPTIONS¶
-w width, -h height, --width width, --height height
-p pixelfmt, --pixfmt pixelfmt
-m make,model, --model make,model
-s software, --software software
-o orientation, --orientation orientation
-c dcp-file, --calibration dcp-file
-n red,green,blue, --neutral red,green,blue
-b red,green,blue, --balance red,green,blue
-e program, --program program
-t seconds, --exposure seconds
-i iso-speed, --iso iso-speed
-f fnumber, --fnumber fnumber
-l focal-length,crop-factor | -l focal-length, --focal-length len,crop, --focal-length len
PIXEL FORMATS¶
The pixel format argument accepts the following values:
8-bit bayer formatted data, this matches with MIPI RAW8:
GRBG, SGRBG8: GR,BG bayer pixel data
GBRG, SGBRG8: GB,RG bayer pixel data
BGGR, SBGGR8: BG,GR bayer pixel data
10-bit bayer formatted data. transmitted as 16-bit format in 8 bytes:
BA10, SGRBG10: GR,BG bayer pixel data
GB10, SGBRG10: GB,RG bayer pixel data
BG10, SBGGR10: BG,GR bayer pixel data
10-bit bayer formatted data packed into 5 bytes, this matches with MIPI RAW10:
pgAA, SGRBG10P: GR,BG bayer pixel data
pGAA, SGBRG10P: GB,RG bayer pixel data
pBAA, SBGGR10P: BG,GR bayer pixel data
12-bit bayer formatted data, transmitted as 16-bit format in 8 bytes:
BA12, SGRBG12: GR,BG bayer pixel data
GB12, SGBRG12: GB,RG bayer pixel data
BG12, SBGGR12: BG,GR bayer pixel data
12-bit bayer formatted data packed into 6 bytes, this matches with MIPI RAW12:
pgCC, SGRBG12P: GR,BG bayer pixel data
pGCC, SGBRG12P: GB,RG bayer pixel data
pBCC, SBGGR12P: BG,GR bayer pixel data
16-bit bayer formatted data:
GR16, SGRBG16: GR,BG bayer pixel data
GB16, SGBRG16: GB,RG bayer pixel data
BYR2, SBGGR16: BG,GR bayer pixel data
EXPOSURE PROGRAMS¶
The defined exposure programs in the DNG specification are:
- 0: Undefined exposure program (default)
- 1: Full manual program
- 2: Full auto program
- 3: Aperture priority
- 4: Shutter priority
- 5: Creative program
- 6: Action program (fast shutter)
- 7: Portrait program (Large aperture)
- 8: Landscape program (Small aperture)
| 2025-11-11 | makedng |