Code Monkey home page Code Monkey logo

ofxgifdecoder's People

Contributors

jesusgollonet avatar robotconscience avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ofxgifdecoder's Issues

Transparency

Looking at the code (specifically ofxGifDecoder::createGifFile), it seems that there is no alpha channel. I'm I safe in assuming that gifs cannot have transparency at this point, or am I mistaken?

Licensing

Hello!

I'd love to use your code in my project, and improve on it so it doesn't crash a ton. Can you please license it under the MIT License? (openFrameworks and most other addons use this license.)

Unable to load 35% of gifs.

the
case GIF_DISPOSAL_UNSPECIFIED:
_px.setColor(x,y,accumPx.getColor(cropX, cropY));
accumPx.setColor(x,y,_px.getColor(cropX, cropY));

line in ofxGifFile causes a hard crash with many gifs. maybe 35% of all gifs. I've spent the entire evening trying to get it to work and i can load every gif file if i always set accumPx (to a color) at the beginning of the "addFrame" function. It however introduced horrible artifacts of color. Its tough.. this thing you've made is amazing and works so well, except when it doesn't. I've kind of taken the debugging as far as i can without knowing why the whole thing works the way it does.

here are 3 gifs that ofXGifDecoder is unable to load: https://www.dropbox.com/sh/7ch5dsq9ctzg4jf/AABCD5DEToP-H_GHjAhJdYYOa?dl=0

is there some miracle chance you could take a look at this?

PixelType is not declared

ofxDecoder.cpp

This addon is giving me this error:
undeclared PixelType definition.

The line of code looks like this:
unsigned int channels = (bpp / sizeof(PixelType)) / 8;

EXC_BAD_ACCESS error

Hi, i imported your files, and it seems the decoder file gets the app stuck on this error.

it gets stuck in the getpixel(int x, int y) function, in the if(channel == 4) line.

this one: c.set( pixels[index], pixels[index+1], pixels[index+2], pixels[index+3] );

any idea how to fix it?

thanks in advance.

Jan

Memory Leak

I've isolated it to the "ofxGifDecoder::processFrame(FIBITMAP * bmp, int _frameNum)" function.

leakyleaky

Quite a large leak for anyone using this addon

Can't load more than 1 frame?

When trying to load an animated gif using ofxGifDecoder, I'm not able to load more than 1 frame. All frames after the first loaded page show up blank.

Weirdly enough, I encounter this issue when trying to run pure freeimage examples too, so it may be a bug all the way back in their library? Just curious as to if anyone else has seen this issue also.

Using freeimage 3.15.1, head of openFrameworks and ofxGifDecoder repo as of 2012-10-25.

(Speaking of, ofxGifDecoder doesn't compile out of the repo due to what looks like some copy/pasted code from ofxCore (using PixelType template without actually declaring the template type)? Will submit pull request for that fix)

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.