| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfDctdecodeFilterDictionary | 1 #ifndef __DEFINED__SkPdfDctdecodeFilterDictionary |
| 2 #define __DEFINED__SkPdfDctdecodeFilterDictionary | 2 #define __DEFINED__SkPdfDctdecodeFilterDictionary |
| 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 DCTDecode filter | 9 // Optional parameter for the DCTDecode filter |
| 10 class SkPdfDctdecodeFilterDictionary : public SkPdfDictionary { | 10 class SkPdfDctdecodeFilterDictionary : public SkPdfDictionary { |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 * ColorTransform to 0. Additionally, the encoding algorithm inserts an Adobe- | 541 * ColorTransform to 0. Additionally, the encoding algorithm inserts an Adobe- |
| 542 * defined marker code in the encoded data indicating the ColorTransform value | 542 * defined marker code in the encoded data indicating the ColorTransform value |
| 543 * used. If present, this marker code overrides the ColorTransform value given
to | 543 * used. If present, this marker code overrides the ColorTransform value given
to |
| 544 * DCTDecode. Thus it is necessary to specify ColorTransform only when decod- | 544 * DCTDecode. Thus it is necessary to specify ColorTransform only when decod- |
| 545 * ing data that does not contain the Adobe-defined marker code. | 545 * ing data that does not contain the Adobe-defined marker code. |
| 546 **/ | 546 **/ |
| 547 bool has_ColorTransform() const { | 547 bool has_ColorTransform() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
Transform", "", NULL)); | 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
Transform", "", NULL)); |
| 549 } | 549 } |
| 550 | 550 |
| 551 long ColorTransform() const { | 551 long ColorTransform() const; |
| 552 long ret; | |
| 553 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ColorTransf
orm", "", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return 0; | |
| 556 } | |
| 557 | |
| 558 }; | 552 }; |
| 559 | 553 |
| 560 #endif // __DEFINED__SkPdfDctdecodeFilterDictionary | 554 #endif // __DEFINED__SkPdfDctdecodeFilterDictionary |
| OLD | NEW |