/external/dng_sdk/source/ |
D | dng_safe_arithmetic.cpp | 120 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, in SafeUint32Mult() function 123 *result = SafeUint32Mult(arg1, arg2); in SafeUint32Mult() 130 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, std::uint32_t arg3, in SafeUint32Mult() function 133 *result = SafeUint32Mult(arg1, arg2, arg3); in SafeUint32Mult() 140 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, std::uint32_t arg3, in SafeUint32Mult() function 143 *result = SafeUint32Mult(arg1, arg2, arg3, arg4); in SafeUint32Mult() 150 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2) { in SafeUint32Mult() function 154 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, in SafeUint32Mult() function 156 return SafeUint32Mult(SafeUint32Mult(arg1, arg2), arg3); in SafeUint32Mult() 159 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, in SafeUint32Mult() function [all …]
|
D | dng_resample.cpp | 101 !SafeUint32Mult(dstEntries, sizeof(int32), &bufferSize)) { in Initialize() 190 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize() 191 !SafeUint32Mult (bufferSize, (uint32) sizeof (real32), &bufferSize)) in Initialize() 203 if (!SafeUint32Mult (fWeightStep, kResampleSubsampleCount, &bufferSize) || in Initialize() 204 !SafeUint32Mult (bufferSize, (uint32) sizeof (int16), &bufferSize)) in Initialize() 325 if (!SafeUint32Mult (fRadius, 2, &width) || in Initialize() 326 !SafeUint32Mult (width, width, &widthSqr) || in Initialize() 328 !SafeUint32Mult (step, kResampleSubsampleCount2D, &fRowStep)) in Initialize() 341 if (!SafeUint32Mult (step, kResampleSubsampleCount2D, &bufferSize) || in Initialize() 342 !SafeUint32Mult (bufferSize, kResampleSubsampleCount2D, &bufferSize) || in Initialize() [all …]
|
D | dng_safe_arithmetic.h | 83 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, 85 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, std::uint32_t arg3, 87 bool SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, std::uint32_t arg3, 93 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2); 94 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2, 96 std::uint32_t SafeUint32Mult(std::uint32_t arg1, std::uint32_t arg2,
|
D | dng_hue_sat_map.h | 189 if (!SafeUint32Mult(fValDivisions, fHueDivisions, &deltaCount) || in DeltasCount() 190 !SafeUint32Mult(deltaCount, fSatDivisions, &deltaCount)) in DeltasCount()
|
D | dng_memory_stream.cpp | 127 !SafeUint32Mult (fPagesAllocated, 2u, &newSizeTemp2)) in DoSetLength() 133 if (!SafeUint32Mult (newSize, sizeof (dng_memory_block *), in DoSetLength()
|
D | dng_hue_sat_map.cpp | 123 fValStep = SafeUint32Mult(hueDivisions, fHueStep); in SetDivisions() 125 uint32 size = SafeUint32Mult(DeltasCount (), (uint32) sizeof (HSBModify)); in SetDivisions()
|
D | dng_read_image.cpp | 1190 rows = SafeUint32Mult(rows, planes); in ReadUncompressed() 1194 samplesPerRow = SafeUint32Mult(samplesPerRow, planes); in ReadUncompressed() 1197 uint32 samplesPerTile = SafeUint32Mult(samplesPerRow, rows); in ReadUncompressed() 1825 uint32 bytesPerRow = SafeUint32Mult (tileArea.W(), planes, in ReadLosslessJPEG() 1835 uint32 bufferSize = SafeUint32Mult (bytesPerRow, rowsPerStrip); in ReadLosslessJPEG() 1861 uint32 decodedSize = SafeUint32Mult(tileArea.W (), in ReadLosslessJPEG() 2190 if (!SafeUint32Mult (planes, tileArea.W (), &rowStep) || in ReadTile() 2191 !SafeUint32Mult (rowStep, tileArea.H (), &sampleCount)) in ReadTile() 2243 if (!SafeUint32Mult (rowStep, buffer.fPixelSize, &rowSize) || in ReadTile() 2258 SafeUint32Mult(sampleCount, 4)); in ReadTile() [all …]
|
D | dng_shared.cpp | 588 SafeUint32Mult(fProfileHues, in ParseTag() 597 SafeUint32Mult(fProfileHues, fProfileSats, fProfileVals, 3))) in ParseTag() 635 SafeUint32Mult(fProfileHues, in ParseTag() 644 SafeUint32Mult(fProfileHues, fProfileSats, fProfileVals, 3))) in ParseTag() 757 SafeUint32Mult(fLookTableHues, in ParseTag() 766 SafeUint32Mult(fLookTableHues, in ParseTag() 1090 if (SafeUint32Mult(TagTypeSize (tagType), tagCount) > 4) in ParseExtended() 1352 fIPTC_NAA_Count = SafeUint32Mult(tagCount, in Parse_ifd0()
|
D | dng_utils.cpp | 197 if (!SafeUint32Mult(paddedWidth, tileSizeV, &bufferSize) || in ComputeBufferSize() 198 !SafeUint32Mult(bufferSize, pixelSize, &bufferSize) || in ComputeBufferSize() 199 !SafeUint32Mult(bufferSize, numPlanes, &bufferSize)) in ComputeBufferSize()
|
D | dng_linearization_info.cpp | 180 SafeUint32Mult (fBlack_2D_rows, fBlack_2D_cols, 4))); in dng_linearize_plane() 248 SafeUint32Mult(fBlack_1D_rows, 4))); in dng_linearize_plane() 1212 uint32 size = SafeUint32Mult (rawIFD.fLinearizationTableCount, in Parse() 1245 uint32 size = SafeUint32Mult (rawIFD.fBlackLevelDeltaHCount, in Parse() 1266 uint32 size = SafeUint32Mult (rawIFD.fBlackLevelDeltaVCount, in Parse()
|
D | dng_memory.cpp | 102 if (!SafeUint32Mult(count, elementSizeAsUint32, &numBytes)) in Allocate()
|
D | dng_misc_opcodes.cpp | 296 uint32 requiredSize = SafeUint32Mult(fCount, 2); in dng_opcode_MapTable() 877 fTable.Reset (host.Allocate (SafeUint32Mult (deltas, in dng_opcode_DeltaPerRow() 1083 fTable.Reset (host.Allocate (SafeUint32Mult (deltas, in dng_opcode_DeltaPerColumn() 1290 fTable.Reset (host.Allocate (SafeUint32Mult (scales, in dng_opcode_ScalePerRow() 1467 fTable.Reset (host.Allocate (SafeUint32Mult (scales, in dng_opcode_ScalePerColumn()
|
D | dng_camera_profile.cpp | 970 bool skipSat0 = (profileInfo.fHueSatDeltas1Count == SafeUint32Mult( in Parse() 992 bool skipSat0 = (profileInfo.fHueSatDeltas2Count == SafeUint32Mult( in Parse() 1014 bool skipSat0 = (profileInfo.fLookTableCount == SafeUint32Mult( in Parse()
|
D | dng_negative.cpp | 1499 if (!SafeUint32Mult (kBufferRows, buffer.fRowStep, &bufferBytes) || in FindImageDigest() 1500 !SafeUint32Mult (bufferBytes, buffer.fPixelSize, &bufferBytes)) in FindImageDigest() 2433 if (!SafeUint32Mult (count, (uint32) sizeof (real64), &byteCount)) in SetRowBlacks() 2476 if (!SafeUint32Mult (count, (uint32) sizeof (real64), &byteCount)) in SetColumnBlacks() 4201 SafeUint32Mult (fDefaultCropSizeH.n, adjust); in BuildStage3Image() 4203 SafeUint32Mult (fDefaultCropOriginH.n, adjust); in BuildStage3Image() 4204 fDefaultScaleH .d = SafeUint32Mult (fDefaultScaleH.d, adjust); in BuildStage3Image() 4216 SafeUint32Mult (fDefaultCropSizeV.n, adjust); in BuildStage3Image() 4218 SafeUint32Mult (fDefaultCropOriginV.n, adjust); in BuildStage3Image() 4220 SafeUint32Mult (fDefaultScaleV.d, adjust); in BuildStage3Image()
|
D | dng_ifd.cpp | 1330 SafeUint32Mult(fCFARepeatPatternRows, fCFARepeatPatternCols))) in ParseTag() 1539 if (!CheckTagCount (parentCode, tagCode, tagCount, SafeUint32Mult(fBlackLevelRepeatRows, in ParseTag() 4060 uint32 bitsPerRow = SafeUint32Mult(tile.W (), fBitsPerSample [0]); in TileByteCount() 4065 bitsPerRow = SafeUint32Mult(bitsPerRow, fSamplesPerPixel); in TileByteCount() 4074 bytesPerRow = SafeUint32Mult(bytesPerRow, fSamplesPerPixel); in TileByteCount() 4078 return SafeUint32Mult(bytesPerRow, tile.H ()); in TileByteCount()
|
D | dng_info.cpp | 387 uint32 tag_data_size = SafeUint32Mult(tagCount, tag_type_size); in ValidateIFD() 552 if (SafeUint32Mult(tagCount, tag_type_size) > 4) in ParseIFD() 749 uint32 tagSize = SafeUint32Mult(tagCount, TagTypeSize (tagType)); in ParseMakerNoteIFD() 1845 uint32 tagSize = SafeUint32Mult(tagCount, TagTypeSize (tagType)); in ParseDNGPrivateData()
|
D | dng_render.cpp | 970 if (!SafeUint32Mult (tileSize.h, (uint32) sizeof (real32), &tempBufferSize) || in Start() 971 !SafeUint32Mult (tempBufferSize, 3, &tempBufferSize)) in Start()
|
D | dng_jpeg_image.cpp | 102 uint32 uncompressedSize = SafeUint32Mult ( in Process()
|
D | dng_string.cpp | 670 const uint32 destBufferLength = SafeUint32Add (SafeUint32Mult (len, 3), 1); in Set_UTF8() 1213 SafeUint32Add (SafeUint32Mult (length16, 6), 1); in Set_UTF16() 2073 SafeUint32Add (SafeUint32Mult(Length(), 3), 1); in ForceASCII()
|
D | dng_gain_map.cpp | 263 , fRowStep (SafeUint32Mult(planes, points.h)) in dng_gain_map()
|
D | dng_image_writer.cpp | 2562 fToneCurveBuffer.Allocate (SafeUint32Mult(toneCurvePoints, 2), in profile_tag_set() 2693 return SafeUint32Add (SafeUint32Mult (uncompressedSize, 2), 1024); in CompressedBufferSize() 2716 return SafeUint32Mult (uncompressedSize, 2); in CompressedBufferSize() 3101 uint32 tempBufferSize = SafeUint32Mult ( in EncodePredictor() 4604 uint32 bytesPerPixel = SafeUint32Mult (ifd.fSamplesPerPixel, in WriteImage() 4607 uint32 tileRowBytes = SafeUint32Mult (ifd.fTileWidth, bytesPerPixel); in WriteImage() 4630 uint32 uncompressedSize = SafeUint32Mult(subTileLength, tileRowBytes); in WriteImage()
|
D | dng_date_time.cpp | 116 x = SafeUint32Mult(x, 10); in DateTimeParseU32()
|
D | dng_bad_pixels.cpp | 612 SafeUint32Add(12, SafeUint32Add(SafeUint32Mult(pCount, 8), SafeUint32Mult(rCount, 16))); in dng_opcode_FixBadPixelsList()
|
D | dng_pixel_buffer.cpp | 32 return SafeUint32Mult(arg1, arg2, &uint32_result) && in SafeUint32ToInt32Mult()
|