Open olaf-rogalsky opened 7 years ago
@olaf-rogalsky It's my API-design failure...
Content of pixel buffer(data) is not immutable. it can be changed by sixel_encode().
I should rename this function to sixel_encode_from_mutable_buffer()
.
Furthermore I think new API named such as sixel_encode_from_immutable_buffer()
is needed.
For the present, I'm going to document about this matter...
Ah, OK, thanks for the explanation.
By the way: As a long term, stubborn terminal and shell user I really enjoy your efforts in mainstreaming SIXEL graphics :-).
When encoding a ARGB8888 image 2 times in sequence, then the output from the second call is wrong and differs from the first call.
I've observed, that sometimes the image data is corrupted after the first call as well, but I can't reproduce the effect.
Olaf
Screenshot (both outputs):
Example Code