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_RESOURCE_ | 7 #ifndef _FPDF_RESOURCE_ |
8 #define _FPDF_RESOURCE_ | 8 #define _FPDF_RESOURCE_ |
9 #ifndef _FPDF_PARSER_ | 9 #ifndef _FPDF_PARSER_ |
10 #include "fpdf_parser.h" | 10 #include "fpdf_parser.h" |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 return m_pInlineDict; | 875 return m_pInlineDict; |
876 } | 876 } |
877 | 877 |
878 CPDF_Stream* GetStream() const | 878 CPDF_Stream* GetStream() const |
879 { | 879 { |
880 return m_pStream; | 880 return m_pStream; |
881 } | 881 } |
882 | 882 |
883 CPDF_Dictionary* GetDict() const | 883 CPDF_Dictionary* GetDict() const |
884 { | 884 { |
885 return m_pStream->GetDict(); | 885 return m_pStream? m_pStream->GetDict(): NULL; |
886 } | 886 } |
887 | 887 |
888 CPDF_Dictionary* GetOC() const | 888 CPDF_Dictionary* GetOC() const |
889 { | 889 { |
890 return m_pOC; | 890 return m_pOC; |
891 } | 891 } |
892 | 892 |
893 CPDF_Document* GetDocument() const | 893 CPDF_Document* GetDocument() const |
894 { | 894 { |
895 return m_pDocument; | 895 return m_pDocument; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 FX_BOOL m_bIsMask; | 951 FX_BOOL m_bIsMask; |
952 | 952 |
953 FX_BOOL m_bInterpolate; | 953 FX_BOOL m_bInterpolate; |
954 | 954 |
955 CPDF_Document* m_pDocument; | 955 CPDF_Document* m_pDocument; |
956 | 956 |
957 CPDF_Dictionary* m_pOC; | 957 CPDF_Dictionary* m_pOC; |
958 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); | 958 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); |
959 }; | 959 }; |
960 #endif | 960 #endif |
OLD | NEW |