Giter VIP home page Giter VIP logo

Comments (4)

penfeizhou avatar penfeizhou commented on June 18, 2024

It's only a protection for what may happend.That the allocated buffer size is not match what exactly needed.

from apng4android.

ffts avatar ffts commented on June 18, 2024

这边遇到了一种情况
有时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.

jingpeng avatar jingpeng commented on June 18, 2024

你这个问题是在渲染过程中修改imageview的尺寸了吗

from apng4android.

ffts avatar ffts commented on June 18, 2024

你这个问题是在渲染过程中修改imageview的尺寸了吗

我看开了个新issue,在那里说吧

from apng4android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.