From: Thilo Borgmann <thilo.borgmann@mail.de>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v1 3/4] libavcodec/webp: add support for animated WebP decoding
Date: Wed, 14 Jun 2023 12:40:22 +0200
Message-ID: <adc34b88-e093-c173-c0da-812a627a9027@mail.de> (raw)
In-Reply-To: <CABWgkX+aL8ZU4RK6iaNsoT-Ozo8PgcWZt9iKqMZtA0VqwBFMsg@mail.gmail.com>
Am 14.06.23 um 04:04 schrieb James Zern:
> On Thu, Jun 8, 2023 at 7:21 AM Thilo Borgmann <thilo.borgmann@mail.de> wrote:
>>
>> From: Josef Zlomek <josef@pex.com>
>>
>> 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.
>> Therefore, the frame is decoded to a temporary frame,
>> then it is blended into the canvas, the canvas is copied to the output frame,
>> and finally the frame is disposed from the canvas.
>>
>> The output to AV_PIX_FMT_YUVA420P/AV_PIX_FMT_YUV420P is still supported.
>> The background color is specified only as BGRA in the WebP file
>> so it is converted to YUVA if YUV formats are output.
>>
>> Signed-off-by: Josef Zlomek <josef@pex.com>
>> ---
>> Changelog | 1 +
>> libavcodec/codec_desc.c | 3 +-
>> libavcodec/version.h | 2 +-
>> libavcodec/webp.c | 714 ++++++++++++++++++++++++++++++++++++----
>> 4 files changed, 658 insertions(+), 62 deletions(-)
>>
>> [...]
>> +
>> + bytestream2_skip(&gb, 2); // loop count is ignored
>
> TODO? APNG and GIF support looping and have -ignore_loop to control it.
Will look into this maybe supporting it in v2. Otherwise making it a TODO.
Thanks,
Thilo
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-06-14 10:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 14:20 [FFmpeg-devel] [PATCH v1 0/4] webp: " Thilo Borgmann
2023-06-08 14:20 ` [FFmpeg-devel] [PATCH v1 1/4] avcodec/webp: move definitions into header Thilo Borgmann
2023-06-14 2:01 ` James Zern
2023-06-14 10:08 ` Andreas Rheinhardt
2023-06-14 10:30 ` Thilo Borgmann
2023-06-08 14:20 ` [FFmpeg-devel] [PATCH v1 2/4] avcodec/webp_parser: parse each frame into one packet Thilo Borgmann
2023-06-08 14:20 ` [FFmpeg-devel] [PATCH v1 3/4] libavcodec/webp: add support for animated WebP decoding Thilo Borgmann
2023-06-14 2:04 ` James Zern
2023-06-14 10:40 ` Thilo Borgmann [this message]
2023-06-08 14:20 ` [FFmpeg-devel] [PATCH v1 4/4] avcodec/webp: make init_canvas_frame static Thilo Borgmann
2023-06-14 2:04 ` James Zern
2023-06-14 9:42 ` Andreas Rheinhardt
2023-06-14 10:38 ` Thilo Borgmann
2023-06-14 2:02 ` [FFmpeg-devel] [PATCH v1 0/4] webp: add support for animated WebP decoding James Zern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adc34b88-e093-c173-c0da-812a627a9027@mail.de \
--to=thilo.borgmann@mail.de \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git