Support Support Home » APIs » RAW to DNG » RAW to DNG manual

RAW to DNG manual

RAW to DNG return values

  • DNG_OK - Function call succeeded
  • DNG_INVALID_PARAM - Invalid input parameter

RAW to DNG supported EXIF tag values

  • IMAGE_DESC - Image title, string
  • MODEL - Model of image input equipment, string
  • USERCOMMENT - User comment, string
  • SERIAL - Camera serial number, string
  • GAIN - Camera gain, UINT32
  • EXPOSURE - Exposure time in microseconds, UINT32

RAW to DNG functions

raw_to_dng_setTagInt

Description:
Set integer EXIF tag value. Returns DNG_OK on success, error value otherwise.

Parameters:
  • tagType - Tag type to be set, see supported tag values
  • tagVal - Tag value to be set

C Prototype:

int raw_to_dng_setTagInt(int tagType, int tagVal);

raw_to_dng_setTagString

Description:
Set string EXIF tag value. Returns DNG_OK on success, error value otherwise.

Parameters:
  • tagType - Tag type to be set, see supported tag values
  • tagVal - Tag value to be set
int raw_to_dng_setTagString(int tagType, char* tagVal);

raw_to_dng_process

Description:
Process RAW data into DNG image. Returns DNG_OK on success, error value otherwise.
Parameters:
  • rawData - Pointer to raw data buffer
  • isColor - True for color RAW data, false for monochrome RAW data
  • imageName - Name for output DNG image (e.g. output.DNG)
  • width - Width of output image
  • height - Height of output image
  • bitDepth - Bits per pixel
  • bayerMosaic - Bayer mosaic of RAW data, see bayer_mosaic enum
int raw_to_dng_process(void* rawData, bool isColor, char* imageName, 
                       int width, int height, int bitDepth, int bayerMosaic);