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/include/fx_codec.h" | 7 #include "core/fxcodec/include/fx_codec.h" |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <memory> | 10 #include <memory> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return TRUE; | 70 return TRUE; |
71 } | 71 } |
72 } | 72 } |
73 return FALSE; | 73 return FALSE; |
74 } | 74 } |
75 | 75 |
76 uint8_t* CCodec_ScanlineDecoder::ReadNextLine() { | 76 uint8_t* CCodec_ScanlineDecoder::ReadNextLine() { |
77 return v_GetNextLine(); | 77 return v_GetNextLine(); |
78 } | 78 } |
79 | 79 |
80 FX_BOOL CCodec_BasicModule::RunLengthEncode(const uint8_t* src_buf, | |
81 uint32_t src_size, | |
82 uint8_t*& dest_buf, | |
83 uint32_t& dest_size) { | |
84 return FALSE; | |
85 } | |
86 | |
87 FX_BOOL CCodec_BasicModule::A85Encode(const uint8_t* src_buf, | |
88 uint32_t src_size, | |
89 uint8_t*& dest_buf, | |
90 uint32_t& dest_size) { | |
91 return FALSE; | |
92 } | |
93 | |
94 #ifdef PDF_ENABLE_XFA | 80 #ifdef PDF_ENABLE_XFA |
95 CFX_DIBAttribute::CFX_DIBAttribute() | 81 CFX_DIBAttribute::CFX_DIBAttribute() |
96 : m_nXDPI(-1), | 82 : m_nXDPI(-1), |
97 m_nYDPI(-1), | 83 m_nYDPI(-1), |
98 m_fAspectRatio(-1.0f), | 84 m_fAspectRatio(-1.0f), |
99 m_wDPIUnit(0), | 85 m_wDPIUnit(0), |
100 m_nGifLeft(0), | 86 m_nGifLeft(0), |
101 m_nGifTop(0), | 87 m_nGifTop(0), |
102 m_pGifLocalPalette(nullptr), | 88 m_pGifLocalPalette(nullptr), |
103 m_nGifLocalPalNum(0), | 89 m_nGifLocalPalNum(0), |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 int bpc) { | 292 int bpc) { |
307 std::unique_ptr<CCodec_RLScanlineDecoder> pRLScanlineDecoder( | 293 std::unique_ptr<CCodec_RLScanlineDecoder> pRLScanlineDecoder( |
308 new CCodec_RLScanlineDecoder); | 294 new CCodec_RLScanlineDecoder); |
309 if (!pRLScanlineDecoder->Create(src_buf, src_size, width, height, nComps, | 295 if (!pRLScanlineDecoder->Create(src_buf, src_size, width, height, nComps, |
310 bpc)) { | 296 bpc)) { |
311 return nullptr; | 297 return nullptr; |
312 } | 298 } |
313 | 299 |
314 return pRLScanlineDecoder.release(); | 300 return pRLScanlineDecoder.release(); |
315 } | 301 } |
OLD | NEW |