From patchwork Thu Jul 20 23:07:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 42875 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:672f:b0:130:ccc6:6c4b with SMTP id q47csp144404pzh; Thu, 20 Jul 2023 16:08:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNwbt4aToY/UwUQfY4BmQ+SMK1+nFP4M6UqKnWQhK8cQlILPTXtzYfdSWkHGaOv/wSCBAK X-Received: by 2002:aa7:dc0f:0:b0:51d:a94b:f8f2 with SMTP id b15-20020aa7dc0f000000b0051da94bf8f2mr236809edu.2.1689894492225; Thu, 20 Jul 2023 16:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689894492; cv=none; d=google.com; s=arc-20160816; b=PHa15X5DOHELhaPLPWFmL3bsPFjS1P48RMLS6CnI0KhturhlNjD5jpihJtwRNRRGZj IMx0oEnbJ90VrNWEFbrusexbrEa2ZkAXrKjQTY27IYIDPWzxYcAeB2OMWkscl6HjlVsW F/Y+1t6dttb3CkqIq4mYJThKwoWSmeFrmSLspxBdltzfO0oiQuFOLt9cZjqSMjEaGsDJ c026ywWXtF0TviE6/rLcJL/KJGhHOtQkTLAU5UoMvbI3W6aLsdUpRbXu3sqecfZ/3G9u 3OCTNjXhJJ+20aFONKaiQH178UtJ7NW+ldSjlEF3Xyjjp0pWB2V399gX0ZaTz4bqk/2D 9zaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=LSJFPJrqHwUFU61ggs6fE5wRYA3v270Ed5KBmf17fxE=; fh=HD4ndZ9hLL4mcfDFnlTmTEEgN7ZZ8c1Zu9bV17rPaE8=; b=DniskT1LZtvpAUzB+MNbGoTceysOV8xlv0fw9bpUiTOJhVvVjzfA4Uul0rpFX/j+dN JjOD9cgMmQo3qGV2lRaTJVJ32mUc3TQO25WeSKsOv4GN0zE0Af1Riq2jgMqSdwv5+RAm eDvPfm2X2LjtEhU9iWA2jJCwUfK75R6XOUu5e6t2eKtfzmq6ouRNm9IrdfRsyUNPypEx iOMmcX99ZyXyEHX+tnRkjx9fRJng3PiOhekf78o6bAZ7LT+5qcXXajM7Ek2ierEOBD8E 2dz5Lw/FC8XvEySXa35ZBECoTChB3QkmDtl/SYaNvSKdNQKrMDo1xnutMDeskpY4z629 JE9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@mail.de header.s=mailde202009 header.b=QabHDrGV; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.de Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i7-20020aa7dd07000000b0051e57e85cfbsi1403336edv.545.2023.07.20.16.08.11; Thu, 20 Jul 2023 16:08:12 -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; dkim=neutral (body hash did not verify) header.i=@mail.de header.s=mailde202009 header.b=QabHDrGV; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.de Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4CA9568C661; Fri, 21 Jul 2023 02:08:01 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from shout01.mail.de (shout01.mail.de [62.201.172.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F1DFA68C5DC for ; Fri, 21 Jul 2023 02:07:53 +0300 (EEST) Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout01.mail.de (Postfix) with ESMTP id 98629A0803 for ; Fri, 21 Jul 2023 01:07:53 +0200 (CEST) Received: from smtp04.mail.de (smtp04.bt.mail.de [10.0.121.214]) by postfix03.mail.de (Postfix) with ESMTP id 7B0A3800C3 for ; Fri, 21 Jul 2023 01:07:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1689894473; bh=Z8glE4xtKH3glfapW0X2m82i4DDCRgwZfUjxsg6IceY=; h=From:To:Subject:Date:Message-Id:From:To:CC:Subject:Reply-To; b=QabHDrGVvz3OitAH0QUwq5t2Vn8FBjngD9e3Q6UKXbZ9c4/bCQtiK5WwtY7/Vsgjq FjNgmgx6Lz28tyhhgcW1YaaS3MWg9iySHJO/hNFPBQa4ZQM2BVyIdYIDcqI+lheD9p FKvS/alVBSkaKrj6xj+BL4OGy701k6qM7JqyuXQ9t27sQW1DaxESmjXfXdrh7zkgLa IWk2y5qJ+0G+p4apUrEh26chOOTFVh92MpZClJvbGK8uZCygSGEqu6fembqUaRvECu YybnQ0wTB2EG8atDZNy54HHybus7NzJdSBggdmzP4TTw1LzdLoWwtdELERVrGL1EM+ Gn8LF0+92CKnw== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtp04.mail.de (Postfix) with ESMTPSA id 3DF65C009A for ; Fri, 21 Jul 2023 01:07:53 +0200 (CEST) From: Thilo Borgmann To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 Jul 2023 01:07:47 +0200 Message-Id: <20230720230752.68246-2-thilo.borgmann@mail.de> In-Reply-To: <20230720230752.68246-1-thilo.borgmann@mail.de> References: <20230720230752.68246-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: 2020 X-purgate-ID: 154282::1689894473-DA7FEC09-CBE184D9/0/0 Subject: [FFmpeg-devel] [PATCH v3 1/6] avcodec/webp: move definitions into header 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: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: VCPsHzkNWA5a --- libavcodec/webp.c | 1 + libavcodec/webp.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 libavcodec/webp.h diff --git a/libavcodec/webp.c b/libavcodec/webp.c index d35cb66f8d..b0475c344a 100644 --- a/libavcodec/webp.c +++ b/libavcodec/webp.c @@ -52,6 +52,7 @@ #include "thread.h" #include "tiff_common.h" #include "vp8.h" +#include "webp.h" #define VP8X_FLAG_ANIMATION 0x02 #define VP8X_FLAG_XMP_METADATA 0x04 diff --git a/libavcodec/webp.h b/libavcodec/webp.h new file mode 100644 index 0000000000..53bf59e7cd --- /dev/null +++ b/libavcodec/webp.h @@ -0,0 +1,38 @@ +/* + * WebP image format definitions + * Copyright (c) 2020 Pexeso Inc. + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * @file + * WebP image format definitions. + */ + +#ifndef AVCODEC_WEBP_H +#define AVCODEC_WEBP_H + +#define ANMF_DISPOSAL_METHOD 0x01 +#define ANMF_DISPOSAL_METHOD_UNCHANGED 0x00 +#define ANMF_DISPOSAL_METHOD_BACKGROUND 0x01 + +#define ANMF_BLENDING_METHOD 0x02 +#define ANMF_BLENDING_METHOD_ALPHA 0x00 +#define ANMF_BLENDING_METHOD_OVERWRITE 0x02 + +#endif /* AVCODEC_WEBP_H */