Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: core/fxcodec/codec/ccodec_scanlinedecoder.h

Issue 2357173005: Clean up fx_codec_fax.cpp. (Closed)
Patch Set: typo Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxcodec/codec/ccodec_faxmodule.h ('k') | core/fxcodec/codec/fx_codec.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_ 7 #ifndef CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_
8 #define CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_ 8 #define CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
11 11
12 class IFX_Pause; 12 class IFX_Pause;
13 13
14 class CCodec_ScanlineDecoder { 14 class CCodec_ScanlineDecoder {
15 public: 15 public:
16 CCodec_ScanlineDecoder(); 16 CCodec_ScanlineDecoder();
17 CCodec_ScanlineDecoder(int nOrigWidth,
18 int nOrigHeight,
19 int nOutputWidth,
20 int nOutputHeight,
21 int nComps,
22 int nBpc,
23 uint32_t nPitch);
17 virtual ~CCodec_ScanlineDecoder(); 24 virtual ~CCodec_ScanlineDecoder();
18 25
19 const uint8_t* GetScanline(int line); 26 const uint8_t* GetScanline(int line);
20 FX_BOOL SkipToScanline(int line, IFX_Pause* pPause); 27 FX_BOOL SkipToScanline(int line, IFX_Pause* pPause);
21 28
22 int GetWidth() { return m_OutputWidth; } 29 int GetWidth() { return m_OutputWidth; }
23 int GetHeight() { return m_OutputHeight; } 30 int GetHeight() { return m_OutputHeight; }
24 int CountComps() { return m_nComps; } 31 int CountComps() { return m_nComps; }
25 int GetBPC() { return m_bpc; } 32 int GetBPC() { return m_bpc; }
26 33
(...skipping 10 matching lines...) Expand all
37 int m_OutputWidth; 44 int m_OutputWidth;
38 int m_OutputHeight; 45 int m_OutputHeight;
39 int m_nComps; 46 int m_nComps;
40 int m_bpc; 47 int m_bpc;
41 uint32_t m_Pitch; 48 uint32_t m_Pitch;
42 int m_NextLine; 49 int m_NextLine;
43 uint8_t* m_pLastScanline; 50 uint8_t* m_pLastScanline;
44 }; 51 };
45 52
46 #endif // CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_ 53 #endif // CORE_FXCODEC_CODEC_CCODEC_SCANLINEDECODER_H_
OLDNEW
« no previous file with comments | « core/fxcodec/codec/ccodec_faxmodule.h ('k') | core/fxcodec/codec/fx_codec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698