Namespace: Rx::Codec – Class: CDng – Header: Rx.Codec/Dng.h

CDng Class

C++
#include "Rx.Codec/Dng.h"
class CDng : public IImageCodec

DNG codec to read and write DNG images.

Constructors

CDng()

Default constructor.

Destructor

~CDng()

Destructor.

Methods

Encode(pTrgMem, xSrcImg)

Encodes the given image and stores the encoded data in the given memory.

Parameters

[Rx::IMemory*] pTrgMem

[out] The encoded memory.

[const CRxImage&] xSrcImg

The image.

Decode(xTrgImg, pSrcMem)

Decodes the data in the given memory and stores the result in the given image.

Parameters

[CRxImage&] xTrgImg

[out] The decodec image.

[const Rx::IMemoryAccess*] pSrcMem

The encodec memory.

GetCodecName()

Gets the codec name.

Returns

const char*

The codec name.

Encode(trgMemory, srcImg)

Encodes the given image and stores the encoded data in the given memory.

Decode(trgImg, srcMemory)

Decodes the data in the given memory and stores the result in the given image.

SetBayerPattern(eBayerPattern)

Sets bayer pattern. This option is only required, if image to encode has no bayer pattern set.

SetDngOutputType(eOutputType)

Determines the Stage of the Image to decode. decoding Option Only.

SetMake(sxMake)

Sets a Make Description.

SetModel(sxModel)

Sets a Model Description.

SetSoftware(sxSoftware)

Sets a Software Description.

SetWhiteLevel(uWhiteLevel)

Sets the white level of the bayer image.

SetCameraNeutral(vdCameraNeutral)

Sets the camera neutral value for each color channel.

SetLinearizationTable(aushLinearizationTable)

Sets The linearization table.

SetColorMarix1(matColorMatrix1)

Sets the first Color Matrix.

SetColorMatrices(uColorIlluminant1, uColorIlluminant2, matColorMatrix2)

Sets the second color matrix and the to calibration illuminants.

SetHueSatMap(uHueDivisions, uSatDivisions, uValDivisions, adHueSatMap)

Sets a hue sat map. The values in the Array are stored with the following hierarchy: Hue, Saturation, Value. Each entry has three floats.

GetMake(sxMake)

Gets the Make Description.

GetModel(sxModel)

Gets the Model Description.

GetSoftware(sxSoftware)

Gets the Software Description.

GetWhiteLevel(uWhiteLevel)

Gets the white level.

GetCameraNeutral(vdCameraNeutral)

Gets the camera neutral value for each color channel.

GetColorIlluminant1(uColorIlluminant1)

Gets the first color illuminant.

GetColorIlluminant2(uColorIlluminant2)

Gets the second color illuminant.

GetColorMatrix1(matColorMatrix1)

Gets the first color matrix.

GetColorMatrix2(matColorMatrix2)

Gets the second color matrix.

GetLinearizationTable(aushLinearizationTable)

Gets the linearization table.

GetHueSatMap(uHueDivisions, uSatDivisions, uValDivisions, adHueSatMap)

Gets the hue sat map.

HasCameraNeutral()

Query if the loaded file has camera neutral.

HasLinearizationTable()

Query if the loaded file has linearization table.

HasColorIlluminant1()

Query if the loaded file has first color illuminant.

HasColorIlluminant2()

Query if loaded file has second color illuminant.

HasColorMatrix1()

Query if loaded file has first color matrix.

HasColorMatrix2()

Query if loaded file has second color matrix.

HasHueSatMap()

Query if loaded file has hue sat map.