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

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

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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__SkPdfCcittfaxdecodeFilterDictionary 1 #ifndef __DEFINED__SkPdfCcittfaxdecodeFilterDictionary
2 #define __DEFINED__SkPdfCcittfaxdecodeFilterDictionary 2 #define __DEFINED__SkPdfCcittfaxdecodeFilterDictionary
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 parameters for the CCITTFaxDecode filter 9 // Optional parameters for the CCITTFaxDecode filter
10 class SkPdfCcittfaxdecodeFilterDictionary : public SkPdfDictionary { 10 class SkPdfCcittfaxdecodeFilterDictionary : public SkPdfDictionary {
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 * 2-D), in which a line encoded one-dimensionally can be 532 * 2-D), in which a line encoded one-dimensionally can be
533 * followed by at most K - 1 lines encoded two-dimensionally 533 * followed by at most K - 1 lines encoded two-dimensionally
534 * The filter distinguishes among negative, zero, and positive values of 534 * The filter distinguishes among negative, zero, and positive values of
535 * K to determine how to interpret the encoded data; however, it does 535 * K to determine how to interpret the encoded data; however, it does
536 * not distinguish between different positive K values. Default value: 0. 536 * not distinguish between different positive K values. Default value: 0.
537 **/ 537 **/
538 bool has_K() const { 538 bool has_K() const {
539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", " ", NULL)); 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", " ", NULL));
540 } 540 }
541 541
542 long K() const { 542 long K() const;
543 long ret;
544 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &re t)) return ret;
545 // TODO(edisonn): warn about missing required field, assert for known good p dfs
546 return 0;
547 }
548
549 /** ()A flag indicating whether end-of-line bit patterns are required to be 543 /** ()A flag indicating whether end-of-line bit patterns are required to be
550 * present in the encoding. The CCITTFaxDecode filter always accepts 544 * present in the encoding. The CCITTFaxDecode filter always accepts
551 * end-of-line bit patterns, but requires them only if EndOfLine is true. 545 * end-of-line bit patterns, but requires them only if EndOfLine is true.
552 * Default value: false. 546 * Default value: false.
553 **/ 547 **/
554 bool has_EndOfLine() const { 548 bool has_EndOfLine() const {
555 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOf Line", "", NULL)); 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOf Line", "", NULL));
556 } 550 }
557 551
558 bool EndOfLine() const { 552 bool EndOfLine() const;
559 bool ret;
560 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfLine", "", &ret)) return ret;
561 // TODO(edisonn): warn about missing required field, assert for known good p dfs
562 return false;
563 }
564
565 /** ()A flag indicating whether the filter expects extra 0 bits before each 553 /** ()A flag indicating whether the filter expects extra 0 bits before each
566 * encoded line so that the line begins on a byte boundary. If true, the 554 * encoded line so that the line begins on a byte boundary. If true, the
567 * filter skips over encoded bits to begin decoding each line at a byte 555 * filter skips over encoded bits to begin decoding each line at a byte
568 * boundary. If false, the filter does not expect extra bits in the encod- 556 * boundary. If false, the filter does not expect extra bits in the encod-
569 * ed representation. Default value: false. 557 * ed representation. Default value: false.
570 **/ 558 **/
571 bool has_EncodedByteAlign() const { 559 bool has_EncodedByteAlign() const {
572 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod edByteAlign", "", NULL)); 560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encod edByteAlign", "", NULL));
573 } 561 }
574 562
575 bool EncodedByteAlign() const { 563 bool EncodedByteAlign() const;
576 bool ret;
577 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncodedByte Align", "", &ret)) return ret;
578 // TODO(edisonn): warn about missing required field, assert for known good p dfs
579 return false;
580 }
581
582 /** ()The width of the image in pixels. If the value is not a multiple of 8, 564 /** ()The width of the image in pixels. If the value is not a multiple of 8,
583 * the filter adjusts the width of the unencoded image to the next mul- 565 * the filter adjusts the width of the unencoded image to the next mul-
584 * tiple of 8, so that each line starts on a byte boundary. Default value: 566 * tiple of 8, so that each line starts on a byte boundary. Default value:
585 * 1728. 567 * 1728.
586 **/ 568 **/
587 bool has_Columns() const { 569 bool has_Columns() const {
588 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colum ns", "", NULL)); 570 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Colum ns", "", NULL));
589 } 571 }
590 572
591 long Columns() const { 573 long Columns() const;
592 long ret;
593 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Columns", " ", &ret)) return ret;
594 // TODO(edisonn): warn about missing required field, assert for known good p dfs
595 return 0;
596 }
597
598 /** ()The height of the image in scan lines. If the value is 0 or absent, the 574 /** ()The height of the image in scan lines. If the value is 0 or absent, the
599 * image's height is not predetermined, and the encoded data must be 575 * image's height is not predetermined, and the encoded data must be
600 * terminated by an end-of-block bit pattern or by the end of the fil- 576 * terminated by an end-of-block bit pattern or by the end of the fil-
601 * ter's data. Default value: 0. 577 * ter's data. Default value: 0.
602 **/ 578 **/
603 bool has_Rows() const { 579 bool has_Rows() const {
604 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rows" , "", NULL)); 580 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rows" , "", NULL));
605 } 581 }
606 582
607 long Rows() const { 583 long Rows() const;
608 long ret;
609 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rows", "", &ret)) return ret;
610 // TODO(edisonn): warn about missing required field, assert for known good p dfs
611 return 0;
612 }
613
614 /** ()A flag indicating whether the filter expects the encoded data to be 584 /** ()A flag indicating whether the filter expects the encoded data to be
615 * terminated by an end-of-block pattern, overriding the Rows pa- 585 * terminated by an end-of-block pattern, overriding the Rows pa-
616 * rameter. If false, the filter stops when it has decoded the number of 586 * rameter. If false, the filter stops when it has decoded the number of
617 * lines indicated by Rows or when its data has been exhausted, which- 587 * lines indicated by Rows or when its data has been exhausted, which-
618 * ever occurs first. The end-of-block pattern is the CCITT end-of- 588 * ever occurs first. The end-of-block pattern is the CCITT end-of-
619 * facsimile-block (EOFB) or return-to-control (RTC) appropriate for 589 * facsimile-block (EOFB) or return-to-control (RTC) appropriate for
620 * the K parameter. Default value: true. 590 * the K parameter. Default value: true.
621 **/ 591 **/
622 bool has_EndOfBlock() const { 592 bool has_EndOfBlock() const {
623 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOf Block", "", NULL)); 593 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOf Block", "", NULL));
624 } 594 }
625 595
626 bool EndOfBlock() const { 596 bool EndOfBlock() const;
627 bool ret;
628 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EndOfBlock" , "", &ret)) return ret;
629 // TODO(edisonn): warn about missing required field, assert for known good p dfs
630 return false;
631 }
632
633 /** ()A flag indicating whether 1 bits are to be interpreted as black pixels 597 /** ()A flag indicating whether 1 bits are to be interpreted as black pixels
634 * and 0 bits as white pixels, the reverse of the normal PDF convention 598 * and 0 bits as white pixels, the reverse of the normal PDF convention
635 * for image data. Default value: false. 599 * for image data. Default value: false.
636 **/ 600 **/
637 bool has_BlackIs1() const { 601 bool has_BlackIs1() const {
638 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black Is1", "", NULL)); 602 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Black Is1", "", NULL));
639 } 603 }
640 604
641 bool BlackIs1() const { 605 bool BlackIs1() const;
642 bool ret;
643 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BlackIs1", "", &ret)) return ret;
644 // TODO(edisonn): warn about missing required field, assert for known good p dfs
645 return false;
646 }
647
648 /** ()The number of damaged rows of data to be tolerated before an 606 /** ()The number of damaged rows of data to be tolerated before an
649 * error occurs. This entry applies only if EndOfLine is true and K is 607 * error occurs. This entry applies only if EndOfLine is true and K is
650 * nonnegative. Tolerating a damaged row means locating its end in 608 * nonnegative. Tolerating a damaged row means locating its end in
651 * the encoded data by searching for an EndOfLine pattern and then 609 * the encoded data by searching for an EndOfLine pattern and then
652 * substituting decoded data from the previous row if the previous 610 * substituting decoded data from the previous row if the previous
653 * row was not damaged, or a white scan line if the previous row was 611 * row was not damaged, or a white scan line if the previous row was
654 * also damaged. Default value: 0. 612 * also damaged. Default value: 0.
655 **/ 613 **/
656 bool has_DamagedRowsBeforeError() const { 614 bool has_DamagedRowsBeforeError() const {
657 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Damag edRowsBeforeError", "", NULL)); 615 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Damag edRowsBeforeError", "", NULL));
658 } 616 }
659 617
660 long DamagedRowsBeforeError() const { 618 long DamagedRowsBeforeError() const;
661 long ret;
662 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DamagedRows BeforeError", "", &ret)) return ret;
663 // TODO(edisonn): warn about missing required field, assert for known good p dfs
664 return 0;
665 }
666
667 }; 619 };
668 620
669 #endif // __DEFINED__SkPdfCcittfaxdecodeFilterDictionary 621 #endif // __DEFINED__SkPdfCcittfaxdecodeFilterDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698