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

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

Issue 1304873002: Merge to XFA: Fix some -Wmaybe-uninitialized errors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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
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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 int dest_width, 520 int dest_width,
521 FX_BOOL bFlipX, 521 FX_BOOL bFlipX,
522 int clip_left, 522 int clip_left,
523 int clip_width) const override; 523 int clip_width) const override;
524 void SetDownSampleSize(int dest_width, int dest_height) const override; 524 void SetDownSampleSize(int dest_width, int dest_height) const override;
525 525
526 CFX_DIBitmap* GetBitmap() const; 526 CFX_DIBitmap* GetBitmap() const;
527 void ReleaseBitmap(CFX_DIBitmap*) const; 527 void ReleaseBitmap(CFX_DIBitmap*) const;
528 void ClearImageData(); 528 void ClearImageData();
529 529
530 public:
531 int StartLoadDIBSource(CPDF_Document* pDoc, 530 int StartLoadDIBSource(CPDF_Document* pDoc,
532 const CPDF_Stream* pStream, 531 const CPDF_Stream* pStream,
533 FX_BOOL bHasMask, 532 FX_BOOL bHasMask,
534 CPDF_Dictionary* pFormResources, 533 CPDF_Dictionary* pFormResources,
535 CPDF_Dictionary* pPageResources, 534 CPDF_Dictionary* pPageResources,
536 FX_BOOL bStdCS = FALSE, 535 FX_BOOL bStdCS = FALSE,
537 FX_DWORD GroupFamily = 0, 536 FX_DWORD GroupFamily = 0,
538 FX_BOOL bLoadMask = FALSE); 537 FX_BOOL bLoadMask = FALSE);
539 int ContinueLoadDIBSource(IFX_Pause* pPause); 538 int ContinueLoadDIBSource(IFX_Pause* pPause);
540 int StratLoadMask(); 539 int StratLoadMask();
541 int StartLoadMaskDIB(); 540 int StartLoadMaskDIB();
542 int ContinueLoadMaskDIB(IFX_Pause* pPause); 541 int ContinueLoadMaskDIB(IFX_Pause* pPause);
543 int ContinueToLoadMask(); 542 int ContinueToLoadMask();
544 CPDF_DIBSource* DetachMask(); 543 CPDF_DIBSource* DetachMask();
545 CPDF_DIBSource* m_pMask; 544 CPDF_DIBSource* m_pMask;
546 FX_DWORD m_MatteColor; 545 FX_DWORD m_MatteColor;
547 void* m_pJbig2Context; 546 void* m_pJbig2Context;
548 CPDF_StreamAcc* m_pGlobalStream; 547 CPDF_StreamAcc* m_pGlobalStream;
549 FX_BOOL m_bStdCS; 548 FX_BOOL m_bStdCS;
550 int m_Status; 549 int m_Status;
551 CPDF_Object* m_pMaskStream; 550 CPDF_Object* m_pMaskStream;
552 FX_BOOL m_bHasMask; 551 FX_BOOL m_bHasMask;
553 552
554 protected: 553 private:
555 FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormResources, 554 FX_BOOL LoadColorInfo(CPDF_Dictionary* pFormResources,
556 CPDF_Dictionary* pPageResources); 555 CPDF_Dictionary* pPageResources);
557 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode, 556 DIB_COMP_DATA* GetDecodeAndMaskArray(FX_BOOL& bDefaultDecode,
558 FX_BOOL& bColorKey); 557 FX_BOOL& bColorKey);
559 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor); 558 CPDF_DIBSource* LoadMask(FX_DWORD& MatteColor);
560 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask); 559 CPDF_DIBSource* LoadMaskDIB(CPDF_Stream* pMask);
561 void LoadJpxBitmap(); 560 void LoadJpxBitmap();
562 void LoadPalette(); 561 void LoadPalette();
563 int CreateDecoder(); 562 int CreateDecoder();
564 void TranslateScanline24bpp(uint8_t* dest_scan, 563 void TranslateScanline24bpp(uint8_t* dest_scan,
565 const uint8_t* src_scan) const; 564 const uint8_t* src_scan) const;
566 void ValidateDictParam(); 565 void ValidateDictParam();
566 void DownSampleScanline1Bit(int orig_Bpp,
567 int dest_Bpp,
568 FX_DWORD src_width,
569 const uint8_t* pSrcLine,
570 uint8_t* dest_scan,
571 int dest_width,
572 FX_BOOL bFlipX,
573 int clip_left,
574 int clip_width) const;
575 void DownSampleScanline8Bit(int orig_Bpp,
576 int dest_Bpp,
577 FX_DWORD src_width,
578 const uint8_t* pSrcLine,
579 uint8_t* dest_scan,
580 int dest_width,
581 FX_BOOL bFlipX,
582 int clip_left,
583 int clip_width) const;
584 void DownSampleScanline32Bit(int orig_Bpp,
585 int dest_Bpp,
586 FX_DWORD src_width,
587 const uint8_t* pSrcLine,
588 uint8_t* dest_scan,
589 int dest_width,
590 FX_BOOL bFlipX,
591 int clip_left,
592 int clip_width) const;
593 FX_BOOL TransMask() const;
594
567 CPDF_Document* m_pDocument; 595 CPDF_Document* m_pDocument;
568 const CPDF_Stream* m_pStream; 596 const CPDF_Stream* m_pStream;
569 CPDF_StreamAcc* m_pStreamAcc; 597 CPDF_StreamAcc* m_pStreamAcc;
570 const CPDF_Dictionary* m_pDict; 598 const CPDF_Dictionary* m_pDict;
571 CPDF_ColorSpace* m_pColorSpace; 599 CPDF_ColorSpace* m_pColorSpace;
572 FX_DWORD m_Family; 600 FX_DWORD m_Family;
573 FX_DWORD m_bpc; 601 FX_DWORD m_bpc;
574 FX_DWORD m_bpc_orig; 602 FX_DWORD m_bpc_orig;
575 FX_DWORD m_nComponents; 603 FX_DWORD m_nComponents;
576 FX_DWORD m_GroupFamily; 604 FX_DWORD m_GroupFamily;
(...skipping 30 matching lines...) Expand all
607 const uint8_t* m_RampB; 635 const uint8_t* m_RampB;
608 }; 636 };
609 637
610 struct _CPDF_UniqueKeyGen { 638 struct _CPDF_UniqueKeyGen {
611 void Generate(int count, ...); 639 void Generate(int count, ...);
612 FX_CHAR m_Key[128]; 640 FX_CHAR m_Key[128];
613 int m_KeyLen; 641 int m_KeyLen;
614 }; 642 };
615 643
616 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 644 #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') | core/src/fxge/ge/fx_ge_fontmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698