7 class EncodeParameters {
14 class JpegEncodeParameters :
public EncodeParameters {
16 JpegEncodeParameters(
int quality = 95) {
20 int getQuality()
const {
23 void setQuality(
int quality) {
29 class JP2KEncodeParameters :
public EncodeParameters {
35 JP2KEncodeParameters(
float rate = 4.5, Codec codec = Codec::J2KStream) {
39 m_codecFormat = codec;
40 m_compressionRate = rate;
42 int getSubSamplingDx()
const {
43 return m_subSamplingDX;
45 void setSubSamplingDx(
int subSamplingDx) {
46 m_subSamplingDX = subSamplingDx;
48 int getSubSamplingDy()
const {
49 return m_subSamplingDY;
51 void setSubSamplingDy(
int subSamplingDy) {
52 m_subSamplingDY = subSamplingDy;
54 Codec getCodecFormat()
const {
57 void setCodecFormat(Codec codecFormat) {
58 m_codecFormat = codecFormat;
60 float getCompressionRate()
const {
61 return m_compressionRate;
63 void setCompressionRate(
float compressionRate) {
64 m_compressionRate = compressionRate;
70 float m_compressionRate;
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12
@ Jpeg2000
JPEG 2000 compression.