Ping-pong looping?

60 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

vapo...@gmail.com

غير مقروءة،
13‏/10‏/2016، 2:59:14 م13‏/10‏/2016
إلى WebP Discussion
Is it possible to create a webp animation that ping-pongs instead of looping normally? 
It would play forwards once, then backwards once and repeat

I've needed this for several of the animations I created, and ended up adding a second copy of the frames in reverse order, doubling the file size

James Zern

غير مقروءة،
13‏/10‏/2016، 11:35:12 م13‏/10‏/2016
إلى WebP Discussion
Hi,


On Thursday, October 13, 2016 at 11:59:14 AM UTC-7, vapo...@gmail.com wrote:
Is it possible to create a webp animation that ping-pongs instead of looping normally? 
It would play forwards once, then backwards once and repeat

Sorry, no that's not possible.

Jon Sneyers

غير مقروءة،
14‏/10‏/2016، 1:21:20 ص14‏/10‏/2016
إلى webp-d...@webmproject.org

Maybe not very relevant for this mailing list, but FLIF does support this, in a way. It has duplicate frame detection, and compresses duplicate frames away. So you only pay for the unique frames - you can repeat them in any order however often, and it will not make the file get more than a few bytes larger.

Best,
-Jon.


--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss+unsubscribe@webmproject.org.
To post to this group, send email to webp-d...@webmproject.org.
Visit this group at https://groups.google.com/a/webmproject.org/group/webp-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.

Pascal Massimino

غير مقروءة،
14‏/10‏/2016، 11:24:42 ص14‏/10‏/2016
إلى WebP Discussion
Hi,

On Fri, Oct 14, 2016 at 7:21 AM, Jon Sneyers <jon.s...@gmail.com> wrote:

Maybe not very relevant for this mailing list, but FLIF does support this, in a way. It has duplicate frame detection, and compresses duplicate frames away. So you only pay for the unique frames - you can repeat them in any order however often, and it will not make the file get more than a few bytes larger.

Best,
-Jon.


On Oct 13, 2016 20:59, <vapo...@gmail.com> wrote:
Is it possible to create a webp animation that ping-pongs instead of looping normally? 
It would play forwards once, then backwards once and repeat

I've needed this for several of the animations I created, and ended up adding a second copy of the frames in reverse order, doubling the file size

As James said, this is no possible.
Let me add some color to this (lack of) feature:
  supporting ping-pong mode efficiently would mean storing the decoder frames as you go, in order to be able to recall them in reverse order. This what animated-webp is trying to avoid by all mean: storing past frames. At all time you only need 1 buffer for the animation decoder, no more. This might reduce the possible feature and efficiencty, but It has a large positive impact on memory use.

hope it helps,
skal/
الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة