Libraryless. Click here for Pure Java version (11219L/65K).
sclass SSIListFrame > MetaWithChangeListeners is ByteIO, MakesBufferedImage { settable int magicMarker = 0xFFFFBABE; settableWithVar long timestampInMS; settableWithVar new WidthAndHeightImpl resolution; settableWithVar new SSIList content; public void readWrite(ByteHead head) { head.exchangeInt(magicMarker); head.exchangeLong(varTimestampInMS()); head.exchange(resolution); head.exchangeWithSize(content); } public int getWidth() { ret resolution.w(); } public int getHeight() { ret resolution.h(); } public BufferedImage getBufferedImage aka render() { ret content.render(resolution); } }
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: | 191 / 263 |
Version history: | 7 change(s) |
Referenced in: | [show references] |