Lines Matching refs:src
34 def compute_patch(src, tgt, imgdiff=False): argument
42 for p in src:
218 def __init__(self, tgt, src=None, threads=None, version=3): argument
232 if src is None:
233 src = EmptyImage()
234 self.src = src
238 assert src.blocksize == 4096
242 self.AssertPartition(src.care_map, src.file_map.values())
316 sh = self.HashBlocks(self.src, sr)
347 sh = self.HashBlocks(self.src, sr)
447 self.HashBlocks(self.src, xf.src_ranges),
507 src = self.src.ReadRangeSet(xf.src_ranges)
520 for p in src:
551 diff_q.append((tgt_size, src, tgt, xf, patch_num))
573 tgt_size, src, tgt, xf, patchnum = diff_q.pop()
574 patch = compute_patch(src, tgt, imgdiff=(xf.style == "imgdiff"))
856 src_ranges = self.src.file_map.get("__ZERO", empty)
867 elif tgt_fn in self.src.file_map:
869 Transfer(tgt_fn, tgt_fn, tgt_ranges, self.src.file_map[tgt_fn],
877 Transfer(tgt_fn, src_fn, tgt_ranges, self.src.file_map[src_fn],
888 Transfer(tgt_fn, src_fn, tgt_ranges, self.src.file_map[src_fn],
895 for k in self.src.file_map.keys():