diff options
Diffstat (limited to 'common/rfb/IrixDMIC_RawToJpeg.cxx')
-rw-r--r-- | common/rfb/IrixDMIC_RawToJpeg.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/rfb/IrixDMIC_RawToJpeg.cxx b/common/rfb/IrixDMIC_RawToJpeg.cxx index afa0d18b..4cdb1ba0 100644 --- a/common/rfb/IrixDMIC_RawToJpeg.cxx +++ b/common/rfb/IrixDMIC_RawToJpeg.cxx @@ -203,6 +203,15 @@ IrixDMIC_RawToJpeg::setImageQuality(int quality) reportError("dmParamsSetFloat"); return false; } + + // For some reason, dmICSetConvParams() does not have effect without + // calling dmICSetDstParams() as well. So we call it here. + if (m_dstParams && dmParamsGetNumElems(m_dstParams) && + dmICSetDstParams(m_ic, m_dstParams) != DM_SUCCESS) { + reportError("dmICSetDstParams"); + return false; + } + if (dmICSetConvParams(m_ic, m_convParams) != DM_SUCCESS) { reportError("dmICSetConvParams"); return false; |