makedng.1.scd 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. # PIXEL FORMATS
  32. The pixel format argument accepts the following values:
  33. 8-bit bayer formatted data, this matches with MIPI RAW8:
  34. RGGB, SRGGB8: RG,GB bayer pixel data++
  35. GRBG, SGRBG8: GR,BG bayer pixel data++
  36. GBRG, SGBRG8: GB,RG bayer pixel data++
  37. BGGR, SBGGR8: BG,GR bayer pixel data
  38. 10-bit bayer formatted data. transmitted as 16-bit format in 8 bytes:
  39. RG10, SRGGB10: RG,GB bayer pixel data++
  40. BA10, SGRBG10: GR,BG bayer pixel data++
  41. GB10, SGBRG10: GB,RG bayer pixel data++
  42. BG10, SBGGR10: BG,GR bayer pixel data
  43. 10-bit bayer formatted data packed into 5 bytes, this matches with MIPI RAW10:
  44. pRAA, SRGGB10P: RG,GB bayer pixel data++
  45. pgAA, SGRBG10P: GR,BG bayer pixel data++
  46. pGAA, SGBRG10P: GB,RG bayer pixel data++
  47. pBAA, SBGGR10P: BG,GR bayer pixel data
  48. 12-bit bayer formatted data, transmitted as 16-bit format in 8 bytes:
  49. RG12, SRGGB12: RG,GB bayer pixel data++
  50. BA12, SGRBG12: GR,BG bayer pixel data++
  51. GB12, SGBRG12: GB,RG bayer pixel data++
  52. BG12, SBGGR12: BG,GR bayer pixel data
  53. 12-bit bayer formatted data packed into 6 bytes, this matches with MIPI RAW12:
  54. pRCC, SRGGB12P: RG,GB bayer pixel data++
  55. pgCC, SGRBG12P: GR,BG bayer pixel data++
  56. pGCC, SGBRG12P: GB,RG bayer pixel data++
  57. pBCC, SBGGR12P: BG,GR bayer pixel data
  58. 16-bit bayer formatted data:
  59. RG16, SRGGB16: RG,GB bayer pixel data++
  60. GR16, SGRBG16: GR,BG bayer pixel data++
  61. GB16, SGBRG16: GB,RG bayer pixel data++
  62. BYR2, SBGGR16: BG,GR bayer pixel data
  63. # EXPOSURE PROGRAMS
  64. The defined exposure programs in the DNG specification are:
  65. - 0: Undefined exposure program (default)
  66. - 1: Full manual program
  67. - 2: Full auto program
  68. - 3: Aperture priority
  69. - 4: Shutter priority
  70. - 5: Creative program
  71. - 6: Action program (fast shutter)
  72. - 7: Portrait program (Large aperture)
  73. - 8: Landscape program (Small aperture)