Re: [FFmpeg-devel] [PATCH] apng: Support inter-frame compression

2015-08-27 Thread Michael Niedermayer
On Wed, Aug 19, 2015 at 06:41:23AM +, Donny Yang wrote: > The current algorithm is just "try all the combinations, and pick the best". > It's not very fast either, probably due to a lot of copying, but will do for > an initial implementation. > > Signed-off-by: Donny Yang > --- > libavcodec/

[FFmpeg-devel] [PATCH] apng: Support inter-frame compression

2015-08-18 Thread Donny Yang
The current algorithm is just "try all the combinations, and pick the best". It's not very fast either, probably due to a lot of copying, but will do for an initial implementation. Signed-off-by: Donny Yang --- libavcodec/pngenc.c | 420 +++- 1 fil

[FFmpeg-devel] [PATCH] apng: Support inter-frame compression

2015-08-18 Thread Donny Yang
The current algorithm is just "try all the combinations, and pick the best". It's not very fast either, probably due to a lot of copying, but will do for an initial implementation. Signed-off-by: Donny Yang --- libavcodec/pngenc.c | 420 +++- 1 fil

Re: [FFmpeg-devel] [PATCH] apng: Support inter-frame compression

2015-07-19 Thread Ronald S. Bultje
Hi Donny, On Sat, Jul 18, 2015 at 9:48 PM, Donny Yang wrote: > +uint32_t x, y; > +uint32_t leftmost_x = input->width; > +uint32_t rightmost_x = 0; > +uint32_t topmost_y = input->height; > +uint32_t bottommost_y = 0; > +const uint8_t *input_data = input->data[0]; > +ui

[FFmpeg-devel] [PATCH] apng: Support inter-frame compression

2015-07-18 Thread Donny Yang
The current algorithm is just "try all the combinations, and pick the best". It's not very fast either, probably due to a lot of copying, but will do for an initial implementation. Signed-off-by: Donny Yang --- libavcodec/pngenc.c | 420 +++- 1 fil