OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2013 Google Inc. | |
3 | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #include "SkPdfLzwdecodeAndFlatedecodeFiltersDictionary_autogen.h" | |
9 #include "SkPdfNativeDoc.h" | |
10 | |
11 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Predictor(SkPdfNativeDoc*
doc) { | |
12 SkPdfNativeObject* ret = get("Predictor", ""); | |
13 if (doc) {ret = doc->resolveReference(ret);} | |
14 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); | |
15 // TODO(edisonn): warn about missing default value for optional fields | |
16 return 0; | |
17 } | |
18 | |
19 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Predictor() const { | |
20 return get("Predictor", "") != NULL; | |
21 } | |
22 | |
23 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Colors(SkPdfNativeDoc* do
c) { | |
24 SkPdfNativeObject* ret = get("Colors", ""); | |
25 if (doc) {ret = doc->resolveReference(ret);} | |
26 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); | |
27 // TODO(edisonn): warn about missing default value for optional fields | |
28 return 0; | |
29 } | |
30 | |
31 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Colors() const { | |
32 return get("Colors", "") != NULL; | |
33 } | |
34 | |
35 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::BitsPerComponent(SkPdfNat
iveDoc* doc) { | |
36 SkPdfNativeObject* ret = get("BitsPerComponent", ""); | |
37 if (doc) {ret = doc->resolveReference(ret);} | |
38 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); | |
39 // TODO(edisonn): warn about missing default value for optional fields | |
40 return 0; | |
41 } | |
42 | |
43 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_BitsPerComponent() const
{ | |
44 return get("BitsPerComponent", "") != NULL; | |
45 } | |
46 | |
47 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::Columns(SkPdfNativeDoc* d
oc) { | |
48 SkPdfNativeObject* ret = get("Columns", ""); | |
49 if (doc) {ret = doc->resolveReference(ret);} | |
50 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); | |
51 // TODO(edisonn): warn about missing default value for optional fields | |
52 return 0; | |
53 } | |
54 | |
55 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_Columns() const { | |
56 return get("Columns", "") != NULL; | |
57 } | |
58 | |
59 int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::EarlyChange(SkPdfNativeDo
c* doc) { | |
60 SkPdfNativeObject* ret = get("EarlyChange", ""); | |
61 if (doc) {ret = doc->resolveReference(ret);} | |
62 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i
sReference())) return ret->intValue(); | |
63 // TODO(edisonn): warn about missing default value for optional fields | |
64 return 0; | |
65 } | |
66 | |
67 bool SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::has_EarlyChange() const { | |
68 return get("EarlyChange", "") != NULL; | |
69 } | |
OLD | NEW |