From patchwork Wed Dec 6 01:34:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 44942 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9153:b0:181:818d:5e7f with SMTP id x19csp731288pzc; Tue, 5 Dec 2023 17:35:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgiPn5M8BLCumDL4laq9tGbXXdWJX12Xo/Fz8FaC/LyGfrCDQGmAEpAr36PElfu9wnqaxR X-Received: by 2002:a7b:c407:0:b0:40b:5e59:e9e7 with SMTP id k7-20020a7bc407000000b0040b5e59e9e7mr99238wmi.134.1701826528509; Tue, 05 Dec 2023 17:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701826528; cv=none; d=google.com; s=arc-20160816; b=xK32ue/fGmu4OtS6UiQ0TJ/D2IBoWMvKmGCUcqzb5qnyDdERGoIfDRtsoOQQQ4lQ0C esxQf1bt1/MO8CnnLFtYJMPwAwP5LNqWDi42/UKzFlfgmLxCSTF9M0VP/5xcD1lMeaQf bO1GsKujSXJs9YTIWcMKD6UqmPpM5ob9Nvyy3AiEU3AlbGg8jELTUBP0SaEr9L0+bcn2 JJmWiiJk/u5+VWWYKcOOBSbxJLa4I2I6fwk9JzoWnprK7FB4Id3vFVvfYSKLA7LGz+2Z gOFpjLxtQVyYAOaArQDESoV0gqZQaglBQSl3j4RSqpJ5BdspRg0ceBwGeZhDuv+Wtzpb 1WUA== 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:references:in-reply-to :message-id:date:to:delivered-to; bh=uMmgtdxrOfLbHJASf6ZIlXDw0RvGrk+2tXtwbiL3Sss=; fh=uZWItAgYCSLFS5Zum7Ip+PilGyWYOeCwun+We0BTHAs=; b=Ov19sOMM9I962HEAilsjmP7FdF8J3tM9iyb4835gy/Y3kEV+K7UBzyIdyKtx/lGx5d WntvRmM9fFMbO/96k93tYS2bA469tsSNVr/Ji8xc3zfdAarqqNLVgTcJ5TPRjnR9NJUd py2g35un7f0xb8reekikcPdOrjczB++zS7ZnNp2Jb8NN6KosQ/f6smZJtwKNzHPIQiwN cqzKXY8HQ2B5RnyvLUSTBj93jQLK8RwcxqGWM23ROFNpRJJfkJd3sfFJRciv5QPJ57dl 1WkgIAUZrFEIvi6F4/CDhaeWgS7R4SRmqMlFPE6Itep8FjCNY9tqPs9WQzaIUJR/2LBy dKDQ== 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 r10-20020a170906350a00b009d441527214si6134679eja.1045.2023.12.05.17.35.27; Tue, 05 Dec 2023 17:35:28 -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 72EC568CEFC; Wed, 6 Dec 2023 03:35:14 +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 732EB68A9C0 for ; Wed, 6 Dec 2023 03:35:07 +0200 (EET) Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout02.mail.de (Postfix) with ESMTP id 1640A240CA8 for ; Wed, 6 Dec 2023 02:35:07 +0100 (CET) Received: from smtp01.mail.de (smtp04.bt.mail.de [10.0.121.214]) by postfix03.mail.de (Postfix) with ESMTP id F158B80064 for ; Wed, 6 Dec 2023 02:35:06 +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 C1714240068 for ; Wed, 6 Dec 2023 02:35:06 +0100 (CET) To: ffmpeg-devel@ffmpeg.org Date: Wed, 6 Dec 2023 02:34:59 +0100 Message-Id: <20231206013505.57654-2-thilo.borgmann@mail.de> In-Reply-To: <20231206013505.57654-1-thilo.borgmann@mail.de> References: <20231206013505.57654-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::1701826506-15FE8338-CB49BB32/0/0 Subject: [FFmpeg-devel] [PATCH v7 1/7] 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: , 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: asHHWN39GRr9 --- 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 54b3fde6dc..4994781a64 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 */