Loading media/img_utils/src/TiffEntry.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -203,14 +203,20 @@ String8 TiffEntry::toString() const { } break; } case FLOAT: case DOUBLE: { case FLOAT: { const float* typed_data = getData<float>(); for (size_t i = 0; i < cappedCount; ++i) { output.appendFormat("%f ", typed_data[i]); } break; } case DOUBLE: { const double* typed_data = getData<double>(); for (size_t i = 0; i < cappedCount; ++i) { output.appendFormat("%f ", typed_data[i]); } break; } default: { output.append("unknown type "); break; Loading media/img_utils/src/TiffWriter.cpp +3 −5 Original line number Diff line number Diff line Loading @@ -66,10 +66,6 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou return BAD_VALUE; } if (LOG_NDEBUG == 0) { log(); } uint32_t totalSize = getTotalSize(); KeyedVector<uint32_t, uint32_t> offsetVector; Loading Loading @@ -104,7 +100,9 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou ifd = ifd->getNextIfd(); } if (LOG_NDEBUG == 0) { log(); } for (size_t i = 0; i < offVecSize; ++i) { uint32_t ifdKey = offsetVector.keyAt(i); Loading Loading
media/img_utils/src/TiffEntry.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -203,14 +203,20 @@ String8 TiffEntry::toString() const { } break; } case FLOAT: case DOUBLE: { case FLOAT: { const float* typed_data = getData<float>(); for (size_t i = 0; i < cappedCount; ++i) { output.appendFormat("%f ", typed_data[i]); } break; } case DOUBLE: { const double* typed_data = getData<double>(); for (size_t i = 0; i < cappedCount; ++i) { output.appendFormat("%f ", typed_data[i]); } break; } default: { output.append("unknown type "); break; Loading
media/img_utils/src/TiffWriter.cpp +3 −5 Original line number Diff line number Diff line Loading @@ -66,10 +66,6 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou return BAD_VALUE; } if (LOG_NDEBUG == 0) { log(); } uint32_t totalSize = getTotalSize(); KeyedVector<uint32_t, uint32_t> offsetVector; Loading Loading @@ -104,7 +100,9 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou ifd = ifd->getNextIfd(); } if (LOG_NDEBUG == 0) { log(); } for (size_t i = 0; i < offVecSize; ++i) { uint32_t ifdKey = offsetVector.keyAt(i); Loading