| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "core/fxcodec/codec/include/ccodec_progressivedecoder.h" | 7 #include "core/fxcodec/codec/ccodec_progressivedecoder.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fxcodec/include/fx_codec.h" | 11 #include "core/fxcodec/fx_codec.h" |
| 12 #include "core/fxge/include/fx_dib.h" | 12 #include "core/fxge/include/fx_dib.h" |
| 13 #include "third_party/base/numerics/safe_math.h" | 13 #include "third_party/base/numerics/safe_math.h" |
| 14 | 14 |
| 15 #define FXCODEC_BLOCK_SIZE 4096 | 15 #define FXCODEC_BLOCK_SIZE 4096 |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 #if _FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ | 19 #if _FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ |
| 20 const double kPngGamma = 1.7; | 20 const double kPngGamma = 1.7; |
| 21 #else | 21 #else |
| (...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 return m_status; | 2369 return m_status; |
| 2370 } | 2370 } |
| 2371 default: | 2371 default: |
| 2372 return FXCODEC_STATUS_ERROR; | 2372 return FXCODEC_STATUS_ERROR; |
| 2373 } | 2373 } |
| 2374 } | 2374 } |
| 2375 | 2375 |
| 2376 CCodec_ProgressiveDecoder* CCodec_ModuleMgr::CreateProgressiveDecoder() { | 2376 CCodec_ProgressiveDecoder* CCodec_ModuleMgr::CreateProgressiveDecoder() { |
| 2377 return new CCodec_ProgressiveDecoder(this); | 2377 return new CCodec_ProgressiveDecoder(this); |
| 2378 } | 2378 } |
| OLD | NEW |