From patchwork Thu Mar 28 14:08:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 35094 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1349683pzb; Thu, 28 Mar 2024 07:09:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX4Q+0fYX3Cv1Vlj+/l9SO+DWsi8odSeZBeJrTyHZNVR0kzb5Q6DvPjNf0kZF9XiPcHvR4zhBhf+X4+O9fihbQujcikpAbVlFaPXA== X-Google-Smtp-Source: AGHT+IFXrFZOu0LfdIVA0NPaLrJuwv7fkGL5xfOVPCXL7kZkfFNay/jUwUC37Y/fSy2lFxOEd6iT X-Received: by 2002:a50:8a89:0:b0:56b:ebda:a615 with SMTP id j9-20020a508a89000000b0056bebdaa615mr1995806edj.6.1711634985716; Thu, 28 Mar 2024 07:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711634985; cv=none; d=google.com; s=arc-20160816; b=Tuok7ckSgFEgbkMAUF3QrII1gMxC+W1PvvoHvBnJ6YaSGcYbysYVjF0H0+Dma9ztF9 f1qgo6OmuJM3jZjZzO/I4UxcAdwmPUyiF+jflrb1Nr7SNdexRa1RPehvaFGIJ7aFnXsi hWh1OYitBwdex5x6yJ/mj9O0VL0vvbKheXTJNvlYPej011KWPF+EfAeM8uLKKlaKmKjl iTjUrf7e8DwJil0mDeDFXGm15CTf5L/3YZqpVxHvMpAlisAiwabaree0cehpI+6h0cH1 NORuWn70oQ+L2ciYuJnewYN1k4NJrV1R3tbvK7fm919Ef9aE6pXBvuqGvhJOlVRxr+Ie meAw== 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=GThsYoYwhDYIDIlb+0cy1lPS8WlbxVuErl1uuTpIAxs=; fh=uZWItAgYCSLFS5Zum7Ip+PilGyWYOeCwun+We0BTHAs=; b=yeUzeNRdgRLuj+8sQ0TeKDKjPfF1UQUDYhCJiMshWqvQolwswMGWdUC2K8xeYQwYOo WclbDxA1XlHhbkMbT7Covi6VrLJ0zXfUCcWLVQihIXid8KhvirPrDUj41RT2COVEXugc s0bpCK3ex2+9npBeOs1vimFymblR0wEr01Xq+eFWHjtFcqs+F/7/TG0+LxbATfK37woG ZTfTflHhwk9z/0jOhEjxXNb2mbnTdDkmO0eAoDmdJ4L6IKa+RZR64zivTDJXzq+ghmfH YN85LtPFHTStiSjrphk/oDakJsqR54CzNL+tbhNdjmaKPayp1+NlluZdZtWAHQOEAVhl v1kw==; dara=google.com 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 q1-20020a056402248100b0056c53db1006si598151eda.67.2024.03.28.07.09.20; Thu, 28 Mar 2024 07:09:45 -0700 (PDT) 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 F020B68D65A; Thu, 28 Mar 2024 16:09:07 +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 4107768D4AC for ; Thu, 28 Mar 2024 16:09:00 +0200 (EET) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout02.mail.de (Postfix) with ESMTP id E7B4A240DC4 for ; Thu, 28 Mar 2024 15:08:58 +0100 (CET) Received: from smtp01.mail.de (smtp02.bt.mail.de [10.0.121.212]) by postfix02.mail.de (Postfix) with ESMTP id CE3A2A03C3 for ; Thu, 28 Mar 2024 15:08:58 +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 9EF82240CFB for ; Thu, 28 Mar 2024 15:08:58 +0100 (CET) To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Mar 2024 15:08:50 +0100 Message-Id: <20240328140858.2521-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: 2282 X-purgate-ID: 154282::1711634938-FED2B878-952D1D03/0/0 Subject: [FFmpeg-devel] [PATCH v11 0/8] 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: R+DT7hNgcvtm VP8 decoder decoupled again The whole animated sequence goes into one packet The (currently public) bitstream filter splits animations up into non-conformant packets Now with XMP metadata support (as string, like MOV) Patch 5/8 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 libavformat/webp: add WebP demuxer Thilo Borgmann (6): avcodec/webp: remove unused definitions avcodec/webp: separate VP8 decoding avcodec/bsf: Add awebp2webp bitstream filter avcodec/webp: make init_canvas_frame static fate: add test for animated WebP avcodec/webp: export XMP metadata Changelog | 2 + configure | 1 + doc/demuxers.texi | 28 + libavcodec/bitstream_filters.c | 1 + libavcodec/bsf/Makefile | 1 + libavcodec/bsf/awebp2webp.c | 350 ++++++++ libavcodec/codec_desc.c | 3 +- libavcodec/version.h | 2 +- libavcodec/webp.c | 796 ++++++++++++++++-- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/version.h | 2 +- libavformat/webpdec.c | 383 +++++++++ tests/fate/image.mak | 3 + tests/ref/fate/exif-image-webp | 4 +- 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 +- .../fate/webp-rgb-lossless-palette-predictor | 2 +- tests/ref/fate/webp-rgb-lossy-q80 | 2 +- tests/ref/fate/webp-rgba-lossless | 2 +- tests/ref/fate/webp-rgba-lossy-q80 | 2 +- 23 files changed, 1530 insertions(+), 84 deletions(-) create mode 100644 libavcodec/bsf/awebp2webp.c create mode 100644 libavformat/webpdec.c create mode 100644 tests/ref/fate/webp-anim