Code Monkey home page Code Monkey logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
恐怕不太容易。
首先非常感觉作者提供了这个源码,最近我也花了些时间来��
�理,并解决了一些问题,但是oome的问题仍然没有根本解决。
现在只有强制结束解析了。
附件为修改的代码。
gf2=(GifView2) findViewById(R.id.gif2);
        gf2.setGifImageType(GifView2.GifImageType.ANIMATION);
        try {
            File file=new File("/sdcard/test.gif");
            FileInputStream fis=null;

            fis=new FileInputStream(file);
            System.out.println("fis:"+fis.available());
            gf2.setGifImage(fis);

            /*FileInputStream fileInputStream=new FileInputStream(file);
            byte[] bytes=new byte[fileInputStream.available()];
            fileInputStream.read(bytes);
            gf2.setGifImage(bytes);*/
            gf2.setOnClickListener(this);
        } catch (IOException e) {
            e.printStackTrace();
        }测试代码。

动态的解析,播放个人认为不太好,太耗内存了。

Original comment by [email protected] on 13 Dec 2011 at 10:11

Attachments:

from gifview.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
理论上OOM是无解的。
其实我曾经想把解码后的图片保持成文件,以此来解决OOM,��
�实际效果太差了。在代码中你可以看到这部分代码,虽然我�
��这个接口注释了,但代码没有删除。

Original comment by [email protected] on 25 Apr 2012 at 8:52

from gifview.

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.