Lines Matching refs:image

159     image = Image.FromFile(image_fname)
161 entries, lines, widths = image.GetListEntries(entry_paths)
194 from binman.image import Image
196 image = Image.FromFile(image_fname)
197 entry = image.FindEntryPath(entry_path)
216 image = Image.FromFile(image_fname)
224 entry = image.FindEntryPath(entry_paths[0])
233 einfos = image.GetListEntries(entry_paths)[0]
253 def BeforeReplace(image, allow_resize): argument
259 state.PrepareFromLoadedData(image)
260 image.LoadData()
265 image.ResetForPack()
268 def ReplaceOneEntry(image, entry, data, do_compress, allow_resize): argument
281 if not image.allow_repack:
287 def AfterReplace(image, allow_resize, write_map): argument
297 ProcessImage(image, update_fdt=True, write_map=write_map,
301 def WriteEntryToImage(image, entry, data, do_compress=True, allow_resize=True, argument
303 BeforeReplace(image, allow_resize)
305 ReplaceOneEntry(image, entry, data, do_compress, allow_resize)
306 AfterReplace(image, allow_resize=allow_resize, write_map=write_map)
330 image = Image.FromFile(image_fname)
331 entry = image.FindEntryPath(entry_path)
332 WriteEntryToImage(image, entry, data, do_compress=do_compress,
335 return image
356 image = Image.FromFile(image_fname)
364 entry = image.FindEntryPath(entry_paths[0])
367 WriteEntryToImage(image, entry, data, do_compress=do_compress,
374 einfos = image.GetListEntries(entry_paths)[0]
378 BeforeReplace(image, allow_resize)
393 ReplaceOneEntry(image, entry, data, do_compress, allow_resize)
398 AfterReplace(image, allow_resize=allow_resize, write_map=write_map)
399 return image
446 for name, image in images.items():
448 new_images[name] = image
463 for image in images.values():
464 image.ExpandEntries()
466 image.AddMissingProperties(True)
467 image.ProcessFdt(dtb)
476 def ProcessImage(image, update_fdt, write_map, get_contents=True, argument
498 image.SetAllowMissing(allow_missing)
499 image.GetEntryContents()
500 image.GetEntryOffsets()
516 image.PackEntries()
519 fname = image.WriteMap()
522 image.SetImagePos()
524 image.SetCalculatedProperties()
528 image.WriteSymbols()
529 sizes_ok = image.ProcessEntryContents()
532 image.ResetForPack()
535 image.Raise('Entries changed size after packing (tried %s passes)' %
538 image.BuildImage()
540 image.WriteMap()
542 image.CheckMissing(missing_list)
545 (image.name, ' '.join([e.name for e in missing_list])))
572 from binman.image import Image
580 ListEntries(args.image, args.paths)
583 ExtractEntries(args.image, args.filename, args.outdir, args.paths,
587 ReplaceEntries(args.image, args.filename, args.indir, args.paths,
620 images = PrepareImagesAndDtbs(dtb_fname, args.image,
623 for image in images.values():
624 missing |= ProcessImage(image, args.update_fdt, args.map,