OLD | NEW |
1 #ifndef __DEFINED__SkPdfJbig2DecodeFilterDictionary | 1 #ifndef __DEFINED__SkPdfJbig2DecodeFilterDictionary |
2 #define __DEFINED__SkPdfJbig2DecodeFilterDictionary | 2 #define __DEFINED__SkPdfJbig2DecodeFilterDictionary |
3 | 3 |
4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
8 | 8 |
9 // Optional parameter for the JBIG2Decode filter | 9 // Optional parameter for the JBIG2Decode filter |
10 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary { | 10 class SkPdfJbig2DecodeFilterDictionary : public SkPdfDictionary { |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} | 526 SkPdfJbig2DecodeFilterDictionary& operator=(const SkPdfJbig2DecodeFilterDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} |
527 | 527 |
528 /** ()A stream containing the JBIG2 global (page 0) segments. Global segments | 528 /** ()A stream containing the JBIG2 global (page 0) segments. Global segments |
529 * must be placed in this stream even if only a single JBIG2 image XObject refe
rs | 529 * must be placed in this stream even if only a single JBIG2 image XObject refe
rs |
530 * to it. | 530 * to it. |
531 **/ | 531 **/ |
532 bool has_JBIG2Globals() const { | 532 bool has_JBIG2Globals() const { |
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2
Globals", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2
Globals", "", NULL)); |
534 } | 534 } |
535 | 535 |
536 SkPdfStream* JBIG2Globals() const { | 536 SkPdfStream* JBIG2Globals() const; |
537 SkPdfStream* ret; | |
538 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JBIG2Glob
als", "", &ret)) return ret; | |
539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
540 return NULL; | |
541 } | |
542 | |
543 }; | 537 }; |
544 | 538 |
545 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary | 539 #endif // __DEFINED__SkPdfJbig2DecodeFilterDictionary |
OLD | NEW |