Namespace: Rx::Codec – Class: CJ2k – Header: Rx.Codec/J2k.h

CJ2k Class

C++
#include "Rx.Codec/J2k.h"
class CJ2k : public IImageCodec

JPG Codec.

Constructors

CJ2k()

Default constructor.

Destructor

~CJ2k()

Destructor.

Methods

Encode(pTrgMem, xSrcImg)

Encodes the image pSrcImg and store the encoded data in pTrgMem.

Decode(xTrgImg, pSrcMem)

Decodes the data in pSrcMem and store the decoded image in pTrgImg.

GetCodecName()

Gets 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.

SetSampleRate(dSampleRate)

Sets a sample rate. The Value has to be in Range of [0.0, 10.0].