Skip to content

Conversation

@sukibaby
Copy link

@sukibaby sukibaby commented Oct 5, 2024

Currently, one usually has to upload the gif multiple times before it's properly applied to the stage (at least with Gen4/Gen5, this is a commonly known issue - not sure if earlier model stages are affected?). This fixes the relevant bugs preventing it from uploading correctly the first time.

  1. Reserve memory to avoid multiple allocations in ReadBytes
  2. Reorganize skip-past-end-of-data method in ReadLZWCode
  3. Expand method to clear the dictionary in LWZDecoder::DecodeImage()
  4. Use a std::array instead of a raw array
  5. Initialize the array with zeros
  6. Use data() to get the pointer of the packet data in CreateUploadPackets

Currently, one usually has to upload the gif multiple times before it's properly applied to the stage. This fixes the relevant bugs preventing it from uploading correctly the first time.

1)  Reserve memory to avoid multiple allocations in ReadBytes
2)  Reorganize skip-past-end-of-data method in ReadLZWCode
3)  Expand method to clear the dictionary in LWZDecoder::DecodeImage()
4)  Use a std::array instead of a raw array
5)  Initialize the array with zeros
6)  Use data() to get the pointer of the packet data in CreateUploadPackets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant