Comments (4)
It's only a protection for what may happend.That the allocated buffer size is not match what exactly needed.
from apng4android.
这边遇到了一种情况
有时FrameAnimationDrawable的onRender方法调用时frameSeqDecoder.getSampleSize()返回的是1
接着frameSeqDecoder的setDesiredSize调用,然后sampleSize就变成2了
再往后的onRender方法里,给过来的byteBuffer就小了,但是bitmap已经创建了,还是原来的大小所以
if (byteBuffer.remaining() < this.bitmap.getByteCount()) {
Log.e(TAG, "onRender:Buffer not large enough for pixels");
return;
}
这个条件就一直是true了,就一直报这个错误了
from apng4android.
你这个问题是在渲染过程中修改imageview的尺寸了吗
from apng4android.
你这个问题是在渲染过程中修改imageview的尺寸了吗
我看开了个新issue,在那里说吧
from apng4android.
Related Issues (20)
- 使用Glide插件 加载没有动画效果了? HOT 1
- How to load APNG file from Shared AssetFolder.? HOT 2
- Apng fails to render with versions newer then 2.23.0 HOT 9
- Seekbar 的 thumb 中无法使用 HOT 4
- 调用WebPEncoder.fromGif实现gif转webp,webp出现闪的问题 HOT 13
- 虚拟内存变大 HOT 1
- 虚拟内存变大
- AVIF 的动画能够支持一下吗? HOT 1
- Is there a way to use this with compose? HOT 2
- Gif memory leak HOT 8
- Make APNGDecoder#getLoopCount public method
- [QUESTION]: libwebp vulnerabilty HOT 5
- Cause: broken jar file?: com.github.penfeizhou.animation.frameanimation.R HOT 1
- notifyItemChanged 刷新之后其他item会暂停
- 使用ImageSpan时,不会自动播放,有没有不使用定时刷新invalidate的方案 HOT 7
- recycleview加载apng我没有直接使用glide加载,我是先通过下载到本地的方式再转的APNGDrawable.fromFile(filePath),会偶现动画不播的情况
- [bug] onRender:Buffer not large enough for pixels HOT 1
- Glide 支持 DiskCacheStrategy.ALL 和 DiskCacheStrategy.RESOURCE 示意代码
- Fatal Exception: java.lang.OutOfMemoryError android.graphics.Bitmap.nativeCreate (Bitmap.java) android.graphics.Bitmap.createBitmap (Bitmap.java:991)
- AVIF module is unavailable on maven HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apng4android.