Skip to content

Commit

Permalink
Merge branch 'master' into Faster-Data-Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenc authored Dec 7, 2020
2 parents b5acb69 + 1f623ae commit f25b297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ With the following arguments meaning:
01/07/2016 1.00a cacheXXXX.bin header detection fixed.
27/06/2016 1.00 Initial release.
```
## Footnote
Unlike Python2, Python3 is quite slow at generating collage bitmap...
1 change: 0 additions & 1 deletion bmc-tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def b_export(self, dname):
collage_builder = (lambda x, a=self, PAD=len(pad), WIDTH=range(w // 64): b''.join([b''.join([a.bmps[a.STRIPE_WIDTH*(x+1)-1-k][64*PAD*j:64*PAD*(j+1)] for k in WIDTH]) for j in range(64)]))
else:
collage_builder = (lambda x, a=self, PAD=len(pad), WIDTH=range(w // 64): b''.join([b''.join([a.bmps[a.STRIPE_WIDTH*x+k][64*PAD*j:64*PAD*(j+1)] for k in WIDTH]) for j in range(64)]))

c_bmp += b''.join(map(collage_builder, range(h//64)))
self.b_write(os.path.join(dname, "%s_collage.bmp" % (self.fname)), self.b_export_bmp(w, h, c_bmp))
self.b_log(sys.stdout, False, 0, "Successfully exported collage file.")
Expand Down

0 comments on commit f25b297

Please sign in to comment.