makedng.1.scd 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 }
  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. # PIXEL FORMATS
  26. The pixel format argument accepts the following values:
  27. 8-bit bayer formatted data, this matches with MIPI RAW8:
  28. RGGB, SRGGB8: RG,GB bayer pixel data++
  29. GRBG, SGRBG8: GR,BG bayer pixel data++
  30. GBRG, SGBRG8: GB,RG bayer pixel data++
  31. BGGR, SBGGR8: BG,GR bayer pixel data
  32. 10-bit bayer formatted data. transmitted as 16-bit format in 8 bytes:
  33. RG10, SRGGB10: RG,GB bayer pixel data++
  34. BA10, SGRBG10: GR,BG bayer pixel data++
  35. GB10, SGBRG10: GB,RG bayer pixel data++
  36. BG10, SBGGR10: BG,GR bayer pixel data
  37. 10-bit bayer formatted data packed into 5 bytes, this matches with MIPI RAW10:
  38. pRAA, SRGGB10P: RG,GB bayer pixel data++
  39. pgAA, SGRBG10P: GR,BG bayer pixel data++
  40. pGAA, SGBRG10P: GB,RG bayer pixel data++
  41. pBAA, SBGGR10P: BG,GR bayer pixel data
  42. 12-bit bayer formatted data, transmitted as 16-bit format in 8 bytes:
  43. RG12, SRGGB12: RG,GB bayer pixel data++
  44. BA12, SGRBG12: GR,BG bayer pixel data++
  45. GB12, SGBRG12: GB,RG bayer pixel data++
  46. BG12, SBGGR12: BG,GR bayer pixel data
  47. 12-bit bayer formatted data packed into 6 bytes, this matches with MIPI RAW12:
  48. pRCC, SRGGB12P: RG,GB bayer pixel data++
  49. pgCC, SGRBG12P: GR,BG bayer pixel data++
  50. pGCC, SGBRG12P: GB,RG bayer pixel data++
  51. pBCC, SBGGR12P: BG,GR bayer pixel data
  52. 16-bit bayer formatted data:
  53. RG16, SRGGB16: RG,GB bayer pixel data++
  54. GR16, SGRBG16: GR,BG bayer pixel data++
  55. GB16, SGBRG16: GB,RG bayer pixel data++
  56. BYR2, SBGGR16: BG,GR bayer pixel data