Lines Matching defs:type

31  * Specialize for each valid type, including sub-IFDs.
37 const sp<TiffIfd>* TiffEntry::forceValidType<sp<TiffIfd> >(TagType type, const sp<TiffIfd>* value) {
38 if (type == LONG) {
41 ALOGE("%s: Value of type 'ifd' is not valid for tag with TIFF type %d.",
42 __FUNCTION__, type);
47 const uint8_t* TiffEntry::forceValidType<uint8_t>(TagType type, const uint8_t* value) {
48 if (type == BYTE || type == ASCII || type == UNDEFINED) {
51 ALOGE("%s: Value of type 'uint8_t' is not valid for tag with TIFF type %d.",
52 __FUNCTION__, type);
57 const int8_t* TiffEntry::forceValidType<int8_t>(TagType type, const int8_t* value) {
58 if (type == SBYTE || type == ASCII || type == UNDEFINED) {
61 ALOGE("%s: Value of type 'int8_t' is not valid for tag with TIFF type %d.",
62 __FUNCTION__, type);
67 const uint16_t* TiffEntry::forceValidType<uint16_t>(TagType type, const uint16_t* value) {
68 if (type == SHORT) {
71 ALOGE("%s: Value of type 'uint16_t' is not valid for tag with TIFF type %d.",
72 __FUNCTION__, type);
77 const int16_t* TiffEntry::forceValidType<int16_t>(TagType type, const int16_t* value) {
78 if (type == SSHORT) {
81 ALOGE("%s: Value of type 'int16_t' is not valid for tag with TIFF type %d.",
82 __FUNCTION__, type);
87 const uint32_t* TiffEntry::forceValidType<uint32_t>(TagType type, const uint32_t* value) {
88 if (type == LONG || type == RATIONAL) {
91 ALOGE("%s: Value of type 'uint32_t' is not valid for tag with TIFF type %d.",
92 __FUNCTION__, type);
97 const int32_t* TiffEntry::forceValidType<int32_t>(TagType type, const int32_t* value) {
98 if (type == SLONG || type == SRATIONAL) {
101 ALOGE("%s: Value of type 'int32_t' is not valid for tag with TIFF type %d.",
102 __FUNCTION__, type);
107 const double* TiffEntry::forceValidType<double>(TagType type, const double* value) {
108 if (type == DOUBLE) {
111 ALOGE("%s: Value of type 'double' is not valid for tag with TIFF type %d.",
112 __FUNCTION__, type);
117 const float* TiffEntry::forceValidType<float>(TagType type, const float* value) {
118 if (type == FLOAT) {
121 ALOGE("%s: Value of type 'float' is not valid for tag with TIFF type %d.",
122 __FUNCTION__, type);
129 output.appendFormat("[id: %x, type: %d, count: %u, value: '", getTag(), getType(), count);
136 TagType type = getType();
137 switch (type) {
221 output.append("unknown type ");