From: James Zern <jzern-at-google.com@ffmpeg.org>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v1 3/4] libavcodec/webp: add support for animated WebP decoding
Date: Tue, 13 Jun 2023 19:04:11 -0700
Message-ID: <CABWgkX+aL8ZU4RK6iaNsoT-Ozo8PgcWZt9iKqMZtA0VqwBFMsg@mail.gmail.com> (raw)
In-Reply-To: <20230608142029.16564-4-thilo.borgmann@mail.de>
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.
_______________________________________________
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 2:04 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 [this message]
2023-06-14 10:40 ` Thilo Borgmann
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=CABWgkX+aL8ZU4RK6iaNsoT-Ozo8PgcWZt9iKqMZtA0VqwBFMsg@mail.gmail.com \
--to=jzern-at-google.com@ffmpeg.org \
--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