From patchwork Thu Nov 23 11:47:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 35013 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:bca6:b0:181:818d:5e7f with SMTP id fx38csp513927pzb; Thu, 23 Nov 2023 03:48:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn0qkdqA6lOZpIvhWz25aJHaWWYp2UgqxjVgn3Kufw+ahjQwhy8JZ9WNmV9l1QxSOuzacQ X-Received: by 2002:a17:906:74c6:b0:9bf:697b:8f44 with SMTP id z6-20020a17090674c600b009bf697b8f44mr3275585ejl.6.1700740098136; Thu, 23 Nov 2023 03:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700740098; cv=none; d=google.com; s=arc-20160816; b=Hx5LsaSvOXvRxbwKEOJfT5PixxJ5jj+4suwT5OjRHMA30DbYF7Um6YGP7gb8GvI2ge 3HEdPEqXH+ekd1syJ5EqIb5iMurF+8Voe3UioRNZmIh5/vU9k6toLPXg2zJ3Ohvnda90 oihfy4dbIRq6UY49Ppy+ERCbhiCuw7NaTsKPGJPy/BVG+eR3wQTCNfkpofc8WbUYkhsZ wRLvaSMEX7qF1bHLEhRvjdLNfF0DZa/1CgHdJuLM88lNsk8VXjqlsK9JMU3PcKl4l6Dd zmhB8ZrQc3jFTQkGxAUMRxUKdD72r3vOQEjD+LQ7bqvLAEveD767tmIZX96jzHu0bPbJ eADQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to :delivered-to; bh=+bQC160IDW90FNZw1lAr0c5ye/kF1HLSh5/kcig8maQ=; fh=uZWItAgYCSLFS5Zum7Ip+PilGyWYOeCwun+We0BTHAs=; b=oeeNMpt61FtLaxSliEbeCNf2iTsKvGR9z/NvJDgYskv1w//bLCq8Zza1X31xAFtIrX Z/+l5/cJNeHLjGLJ8yUlAcyinrkgZzhhbcTqBVjURxw/ovCx70z7Kk7Z1pDw3vHH0L7x pi0q10Doy72Zyx/uVncQSZ6yQfT8To9JTqID4bN42Z6Q9OTng8atgLdkNTggmPMb6mQU 2SASG6qp1/Wvy2DtXUi4JSVYR8x09bkfM8cvKwaUxIv3W5EtHuiqZNLSqj78Kh7WMaZB 9ryy92id1gowrMI3vKGzF5s7qsm6xR1f6J6lM+0AOB3SylWCHq5PzgTi39L6gf8Fq4UL p4WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r20-20020a17090638d400b009dd60e8f182si566055ejd.1031.2023.11.23.03.48.17; Thu, 23 Nov 2023 03:48:18 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9BD9C68CED1; Thu, 23 Nov 2023 13:47:45 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from shout02.mail.de (shout02.mail.de [62.201.172.25]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B1A2068CDE6 for ; Thu, 23 Nov 2023 13:47:36 +0200 (EET) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout02.mail.de (Postfix) with ESMTP id C58522413AC for ; Thu, 23 Nov 2023 12:47:34 +0100 (CET) Received: from smtp01.mail.de (smtp03.bt.mail.de [10.0.121.213]) by postfix02.mail.de (Postfix) with ESMTP id A924EA00E2 for ; Thu, 23 Nov 2023 12:47:34 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp01.mail.de (Postfix) with ESMTPSA id 70AA4240AA1 for ; Thu, 23 Nov 2023 12:47:33 +0100 (CET) To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Nov 2023 12:47:26 +0100 Message-Id: <20231123114733.86103-1-thilo.borgmann@mail.de> MIME-Version: 1.0 X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1955 X-purgate-ID: 154282::1700740054-9AF0DA16-9278A9E7/0/0 Subject: [FFmpeg-devel] [PATCH v6 0/7] webp: add support for animated WebP decoding X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Thilo Borgmann via ffmpeg-devel From: Thilo Borgmann Reply-To: FFmpeg development discussions and patches Cc: Thilo Borgmann Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: BkfYfbI9QQeJ Still images fixed, includes FATE tests, VP8 decoder decoupled so there are no more data races, fixed more asserts. Patch 5/7 is still there for making changes in lavc/webp reviewable but shall be stashed when pushing. -Thilo Josef Zlomek (2): libavcodec/webp: add support for animated WebP decoding libavformat/webp: add WebP demuxer Thilo Borgmann (5): avcodec/webp: move definitions into header avcodec/webp: remove unused definitions avcodec/webp_parser: parse each frame into one packet avcodec/webp: make init_canvas_frame static fate: add test for animated WebP Changelog | 2 + doc/demuxers.texi | 28 + libavcodec/codec_desc.c | 3 +- libavcodec/version.h | 2 +- libavcodec/webp.c | 758 ++++++++++++++++++-- libavcodec/webp.h | 38 + libavcodec/webp_parser.c | 130 ++-- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/version.h | 2 +- libavformat/webpdec.c | 733 +++++++++++++++++++ tests/fate/image.mak | 3 + tests/ref/fate/exif-image-webp | 12 +- tests/ref/fate/webp-anim | 22 + tests/ref/fate/webp-rgb-lena-lossless | 2 +- tests/ref/fate/webp-rgb-lena-lossless-rgb24 | 2 +- tests/ref/fate/webp-rgb-lossless | 2 +- tests/ref/fate/webp-rgb-lossy-q80 | 2 +- tests/ref/fate/webp-rgba-lossless | 2 +- tests/ref/fate/webp-rgba-lossy-q80 | 2 +- 20 files changed, 1625 insertions(+), 122 deletions(-) create mode 100644 libavcodec/webp.h create mode 100644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim