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

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

Issue 966013002: Merge to XFA: Cleanup parts of fpdf_render_loadimage.cpp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 9 months 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 _FPDF_PAGEOBJ_H_ 7 #ifndef _FPDF_PAGEOBJ_H_
8 #include "../../../include/fpdfapi/fpdf_pageobj.h" 8 #include "../../../include/fpdfapi/fpdf_pageobj.h"
9 #endif 9 #endif
10 class CPDF_QuickStretcher; 10 class CPDF_QuickStretcher;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 FX_BOOL m_bStdCS; 412 FX_BOOL m_bStdCS;
413 int m_Status; 413 int m_Status;
414 CPDF_Object* m_pMaskStream; 414 CPDF_Object* m_pMaskStream;
415 FX_BOOL m_bHasMask; 415 FX_BOOL m_bHasMask;
416 protected: 416 protected:
417 FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormReso urces, CPDF_Dictionary* pPageResources); 417 FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormReso urces, CPDF_Dictionary* pPageResources);
418 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColorKey); 418 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColorKey);
419 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor); 419 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor);
420 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask); 420 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask);
421 void LoadJpxBitmap(); 421 void LoadJpxBitmap();
422 void LoadJbig2Bitmap();
423 void LoadPalette(); 422 void LoadPalette();
424 FX_BOOL» » » » CreateDecoder(); 423 int»» » » » CreateDecoder();
425 void TranslateScanline24bpp(FX_LPBYTE dest_sc an, FX_LPCBYTE src_scan) const; 424 void TranslateScanline24bpp(FX_LPBYTE dest_sc an, FX_LPCBYTE src_scan) const;
426 void ValidateDictParam(); 425 void ValidateDictParam();
427 CPDF_Document* m_pDocument; 426 CPDF_Document* m_pDocument;
428 const CPDF_Stream* m_pStream; 427 const CPDF_Stream* m_pStream;
429 CPDF_StreamAcc* m_pStreamAcc; 428 CPDF_StreamAcc* m_pStreamAcc;
430 const CPDF_Dictionary* m_pDict; 429 const CPDF_Dictionary* m_pDict;
431 CPDF_ColorSpace* m_pColorSpace; 430 CPDF_ColorSpace* m_pColorSpace;
432 FX_DWORD» » » m_Family, m_bpc, m_bpc_orig, m_nComponents, m_Gr oupFamily; 431 FX_DWORD» » » m_Family;
432 FX_DWORD» » » m_bpc;
433 FX_DWORD» » » m_bpc_orig;
434 FX_DWORD» » » m_nComponents;
435 FX_DWORD» » » m_GroupFamily;
433 FX_BOOL m_bLoadMask; 436 FX_BOOL m_bLoadMask;
434 FX_BOOL» » » » m_bDefaultDecode, m_bImageMask, m_bColor Key; 437 FX_BOOL» » » » m_bDefaultDecode;
438 FX_BOOL» » » » m_bImageMask;
439 FX_BOOL» » » » m_bColorKey;
435 DIB_COMP_DATA* m_pCompData; 440 DIB_COMP_DATA* m_pCompData;
436 FX_LPBYTE m_pLineBuf; 441 FX_LPBYTE m_pLineBuf;
437 FX_LPBYTE m_pMaskedLine; 442 FX_LPBYTE m_pMaskedLine;
438 CFX_DIBitmap* m_pCachedBitmap; 443 CFX_DIBitmap* m_pCachedBitmap;
439 ICodec_ScanlineDecoder* m_pDecoder; 444 ICodec_ScanlineDecoder* m_pDecoder;
440 }; 445 };
441 #define FPDF_HUGE_IMAGE_SIZE 60000000 446 #define FPDF_HUGE_IMAGE_SIZE 60000000
442 class CPDF_DIBTransferFunc : public CFX_FilteredDIB 447 class CPDF_DIBTransferFunc : public CFX_FilteredDIB
443 { 448 {
444 public: 449 public:
445 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); 450 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc);
446 virtual FXDIB_Format GetDestFormat(); 451 virtual FXDIB_Format GetDestFormat();
447 virtual FX_ARGB* GetDestPalette() 452 virtual FX_ARGB* GetDestPalette()
448 { 453 {
449 return NULL; 454 return NULL;
450 } 455 }
451 virtual void TranslateScanline(FX_LPBYTE dest_buf, FX _LPCBYTE src_buf) const; 456 virtual void TranslateScanline(FX_LPBYTE dest_buf, FX _LPCBYTE src_buf) const;
452 virtual void TranslateDownSamples(FX_LPBYTE dest_buf, FX_LPCBYTE src_buf, int pixels, int Bpp) const; 457 virtual void TranslateDownSamples(FX_LPBYTE dest_buf, FX_LPCBYTE src_buf, int pixels, int Bpp) const;
453 FX_LPCBYTE m_RampR; 458 FX_LPCBYTE m_RampR;
454 FX_LPCBYTE m_RampG; 459 FX_LPCBYTE m_RampG;
455 FX_LPCBYTE m_RampB; 460 FX_LPCBYTE m_RampB;
456 }; 461 };
457 struct _CPDF_UniqueKeyGen { 462 struct _CPDF_UniqueKeyGen {
458 void Generate(int count, ...); 463 void Generate(int count, ...);
459 FX_CHAR m_Key[128]; 464 FX_CHAR m_Key[128];
460 int m_KeyLen; 465 int m_KeyLen;
461 }; 466 };
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