Git Product home page Git Product logo

gifview's People

Watchers

 avatar

gifview's Issues

I would like to share some changes I made to your code

Hi,

I added some features to your code and would like to share them back with you 
in case you want to incorporate any of them:
* added GifDecoder.playInReverse() method to reverse frames after reading them 
so that animation can be reverse.
* added corresponding GifView.playInReverse() method
* added GifView.setFullScreen() so that view will take up entire screen and 
then can be positioned in it
* added GifView.setNumberLoops() so that the view will stop drawing after a set 
number of loops of animation, optionally notifying caller when done.
* added another GifView.setShowDimension() that takes a double scale argument 
so that the animation can be easily scaled while preserving the aspect ration.
* added setPositionArea() to allow specifying where on full screen the 
animation will be drawn.  (probably better handled through LayoutParams - this 
was quick and dirty to get desired behavior)
* added setCoordinates to specify where the animation will be drawn.
* added setSpeed() to control how fast animation plays
* added setDrawingListener so caller can be notified of drawing start/finish 
events.
** added GifDrawingListener interface so that GifView user can be notified of 
drawing start and drawing finished events.

I hope you find some of this useful!  I hacked it together pretty quick, and 
haven't really cleaned it up after I got all the desired functionality.  

Original issue reported on code.google.com by [email protected] on 22 Aug 2011 at 6:17

Attachments:

导入jar包后项目报红叹号

你好 有个小问题要请教

我在导入jar包后 项目报红叹号  然后我fix和clean都无效 
右键查看Android library 一切正常 ,在referened library 
里面gifview下没有任何文件  求教了 谢谢


Original issue reported on code.google.com by [email protected] on 18 Sep 2013 at 1:08

缓存bitmap的时候读取失败

把gif图片分解为bitmap放到SDCARD上,然后再读取出来,发现图��
�是NULL的。所以不会显示动画。
currentImage = BitmapFactory.decodeFile(frame.imageName);这个是空的NULL
这是什么情况呢?
如果不保存为图片,那是可以正常播放的,感觉是不是在将bi
tmap存储为文件的时候出错了,但是又看不出个原因。会不会�
��gif图片本身有关?
另外,我觉得找个类也能imageview那样显示静态图片,不一定��
�gif格式的。
能够传入多张图片,实现帧动画,以此达到类似gif图片的效��
�。这样我可以在一个listview中显示不同的图片或者动画而只��
�要加入同一种布局

Original issue reported on code.google.com by [email protected] on 13 Jan 2012 at 9:24

代码运行的时候抛错

具体的错误贴在这里:
java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.test/com.test.TestAction}: android.view.InflateException: 
Binary XML file line #6: Error inflating class com.ant.liao.GifView

Original issue reported on code.google.com by [email protected] on 27 Aug 2012 at 3:53

报告两个问题

1.如果多次使用GifView会出现oom,
2.destory里线程没有被销毁,所以导致性能下降。

我没有修改代码的权力,请楼主可以参考一下。
第一问题,需要解决的问题是bigmap,必要是主动回收。在GifDe
coder.free()方法中,释放前回收bitmap:
GifFrame fg = gifFrame;
while(fg != null){
  if (fg.image != null) { //回收
    fg.image.recycle();
}
fg.image = null;
.......
}
第二个问题,是在GifView中添加destroy方法,在里面主动释放线
程,并调用gifDecoder.free();

Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 7:56

快点解决大图的OOM问题

能否改为解码一帧,并显示,然后释放内存,再解码下一帧��
�再显示,并释放内存?

Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 11:00

java.lang.OutOfMemoryError: bitmap size exceeds VM budget

我用的是2010年5月份的那个jar文件显示gif图片的,从一个activi
ty1跳到另外一个activity2,再从activity2跳到activity1,这样反复22
次就出现了上面那个问题,我想问问能不能再离开这个activity
的时候释放bitmap的内存,那样的话应该就不会产生这个问题��
�吧...或者说有没有什么好的解决方法?


Original issue reported on code.google.com by [email protected] on 2 Aug 2012 at 7:45

非常感谢你的项目

非常感谢你的项目,使我的程序可以播放gif动画
想请教一下要想写这种解析之类的东西,那就要对相应的文��
�格式是如何组织的非常了解才可了?这种程序和应用型的程�
��看起来真是不是一个感觉。虽然自己所在的公司也是做文件
解析的但是自己做的大多是上层,对真正的解析都不了解,��
�了你的程序,才明白一点原来文件是这样解析的。

Original issue reported on code.google.com by [email protected] on 23 Nov 2011 at 6:08

GifView demo : Animation is paused, and can not resume.

What steps will reproduce the problem?
1. play the demo "循环"
2. inser the USB debug line into the phone(my is Nexus 4)
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
GifView1.2.zip

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Feb 2014 at 3:23

OOM解决

OOM问题目前已经解决,但因为原来的账号被google封了,无法��
�新,因此新建了一个来更新,地址为http://code.google.com/p/gifvie
w2

Original issue reported on code.google.com by [email protected] on 19 Apr 2013 at 1:00

gif图片无法更新导致直接崩溃,调用destroy函数后貌似线程无法关闭

刚开始设置给一个gifview对象设置了一个gif图片后,如何将它�
��换成其他的gif图像。我如果直接调用setGifImage方法或产生“�
��程已经开始”的错误。

然后我对gifview对象先调用destroy方法,再调用setGifImage方法设�
��gif图片时候依然是上面的这个错误。

请问如何更新图片。或者如何释放掉里面的线程。


Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 4:59

gifview不能显示静态图片?

gifview只能显示动态图片,不能显示静态图片么?一般情况下�
��一个应用里面既有静态也有动态的图片,请问这个问题有什
么好的解决方法么?谢谢

Original issue reported on code.google.com by [email protected] on 30 Dec 2010 at 9:30

Played frames are not removed

What steps will reproduce the problem?
1. Please use out attached file (it comes from 
http://www.buienradar.nl/images.aspx?jaar=-3&bliksem=0&voor=&soort=loop1uur1x1 )
2. Play it within the app

What is the expected output? What do you see instead?

Expected: a nice radarview

Instead it doesn't clean up the previous frames so a long trail of clouds shows 
on screen.

What version of the product are you using? On what operating system?
Android 2.2.3 HTC Desire HD



Original issue reported on code.google.com by [email protected] on 21 Jul 2011 at 10:30

Attachments:

I would like to join this project developing

  I was seeking for some 3rd party lib for displaying GIF animation, and this one is good reference to me.
  Except displaying GIF animation easily, however this lib is not powerful enough for some advance applications. Of course I can improve it by myself since I have downloaded your source code through the RAR package, but I think I would like to contribute my improvement and enhancement back to this project for more developer could be benefited also.
  If you agree my idea, please upload all your source code in this Google Code SVN repository instead of placing RAR package only, and grant me the permission that I can modify and commit any change in source code from me.

Original issue reported on code.google.com by [email protected] on 2 Jan 2011 at 7:29

我遇到的一些问题

我用listview显示一些我自定义的布局的时候,在自定义布局中
使用了gifview,并且自定义布局中的其他控件的数值是绑定sqli
te的,此时,
执行
holder.IM1.setGifImage(R.drawable.gif1);
就会报错,报数据库没有关闭的错误
但是如果注释掉这句代码,就没有任何错误 

不知道是什么问题,怎么会冲突呢?

Original issue reported on code.google.com by [email protected] on 7 Dec 2011 at 8:50

gif颜色设置问题

貌似只支持gif128仿色

当时负责出图的人给了一张gif,可以在浏览器播放,但是不��
�在android上播放,网上下载的图可以播放

后来我发了几张网上的图给他,他把颜色按照那些图设置成12
8仿色,现在能正常使用。

我把可以和不可以的图片都上传了,希望对你的项目有帮助��
�感谢你的项目!

Original issue reported on code.google.com by [email protected] on 16 Dec 2012 at 5:51

Attachments:

GifDecoder不支持透明度

如果gif图有半透明背景,会解析为黑色背景。
可以在setPixels方法中修改为    
if (!transparency) {
    c = lastBgColor;
}else{
    c=0x00000000;//设置背景色为透明
}

Original issue reported on code.google.com by [email protected] on 2 Aug 2013 at 10:10

GifDecoder类有一部分代码存在问题,造成空引用的异常。

GifDecoder类有一部分代码存在问题,造成空引用的异常。
int save = 0;
if (transparency) {
   save = act[transIndex];
   act[transIndex] = 0; // set transparent color if specified
}
if (act == null) {
   status = STATUS_FORMAT_ERROR; // no color table defined
}

act 是不是应该先判断是否为null?
if (transparency) {
   if(acr != null){
   save = act[transIndex];
   act[transIndex] = 0; // set transparent color if specified
}
}

Original issue reported on code.google.com by [email protected] on 16 Nov 2011 at 6:44

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.