OLD | NEW |
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 #include "core/fpdfapi/fpdf_page/cpdf_colorspace.h" | 7 #include "core/fpdfapi/fpdf_page/cpdf_colorspace.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | 11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
12 #include "core/fpdfapi/fpdf_page/pageint.h" | 12 #include "core/fpdfapi/fpdf_page/pageint.h" |
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 13 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 14 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 15 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" | 16 #include "core/fpdfapi/fpdf_parser/cpdf_object.h" |
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 17 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" |
18 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 18 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" |
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 19 #include "core/fpdfapi/fpdf_parser/cpdf_string.h" |
20 #include "core/fpdfapi/include/cpdf_modulemgr.h" | 20 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
21 #include "core/fxcodec/include/fx_codec.h" | 21 #include "core/fxcodec/include/fx_codec.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 const uint8_t g_sRGBSamples1[] = { | 25 const uint8_t g_sRGBSamples1[] = { |
26 0, 3, 6, 10, 13, 15, 18, 20, 22, 23, 25, 27, 28, 30, 31, | 26 0, 3, 6, 10, 13, 15, 18, 20, 22, 23, 25, 27, 28, 30, 31, |
27 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, | 27 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, |
28 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58, | 28 48, 49, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 58, |
29 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 66, 66, 67, 67, 68, | 29 59, 60, 61, 61, 62, 62, 63, 64, 64, 65, 66, 66, 67, 67, 68, |
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 | 1268 |
1269 return m_pAltCS->GetRGB(results, R, G, B); | 1269 return m_pAltCS->GetRGB(results, R, G, B); |
1270 } | 1270 } |
1271 | 1271 |
1272 void CPDF_DeviceNCS::EnableStdConversion(FX_BOOL bEnabled) { | 1272 void CPDF_DeviceNCS::EnableStdConversion(FX_BOOL bEnabled) { |
1273 CPDF_ColorSpace::EnableStdConversion(bEnabled); | 1273 CPDF_ColorSpace::EnableStdConversion(bEnabled); |
1274 if (m_pAltCS) { | 1274 if (m_pAltCS) { |
1275 m_pAltCS->EnableStdConversion(bEnabled); | 1275 m_pAltCS->EnableStdConversion(bEnabled); |
1276 } | 1276 } |
1277 } | 1277 } |
OLD | NEW |