Chromium Code Reviews| 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 #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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 407 CPDF_DIBSource* DetachMask(); | 407 CPDF_DIBSource* DetachMask(); |
| 408 CPDF_DIBSource* m_pMask; | 408 CPDF_DIBSource* m_pMask; |
| 409 FX_DWORD m_MatteColor; | 409 FX_DWORD m_MatteColor; |
| 410 FX_LPVOID m_pJbig2Context; | 410 FX_LPVOID m_pJbig2Context; |
| 411 CPDF_StreamAcc* m_pGlobalStream; | 411 CPDF_StreamAcc* m_pGlobalStream; |
| 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* pFormResources, CPDF_Dictionary* pPag eResources); |
|
Tom Sepez
2015/02/02 22:55:45
nit: I'd be tempted not to re-indent this to allow
Lei Zhang
2015/02/07 00:44:01
Ok, I left it alone.
| |
| 418 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColorKey); | 418 DIB_COMP_DATA*GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, FX_BOOL& bColor Key); |
| 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(); | 422 void LoadPalette(); |
| 423 void» » » » LoadPalette(); | 423 int CreateDecoder(); |
| 424 FX_BOOL» » » » CreateDecoder(); | 424 void TranslateScanline24bpp(FX_LPBYTE dest_scan, FX_LPCBYTE src_scan) const; |
| 425 void» » » » TranslateScanline24bpp(FX_LPBYTE dest_sc an, FX_LPCBYTE src_scan) const; | 425 void ValidateDictParam(); |
| 426 void ValidateDictParam(); | 426 CPDF_Document* m_pDocument; |
| 427 CPDF_Document*» » m_pDocument; | 427 const CPDF_Stream* m_pStream; |
| 428 const CPDF_Stream*» m_pStream; | 428 CPDF_StreamAcc* m_pStreamAcc; |
| 429 CPDF_StreamAcc*» » m_pStreamAcc; | 429 const CPDF_Dictionary* m_pDict; |
| 430 const CPDF_Dictionary*» m_pDict; | 430 CPDF_ColorSpace* m_pColorSpace; |
| 431 CPDF_ColorSpace*» m_pColorSpace; | 431 FX_DWORD m_Family, m_bpc, m_bpc_orig, m_nComponents, m_GroupFamily; |
|
Tom Sepez
2015/02/02 22:55:45
nit: as long as you're mucking with this, how abou
Lei Zhang
2015/02/07 00:44:01
Done.
| |
| 432 FX_DWORD» » » m_Family, m_bpc, m_bpc_orig, m_nComponents, m_Gr oupFamily; | 432 FX_BOOL m_bLoadMask; |
| 433 FX_BOOL» » » » m_bLoadMask; | 433 FX_BOOL m_bDefaultDecode, m_bImageMask, m_bColorKey; |
|
Tom Sepez
2015/02/02 22:55:45
nit: here too.
Lei Zhang
2015/02/07 00:44:00
Done.
| |
| 434 FX_BOOL» » » » m_bDefaultDecode, m_bImageMask, m_bColor Key; | 434 DIB_COMP_DATA* m_pCompData; |
| 435 DIB_COMP_DATA*» » m_pCompData; | 435 FX_LPBYTE m_pLineBuf; |
| 436 FX_LPBYTE» » » m_pLineBuf; | 436 FX_LPBYTE m_pMaskedLine; |
| 437 FX_LPBYTE» » » m_pMaskedLine; | 437 CFX_DIBitmap* m_pCachedBitmap; |
| 438 CFX_DIBitmap*» » m_pCachedBitmap; | 438 ICodec_ScanlineDecoder* m_pDecoder; |
| 439 ICodec_ScanlineDecoder*» m_pDecoder; | |
| 440 }; | 439 }; |
| 441 #define FPDF_HUGE_IMAGE_SIZE 60000000 | 440 #define FPDF_HUGE_IMAGE_SIZE 60000000 |
| 442 class CPDF_DIBTransferFunc : public CFX_FilteredDIB | 441 class CPDF_DIBTransferFunc : public CFX_FilteredDIB |
| 443 { | 442 { |
| 444 public: | 443 public: |
| 445 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); | 444 CPDF_DIBTransferFunc(const CPDF_TransferFunc* pTransferFunc); |
| 446 virtual FXDIB_Format GetDestFormat(); | 445 virtual FXDIB_Format GetDestFormat(); |
| 447 virtual FX_ARGB* GetDestPalette() | 446 virtual FX_ARGB* GetDestPalette() |
| 448 { | 447 { |
| 449 return NULL; | 448 return NULL; |
| 450 } | 449 } |
| 451 virtual void TranslateScanline(FX_LPBYTE dest_buf, FX _LPCBYTE src_buf) const; | 450 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; | 451 virtual void TranslateDownSamples(FX_LPBYTE dest_buf, FX_LPCBYTE src_buf, int pixels, int Bpp) const; |
| 453 FX_LPCBYTE m_RampR; | 452 FX_LPCBYTE m_RampR; |
| 454 FX_LPCBYTE m_RampG; | 453 FX_LPCBYTE m_RampG; |
| 455 FX_LPCBYTE m_RampB; | 454 FX_LPCBYTE m_RampB; |
| 456 }; | 455 }; |
| 457 struct _CPDF_UniqueKeyGen { | 456 struct _CPDF_UniqueKeyGen { |
| 458 void Generate(int count, ...); | 457 void Generate(int count, ...); |
| 459 FX_CHAR m_Key[128]; | 458 FX_CHAR m_Key[128]; |
| 460 int m_KeyLen; | 459 int m_KeyLen; |
| 461 }; | 460 }; |
| OLD | NEW |