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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfDctdecodeFilterDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698