Spriteful TErminal GrAphics Protocol: Difference between revisions
| Line 52: | Line 52: | ||
For a 1000x1000 pixel bitmap, assuming uniform random distribution of values, this is the difference between transmitting 5.07MB and 3.84MB. | For a 1000x1000 pixel bitmap, assuming uniform random distribution of values, this is the difference between transmitting 5.07MB and 3.84MB. | ||
If this worst possible case is unacceptable, the semantics of the byte following a 25 could be expanded such that a new escape character was specified, but this seems kinda silly (and wouldn't help if the pixels are being generated on the fly, anyway, or if the offending values were the unmappable 27) | * If this worst possible case is unacceptable, the semantics of the byte following a 25 could be expanded such that a new escape character was specified, but this seems kinda silly (and wouldn't help if the pixels are being generated on the fly, anyway, or if the offending values were the unmappable 27). | ||
It might be desirable to define deeper samples than 8bpc (10- and 16-bit, presumably). | Beyond this inferior worst case, downsides include that base64 is very well known, whereas this is a strange and inelegant encoding, that this encoding is not seven-bit-clean, and that it's difficult to know how many bytes this will require. | ||
* It might be desirable to define deeper samples than 8bpc (10- and 16-bit, presumably). | |||
===Compressed data=== | ===Compressed data=== | ||