Libraryless. Click here for Pure Java version (11219L/65K).
1 | sclass SSIListFrame > MetaWithChangeListeners is ByteIO, MakesBufferedImage {
|
2 | settable int magicMarker = 0xFFFFBABE; |
3 | settableWithVar long timestampInMS; |
4 | settableWithVar new WidthAndHeightImpl resolution; |
5 | settableWithVar new SSIList content; |
6 | |
7 | public void readWrite(ByteHead head) {
|
8 | head.exchangeInt(magicMarker); |
9 | head.exchangeLong(varTimestampInMS()); |
10 | head.exchange(resolution); |
11 | head.exchangeWithSize(content); |
12 | } |
13 | |
14 | public int getWidth() { ret resolution.w(); }
|
15 | public int getHeight() { ret resolution.h(); }
|
16 | public BufferedImage getBufferedImage aka render() {
|
17 | ret content.render(resolution); |
18 | } |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035630 |
| Snippet name: | SSIListFrame - a frame in a movie (with timestamp and length) with SSIList contents |
| Eternal ID of this version: | #1035630/8 |
| Text MD5: | 8af132b3661e0ee733f2884279d73559 |
| Transpilation MD5: | 220c171689a1a3899cac91a22b9160af |
| Author: | stefan |
| Category: | javax / gazelle 22 |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-27 04:18:50 |
| Source code size: | 655 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 670 / 794 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |