Lines Matching refs:src_image
863 bool ZipModeImage::CheckAndProcessChunks(ZipModeImage* tgt_image, ZipModeImage* src_image) { in CheckAndProcessChunks() argument
869 ImageChunk* src_chunk = src_image->FindChunkByName(tgt_chunk.GetEntryName()); in CheckAndProcessChunks()
904 const ZipModeImage& src_image, in SplitZipModeImageWithLimit() argument
908 CHECK_EQ(tgt_image.limit_, src_image.limit_); in SplitZipModeImageWithLimit()
911 src_image.DumpChunks(); in SplitZipModeImageWithLimit()
917 const auto& central_directory = src_image.cend() - 1; in SplitZipModeImageWithLimit()
926 const ImageChunk* src = src_image.FindChunkByName(tgt->GetEntryName(), true); in SplitZipModeImageWithLimit()
958 tgt_image, src_image, src_ranges, split_tgt_chunks, split_src_chunks, split_tgt_images, in SplitZipModeImageWithLimit()
978 bool added_image = ZipModeImage::AddSplitImageFromChunkList(tgt_image, src_image, src_ranges, in SplitZipModeImageWithLimit()
992 const ZipModeImage& src_image, in AddSplitImageFromChunkList() argument
1044 size_t end = std::min(src_image.file_content_.size(), r.second * BLOCK_SIZE); in AddSplitImageFromChunkList()
1046 src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList()
1047 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
1099 const ZipModeImage& src_image, in GeneratePatchesInternal() argument
1115 : src_image.FindChunkByName(tgt_chunk.GetEntryName()); in GeneratePatchesInternal()
1117 const auto& src_ref = (src_chunk == nullptr) ? src_image.PseudoSource() : *src_chunk; in GeneratePatchesInternal()
1142 bool ZipModeImage::GeneratePatches(const ZipModeImage& tgt_image, const ZipModeImage& src_image, in GeneratePatches() argument
1146 ZipModeImage::GeneratePatchesInternal(tgt_image, src_image, &patch_chunks); in GeneratePatches()
1375 bool ImageModeImage::CheckAndProcessChunks(ImageModeImage* tgt_image, ImageModeImage* src_image) { in CheckAndProcessChunks() argument
1378 src_image->MergeAdjacentNormalChunks(); in CheckAndProcessChunks()
1380 if (tgt_image->NumOfChunks() != src_image->NumOfChunks()) { in CheckAndProcessChunks()
1383 src_image->DumpChunks(); in CheckAndProcessChunks()
1387 if ((*tgt_image)[i].GetType() != (*src_image)[i].GetType()) { in CheckAndProcessChunks()
1390 src_image->DumpChunks(); in CheckAndProcessChunks()
1397 auto& src_chunk = (*src_image)[i]; in CheckAndProcessChunks()
1419 src_image->MergeAdjacentNormalChunks(); in CheckAndProcessChunks()
1420 if (tgt_image->NumOfChunks() != src_image->NumOfChunks()) { in CheckAndProcessChunks()
1432 const ImageModeImage& src_image, in GeneratePatches() argument
1440 const auto& src_chunk = src_image[i]; in GeneratePatches()
1554 ZipModeImage src_image(true, blocks_limit * BLOCK_SIZE); in imgdiff() local
1557 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1564 if (!ZipModeImage::CheckAndProcessChunks(&tgt_image, &src_image)) { in imgdiff()
1579 ZipModeImage::SplitZipModeImageWithLimit(tgt_image, src_image, &split_tgt_images, in imgdiff()
1587 } else if (!ZipModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()
1591 ImageModeImage src_image(true); in imgdiff() local
1594 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1601 if (!ImageModeImage::CheckAndProcessChunks(&tgt_image, &src_image)) { in imgdiff()
1605 if (!bonus_data.empty() && !src_image.SetBonusData(bonus_data)) { in imgdiff()
1609 if (!ImageModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()