makedng.1.scd 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. makedng(1) "makedng"
  2. # NAME
  3. makedng - pack raw sensor data into a dng file with metadata
  4. # SYNOPSIS
  5. makedng [OPTIONS] input-file output-file
  6. OPTIONS := { -w width | -h height | -p pixfmt | -m make,model | -s software | -o orientation | -n r,g,b | -b r,g,b | -e program }
  7. # DESCRIPTION
  8. Read raw sensor data from a file and generate a DNG 1.4 compliant file with the
  9. metadata to correctly render the file.
  10. # OPTIONS
  11. *-w width*, *-h height*, *--width width*, *--height height*
  12. Set the width and height of the source data. This is a required option.
  13. *-p pixelfmt*, *--pixfmt pixelfmt*
  14. Set the pixelformat for the source data. This accepts a V4L2 fourcc code or
  15. the V4L constant name like "RGGB" and "SRGGB8". This is a required option.
  16. *-m make,model*, *--model make,model*
  17. Set the camera Make and Model as a comma seperated string.
  18. *-s software*, *--software software*
  19. Set the name of the camera software used to take the picture.
  20. *-o orientation*, *--orientation orientation*
  21. Set the orientation of the image data as a number from 1-8 from the DNG
  22. specification.
  23. *-c dcp-file*, *--calibration dcp-file*
  24. Load a DCP calibration file and append the color profile to the final DNG.
  25. *-n red,green,blue*, *--neutral red,green,blue*
  26. Set the neutral whitepoint for the picture as the 3 floating point gain values.
  27. *-b red,green,blue*, *--balance red,green,blue*
  28. Set the analog sensor gain for the three color channels as three comma seperated floats.
  29. *-e program*, *--program program*
  30. Set the exposure program in the EXIF data using one of the program numbers from the DNG spec.
  31. *-t seconds*, *--exposure seconds*
  32. Set the exposure time for the picture in seconds (eg. 0.01 for 1/100)
  33. *-i iso-speed*, *--iso iso-speed*
  34. Set the ISO speed rating for the picture
  35. *-f fnumber*, *--fnumber fnumber*
  36. Set the aperture size, or f-number of the picture (2.2 for f/2.2)
  37. *-l focal-length,crop-factor* | *-l focal-length*, *--focal-length len,crop*, *--focal-length len*
  38. Set the focal length for the lens. If no crop factor for the system is supplied a 35mm full-frame sensor is assumed.
  39. # PIXEL FORMATS
  40. The pixel format argument accepts the following values:
  41. 8-bit bayer formatted data, this matches with MIPI RAW8:
  42. RGGB, SRGGB8: RG,GB bayer pixel data++
  43. GRBG, SGRBG8: GR,BG bayer pixel data++
  44. GBRG, SGBRG8: GB,RG bayer pixel data++
  45. BGGR, SBGGR8: BG,GR bayer pixel data
  46. 10-bit bayer formatted data. transmitted as 16-bit format in 8 bytes:
  47. RG10, SRGGB10: RG,GB bayer pixel data++
  48. BA10, SGRBG10: GR,BG bayer pixel data++
  49. GB10, SGBRG10: GB,RG bayer pixel data++
  50. BG10, SBGGR10: BG,GR bayer pixel data
  51. 10-bit bayer formatted data packed into 5 bytes, this matches with MIPI RAW10:
  52. pRAA, SRGGB10P: RG,GB bayer pixel data++
  53. pgAA, SGRBG10P: GR,BG bayer pixel data++
  54. pGAA, SGBRG10P: GB,RG bayer pixel data++
  55. pBAA, SBGGR10P: BG,GR bayer pixel data
  56. 12-bit bayer formatted data, transmitted as 16-bit format in 8 bytes:
  57. RG12, SRGGB12: RG,GB bayer pixel data++
  58. BA12, SGRBG12: GR,BG bayer pixel data++
  59. GB12, SGBRG12: GB,RG bayer pixel data++
  60. BG12, SBGGR12: BG,GR bayer pixel data
  61. 12-bit bayer formatted data packed into 6 bytes, this matches with MIPI RAW12:
  62. pRCC, SRGGB12P: RG,GB bayer pixel data++
  63. pgCC, SGRBG12P: GR,BG bayer pixel data++
  64. pGCC, SGBRG12P: GB,RG bayer pixel data++
  65. pBCC, SBGGR12P: BG,GR bayer pixel data
  66. 16-bit bayer formatted data:
  67. RG16, SRGGB16: RG,GB bayer pixel data++
  68. GR16, SGRBG16: GR,BG bayer pixel data++
  69. GB16, SGBRG16: GB,RG bayer pixel data++
  70. BYR2, SBGGR16: BG,GR bayer pixel data
  71. # EXPOSURE PROGRAMS
  72. The defined exposure programs in the DNG specification are:
  73. - 0: Undefined exposure program (default)
  74. - 1: Full manual program
  75. - 2: Full auto program
  76. - 3: Aperture priority
  77. - 4: Shutter priority
  78. - 5: Creative program
  79. - 6: Action program (fast shutter)
  80. - 7: Portrait program (Large aperture)
  81. - 8: Landscape program (Small aperture)