Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated WebP image issue using LoadTexturesAsync #63

Open
dw8869 opened this issue Feb 23, 2024 · 4 comments
Open

Animated WebP image issue using LoadTexturesAsync #63

dw8869 opened this issue Feb 23, 2024 · 4 comments

Comments

@dw8869
Copy link

dw8869 commented Feb 23, 2024

using unity.webp 0.3.11

Due to our application scenario, asynchronous loading is required.
There is an issue of image output when you call the method below and use it.

WebP.Experiment.Animation.WebP.LoadTexturesAsync(byte[])

We tested 3 images.

There is a problem with the pixel looking broken as shown in the screenshot below.
image

And the error log below is also output.
[WebPDecoderWrapper] Bytes to texture error: LoadRawTextureData: not enough data provided (will result in overread).

@netpyoung
Copy link
Owner

I also have same problem of that. There is something what I can't understand when passing decoding option. So please avoid to use Experiment that function.

  • check Samples/example2/animation.unity then moidfy WebpAnimation.cs logic to fit your game.

@dw8869
Copy link
Author

dw8869 commented Mar 11, 2024

@netpyoung
As I checked, the WebPDemuxGetFrame function returns the width and height values abnormally.

@netpyoung
Copy link
Owner

@dw8869

It seems so. WebP.Experiment.Animation.WebPDecoderWrapper.CreateDecoder couldn't create proper decoder.
I also tried to modify to change decoder's behaviour via options but failed until now.

@dw8869
Copy link
Author

dw8869 commented May 23, 2024

any updates?

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

No branches or pull requests

2 participants