From patchwork Mon Nov 20 19:22:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 35011 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8c2a:b0:181:818d:5e7f with SMTP id j42csp115474pzh; Mon, 20 Nov 2023 11:22:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk0x1D1ZqZFPv/sGrJdKB3o8PjSmlHZePE+9PcnPJkxIeAf+J0xbj8aXeTMe6es3aEfOxp X-Received: by 2002:a17:906:20d7:b0:9b2:bf2d:6b65 with SMTP id c23-20020a17090620d700b009b2bf2d6b65mr5370252ejc.4.1700508172482; Mon, 20 Nov 2023 11:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700508172; cv=none; d=google.com; s=arc-20160816; b=bcNtaCUA9jMQEAzrHm/VHqSqC+c6vB4LRfUPV/DQh/gROqimZjj9gppeF22oiTbzxS E7vPxWob9qNtOMNhw4jJta2a05siqrDo302PnTMYUm+8WwtZayUxlIIB62RGnKH+Il/R BEQOg33jk5zXjdyF1xFvnXmSLDuKqOJQCrkpCbO5K1L013ivJ2yYMTmL/y/g8rii7lMu ArC0EwHm+SpIsbxI8Rvb7sWwWpdhD5Vvi2PGm3yzgXpLPqnsDNkYPmbmRkm1COsTiqsb EoMgDJpbNPWvzB0jv4TR7ncGaiyPPrhjt5isItT/WsM9sX4UwiBwiJ9YaFdqAcuh56pf BDsA== 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=AYkrxUQP2SSxJC85QXnTvtmjVO3kknHM5tXH11V7nPQ=; fh=uZWItAgYCSLFS5Zum7Ip+PilGyWYOeCwun+We0BTHAs=; b=s0DE31rsKWgafTOUGJK4qug/kxQAksC6jdiAiC2yWbj27rQv3V4N+OqUfa9pVUFeha MMXHNTqpzPvQao13KfZ+3e998fPtw8txVMIu2SEcGWEZl+xZPKO4wDdvQl+5Eq7QTvzA My/j2kc6uW3P9TZ8jdHWEA1RhFxtlogjNrKnOk96lEc6zUNlArBLkbzam6wx0e5UDR4c 1EmL4n9YKZK53DhWu6tY/N1pqYyRNIc/hi4syW/tFjhtKHauHTfwrK8Ywfy0/aOcAAJA vt8lR89a9/KPEIWaJwaP7jIT8xsRHMfNy8dxk0NmFfMx/eRMBo8z2WYoq6idR0Z4oIxF uOhA== 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 xa12-20020a170907b9cc00b009dd5a1e1456si4797155ejc.129.2023.11.20.11.22.27; Mon, 20 Nov 2023 11:22:52 -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 BADE568CC5B; Mon, 20 Nov 2023 21:22:22 +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 C6EE168C9DA for ; Mon, 20 Nov 2023 21:22:15 +0200 (EET) Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout02.mail.de (Postfix) with ESMTP id 5E1732411AA for ; Mon, 20 Nov 2023 20:22:15 +0100 (CET) Received: from smtp01.mail.de (smtp03.bt.mail.de [10.0.121.213]) by postfix03.mail.de (Postfix) with ESMTP id 459D9801EC for ; Mon, 20 Nov 2023 20:22:15 +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 9F1D32412D0 for ; Mon, 20 Nov 2023 20:22:14 +0100 (CET) To: ffmpeg-devel@ffmpeg.org Date: Mon, 20 Nov 2023 11:22:04 -0800 Message-Id: <20231120192211.77775-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: 1933 X-purgate-ID: 154282::1700508135-89FFA602-7A7AD1E3/0/0 Subject: [FFmpeg-devel] [PATCH v5 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: w5CWHZuOzCqf Still images fixed, includes FATE tests, VP8 decoder decoupled so there are no more data races. 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