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

Side by Side Diff: core/fxcodec/fx_codec.h

Issue 2486123002: Relax colorspace checks in CPDF_DIBSource::CreateDecoder(). (Closed)
Patch Set: address simple nits Created 4 years, 1 month 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/fpdfapi/render/fpdf_render_loadimage.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CORE_FXCODEC_FX_CODEC_H_ 7 #ifndef CORE_FXCODEC_FX_CODEC_H_
8 #define CORE_FXCODEC_FX_CODEC_H_ 8 #define CORE_FXCODEC_FX_CODEC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 std::unique_ptr<CCodec_PngModule> m_pPngModule; 89 std::unique_ptr<CCodec_PngModule> m_pPngModule;
90 std::unique_ptr<CCodec_GifModule> m_pGifModule; 90 std::unique_ptr<CCodec_GifModule> m_pGifModule;
91 std::unique_ptr<CCodec_BmpModule> m_pBmpModule; 91 std::unique_ptr<CCodec_BmpModule> m_pBmpModule;
92 std::unique_ptr<CCodec_TiffModule> m_pTiffModule; 92 std::unique_ptr<CCodec_TiffModule> m_pTiffModule;
93 #endif // PDF_ENABLE_XFA 93 #endif // PDF_ENABLE_XFA
94 94
95 std::unique_ptr<CCodec_FlateModule> m_pFlateModule; 95 std::unique_ptr<CCodec_FlateModule> m_pFlateModule;
96 }; 96 };
97 97
98 void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels); 98 void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels);
99 uint32_t ComponentsForFamily(int family);
99 void sRGB_to_AdobeCMYK(FX_FLOAT R, 100 void sRGB_to_AdobeCMYK(FX_FLOAT R,
100 FX_FLOAT G, 101 FX_FLOAT G,
101 FX_FLOAT B, 102 FX_FLOAT B,
102 FX_FLOAT& c, 103 FX_FLOAT& c,
103 FX_FLOAT& m, 104 FX_FLOAT& m,
104 FX_FLOAT& y, 105 FX_FLOAT& y,
105 FX_FLOAT& k); 106 FX_FLOAT& k);
106 void AdobeCMYK_to_sRGB(FX_FLOAT c, 107 void AdobeCMYK_to_sRGB(FX_FLOAT c,
107 FX_FLOAT m, 108 FX_FLOAT m,
108 FX_FLOAT y, 109 FX_FLOAT y,
(...skipping 11 matching lines...) Expand all
120 bool MD5ComputeID(const void* buf, uint32_t dwSize, uint8_t ID[16]); 121 bool MD5ComputeID(const void* buf, uint32_t dwSize, uint8_t ID[16]);
121 void FaxG4Decode(const uint8_t* src_buf, 122 void FaxG4Decode(const uint8_t* src_buf,
122 uint32_t src_size, 123 uint32_t src_size,
123 int* pbitpos, 124 int* pbitpos,
124 uint8_t* dest_buf, 125 uint8_t* dest_buf,
125 int width, 126 int width,
126 int height, 127 int height,
127 int pitch); 128 int pitch);
128 129
129 #endif // CORE_FXCODEC_FX_CODEC_H_ 130 #endif // CORE_FXCODEC_FX_CODEC_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/render/fpdf_render_loadimage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698