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

Side by Side Diff: core/src/fpdfapi/fpdf_render/render_int.h

Issue 1507043004: Cleanup CPDF_DIBSource::LoadColorInfo() and ValidateDictParam(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 5 years 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/src/fpdfapi/fpdf_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_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 CPDF_DIBSource* m_pMask; 554 CPDF_DIBSource* m_pMask;
555 FX_DWORD m_MatteColor; 555 FX_DWORD m_MatteColor;
556 void* m_pJbig2Context; 556 void* m_pJbig2Context;
557 CPDF_StreamAcc* m_pGlobalStream; 557 CPDF_StreamAcc* m_pGlobalStream;
558 FX_BOOL m_bStdCS; 558 FX_BOOL m_bStdCS;
559 int m_Status; 559 int m_Status;
560 CPDF_Stream* m_pMaskStream; 560 CPDF_Stream* m_pMaskStream;
561 FX_BOOL m_bHasMask; 561 FX_BOOL m_bHasMask;
562 562
563 private: 563 private:
564 FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormResources, 564 bool LoadColorInfo(const CPDF_Dictionary* pFormResources,
565 CPDF_Dictionary* pPageResources); 565 const CPDF_Dictionary* pPageResources);
566 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, 566 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode,
567 FX_BOOL& bColorKey); 567 FX_BOOL& bColorKey);
568 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor); 568 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor);
569 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask); 569 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask);
570 void LoadJpxBitmap(); 570 void LoadJpxBitmap();
571 void LoadPalette(); 571 void LoadPalette();
572 int CreateDecoder(); 572 int CreateDecoder();
573 void TranslateScanline24bpp(uint8_t* dest_scan, 573 void TranslateScanline24bpp(uint8_t* dest_scan,
574 const uint8_t* src_scan) const; 574 const uint8_t* src_scan) const;
575 void ValidateDictParam(); 575 void ValidateDictParam();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 const uint8_t* m_RampB; 645 const uint8_t* m_RampB;
646 }; 646 };
647 647
648 struct _CPDF_UniqueKeyGen { 648 struct _CPDF_UniqueKeyGen {
649 void Generate(int count, ...); 649 void Generate(int count, ...);
650 FX_CHAR m_Key[128]; 650 FX_CHAR m_Key[128];
651 int m_KeyLen; 651 int m_KeyLen;
652 }; 652 };
653 653
654 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 654 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698