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()
1045 src_content.insert(src_content.end(), src_image.file_content_.begin() + r.first * BLOCK_SIZE, in AddSplitImageFromChunkList()
1046 src_image.file_content_.begin() + end); in AddSplitImageFromChunkList()
1098 const ZipModeImage& src_image, in GeneratePatchesInternal() argument
1114 : src_image.FindChunkByName(tgt_chunk.GetEntryName()); in GeneratePatchesInternal()
1116 const auto& src_ref = (src_chunk == nullptr) ? src_image.PseudoSource() : *src_chunk; in GeneratePatchesInternal()
1141 bool ZipModeImage::GeneratePatches(const ZipModeImage& tgt_image, const ZipModeImage& src_image, in GeneratePatches() argument
1145 ZipModeImage::GeneratePatchesInternal(tgt_image, src_image, &patch_chunks); in GeneratePatches()
1374 bool ImageModeImage::CheckAndProcessChunks(ImageModeImage* tgt_image, ImageModeImage* src_image) { in CheckAndProcessChunks() argument
1377 src_image->MergeAdjacentNormalChunks(); in CheckAndProcessChunks()
1379 if (tgt_image->NumOfChunks() != src_image->NumOfChunks()) { in CheckAndProcessChunks()
1382 src_image->DumpChunks(); in CheckAndProcessChunks()
1386 if ((*tgt_image)[i].GetType() != (*src_image)[i].GetType()) { in CheckAndProcessChunks()
1389 src_image->DumpChunks(); in CheckAndProcessChunks()
1396 auto& src_chunk = (*src_image)[i]; in CheckAndProcessChunks()
1418 src_image->MergeAdjacentNormalChunks(); in CheckAndProcessChunks()
1419 if (tgt_image->NumOfChunks() != src_image->NumOfChunks()) { in CheckAndProcessChunks()
1431 const ImageModeImage& src_image, in GeneratePatches() argument
1439 const auto& src_chunk = src_image[i]; in GeneratePatches()
1553 ZipModeImage src_image(true, blocks_limit * BLOCK_SIZE); in imgdiff() local
1556 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1563 if (!ZipModeImage::CheckAndProcessChunks(&tgt_image, &src_image)) { in imgdiff()
1578 ZipModeImage::SplitZipModeImageWithLimit(tgt_image, src_image, &split_tgt_images, in imgdiff()
1586 } else if (!ZipModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()
1590 ImageModeImage src_image(true); in imgdiff() local
1593 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1600 if (!ImageModeImage::CheckAndProcessChunks(&tgt_image, &src_image)) { in imgdiff()
1604 if (!bonus_data.empty() && !src_image.SetBonusData(bonus_data)) { in imgdiff()
1608 if (!ImageModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()