From 2ab466e3a59d845422e06e50bc38d4bf31ac1adf Mon Sep 17 00:00:00 2001 From: thestig Date: Mon, 26 Sep 2016 16:14:28 -0700 Subject: Clean up fx_codec_fax.cpp. Review-Url: https://codereview.chromium.org/2357173005 --- core/fxcodec/codec/fx_codec.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'core/fxcodec/codec/fx_codec.cpp') diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp index 1995784dcd..7f0c8ad225 100644 --- a/core/fxcodec/codec/fx_codec.cpp +++ b/core/fxcodec/codec/fx_codec.cpp @@ -34,7 +34,24 @@ CCodec_ModuleMgr::CCodec_ModuleMgr() CCodec_ModuleMgr::~CCodec_ModuleMgr() {} CCodec_ScanlineDecoder::CCodec_ScanlineDecoder() - : m_NextLine(-1), m_pLastScanline(nullptr) {} + : CCodec_ScanlineDecoder(0, 0, 0, 0, 0, 0, 0) {} + +CCodec_ScanlineDecoder::CCodec_ScanlineDecoder(int nOrigWidth, + int nOrigHeight, + int nOutputWidth, + int nOutputHeight, + int nComps, + int nBpc, + uint32_t nPitch) + : m_OrigWidth(nOrigWidth), + m_OrigHeight(nOrigHeight), + m_OutputWidth(nOutputWidth), + m_OutputHeight(nOutputHeight), + m_nComps(nComps), + m_bpc(nBpc), + m_Pitch(nPitch), + m_NextLine(-1), + m_pLastScanline(nullptr) {} CCodec_ScanlineDecoder::~CCodec_ScanlineDecoder() {} -- cgit v1.2.3