Lines Matching refs:imgdiff
34 def compute_patch(src, tgt, imgdiff=False):
52 if imgdiff:
53 p = subprocess.call(["imgdiff", "-z", srcfile, tgtfile, patchfile],
324 # imgdiff patchstart patchlen <src rangeset> <tgt rangeset>
329 # imgdiff patchstart patchlen <tgt rangeset> <src_string>
352 elif xf.style in ("bsdiff", "imgdiff"):
447 # like to use imgdiff -z if possible (because it usually
458 # which is what imgdiff needs to operate. (imgdiff is
460 imgdiff = (xf.intact and
463 xf.style = "imgdiff" if imgdiff else "bsdiff"
485 patch = compute_patch(src, tgt, imgdiff=(xf.style == "imgdiff"))