Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] GifTexImage2D #506

Closed
benexus opened this issue Feb 2, 2018 · 7 comments
Closed

[Question] GifTexImage2D #506

benexus opened this issue Feb 2, 2018 · 7 comments

Comments

@benexus
Copy link

benexus commented Feb 2, 2018

Is there any way to know when the gif reaches its end (just before looping) using GifTexImage2D ?

@koral--
Copy link
Owner

koral-- commented Feb 3, 2018

Currently there is no API for that in GifTexImage2D. However it is possible to add something.
What exactly do you need? Listener with callback called when loop has just finished? Ability to get current frame index?

@benexus
Copy link
Author

benexus commented Feb 3, 2018

Hi, thanks for your answer, great library btw
Ability to get current frame index would be cool
I'm applying some shaders to video using opengl, and I record the surface to create the output
I would like to do the same thing with GIF

  • Play the GIF on a surface
  • Apply some filter/effects
  • Record the surface as a new video
  • Convert the video to GIF
    I know when the video stops playing, so I know when to stop recording. I tried to use duration and measure the time since I started paying the GIF, but the resulted video is not what I expect.
    Knowing the current frame will allow me to stop recording

Thanks

@koral--
Copy link
Owner

koral-- commented Feb 6, 2018

OK, I'll try to add such feature.

@crlesage
Copy link

Hey, I appreciate this feature request, though I noticed the release build is v1.2.10 from Jan 1st. Is there an expected date for an update to this release build (notably that includes this new feature)?

Thanks again for the awesome library!

@koral--
Copy link
Owner

koral-- commented Feb 20, 2018

Version 1.2.11-SNAPSHOT is already available on maven snapshot repo.
I'll release 1.2.11 tomorrow.

@crlesage
Copy link

Thank you very much!

@koral--
Copy link
Owner

koral-- commented Feb 22, 2018

Version 1.2.11 is released to maven central.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants