makedng.1.scd 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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*
  12. Set the width and height of the source data. This is a required option.
  13. *-p 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*
  17. Set the camera Make and Model as a comma seperated string.
  18. *-s software*
  19. Set the name of the camera software used to take the picture.
  20. *-o orientation*
  21. Set the orientation of the image data as a number from 1-8 from the DNG
  22. specification.
  23. *-c dcp-file*
  24. Load a DCP calibration file and append the color profile to the final DNG.
  25. *-n red,green,blue*
  26. Set the neutral whitepoint for the picture as the 3 floating point gain values.
  27. *-b red,green,blue*
  28. Set the analog sensor gain for the three color channels as three comma seperated floats.
  29. *-e program*
  30. Set the exposure program in the EXIF data using one of the program numbers from the DNG spec.
  31. *-t seconds*
  32. Set the exposure time for the picture in seconds (eg. 0.01 for 1/100)
  33. # PIXEL FORMATS
  34. The pixel format argument accepts the following values:
  35. 8-bit bayer formatted data, this matches with MIPI RAW8:
  36. RGGB, SRGGB8: RG,GB bayer pixel data++
  37. GRBG, SGRBG8: GR,BG bayer pixel data++
  38. GBRG, SGBRG8: GB,RG bayer pixel data++
  39. BGGR, SBGGR8: BG,GR bayer pixel data
  40. 10-bit bayer formatted data. transmitted as 16-bit format in 8 bytes:
  41. RG10, SRGGB10: RG,GB bayer pixel data++
  42. BA10, SGRBG10: GR,BG bayer pixel data++
  43. GB10, SGBRG10: GB,RG bayer pixel data++
  44. BG10, SBGGR10: BG,GR bayer pixel data
  45. 10-bit bayer formatted data packed into 5 bytes, this matches with MIPI RAW10:
  46. pRAA, SRGGB10P: RG,GB bayer pixel data++
  47. pgAA, SGRBG10P: GR,BG bayer pixel data++
  48. pGAA, SGBRG10P: GB,RG bayer pixel data++
  49. pBAA, SBGGR10P: BG,GR bayer pixel data
  50. 12-bit bayer formatted data, transmitted as 16-bit format in 8 bytes:
  51. RG12, SRGGB12: RG,GB bayer pixel data++
  52. BA12, SGRBG12: GR,BG bayer pixel data++
  53. GB12, SGBRG12: GB,RG bayer pixel data++
  54. BG12, SBGGR12: BG,GR bayer pixel data
  55. 12-bit bayer formatted data packed into 6 bytes, this matches with MIPI RAW12:
  56. pRCC, SRGGB12P: RG,GB bayer pixel data++
  57. pgCC, SGRBG12P: GR,BG bayer pixel data++
  58. pGCC, SGBRG12P: GB,RG bayer pixel data++
  59. pBCC, SBGGR12P: BG,GR bayer pixel data
  60. 16-bit bayer formatted data:
  61. RG16, SRGGB16: RG,GB bayer pixel data++
  62. GR16, SGRBG16: GR,BG bayer pixel data++
  63. GB16, SGBRG16: GB,RG bayer pixel data++
  64. BYR2, SBGGR16: BG,GR bayer pixel data
  65. # EXPOSURE PROGRAMS
  66. The defined exposure programs in the DNG specification are:
  67. - 0: Undefined exposure program (default)
  68. - 1: Full manual program
  69. - 2: Full auto program
  70. - 3: Aperture priority
  71. - 4: Shutter priority
  72. - 5: Creative program
  73. - 6: Action program (fast shutter)
  74. - 7: Portrait program (Large aperture)
  75. - 8: Landscape program (Small aperture)