sön 2023-12-31 klockan 15:54 +0100 skrev Thilo Borgmann via ffmpeg-
devel:
>
> Am 31.12.23 um 13:56 schrieb Tomas Härdin:
> > > + for (int y = 0; y < height; y++) {
> > > + const uint8_t *src1 = src1_data[0] + y *
> > > src1_linesize[0];
> > > + const uint8_t *src2 = src2_data[0]
Am 31.12.23 um 13:56 schrieb Tomas Härdin:
+for (int y = 0; y < height; y++) {
+const uint8_t *src1 = src1_data[0] + y * src1_linesize[0];
+const uint8_t *src2 = src2_data[0] + (y + pos_y) *
src2_linesize[0] + pos_x * src2_step[0];
+uint8_t *dest = dest_data[0]
> + for (int y = 0; y < height; y++) {
> + const uint8_t *src1 = src1_data[0] + y * src1_linesize[0];
> + const uint8_t *src2 = src2_data[0] + (y + pos_y) *
> src2_linesize[0] + pos_x * src2_step[0];
> + uint8_t *dest = dest_data[0] + (y + pos_y) *
> dest_linesize[0]
From: Josef Zlomek
Fixes: 4907
Adds support for decoding of animated WebP.
The WebP decoder adds the animation related features according to the specs:
https://developers.google.com/speed/webp/docs/riff_container#animation
The frames of the animation may be smaller than the image canvas.