From patchwork Mon Nov 20 19:22:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thilo Borgmann X-Patchwork-Id: 44729 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8c2a:b0:181:818d:5e7f with SMTP id j42csp115541pzh; Mon, 20 Nov 2023 11:22:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFiemA/TlwZ+dWKAt+jSElr5IeJHuFQG2XTSxmadqxA2w15+XVydLq4y7ZZdpQoMVVEcqJ X-Received: by 2002:aa7:d50f:0:b0:53f:2128:ff4f with SMTP id y15-20020aa7d50f000000b0053f2128ff4fmr245843edq.17.1700508179140; Mon, 20 Nov 2023 11:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700508179; cv=none; d=google.com; s=arc-20160816; b=rmWB2jAOX0RXJCm21uNzZbofkQ9qn1w1osrI90Zoas0O9oVvLJ2YknTbX0BBJiDfQG BRp2iQTFtZDgPhKqvRuWvWqB84rzey1Z/5zECKiuDvecWMjSj4eyhirlFLGEf1BudoYd 4gUj85vQGGiMD7l1anvrjPPlnm8gI2Rl+Qpr+jvWc+ttC8o33Bg9URDK9nhG5QLBCjnc VTg/r4Avkl7iOlpG39pRRmQlgJyNgXFb4ofWBydfXRpzDa8lgiBPc+GyiT7Gxt1J3XRJ Xl1kjl7vypbf4lZQKOT2LsLNNkEWKCvq4SjpHGbVWEgMQUBGUXe8NvBu4jlfnDrCDrIo xsSg== 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=fomnYRVzRUpLgRy3+96iGSxJwe34j4/HKlXHULJIkdI=; fh=uZWItAgYCSLFS5Zum7Ip+PilGyWYOeCwun+We0BTHAs=; b=Wzyr2wC5e/RfAXbktGJRKrhyGpN+ACXpuNA6wf62+0blumLgHY2pMCy9QzxGGDBrzM T1qn1jvjAuJuDdOGfrFd05UzY5WhcVwqGbiiSgpf/2ndXKPnsDxkpylEULSLiTpfbr34 NKcmJxoW+yZSBtaPAfD08AgdubgAuZTAm8r4cEbMJc6VjOlq/DTxK5ApzawYfvedpK1I 7+8Vf3Iu0yn/R7JbQ6Qb9wXftW+pmw9Mh/wBkfBW+GsIbmmM1wRVqn21IdoD9DIYdq8A y6ARWWrDwOIUDYnKExQS0ovOnJT8DJ6xIqAOU1HukzfDEX714u4wHBUK4F8Vq5hlLQhi Cl/A== 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 b4-20020aa7c6c4000000b00548c42fc762si1250955eds.426.2023.11.20.11.22.40; Mon, 20 Nov 2023 11:22:59 -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 ADC2768CC91; Mon, 20 Nov 2023 21:22:24 +0200 (EET) 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 AFCDC68C9DB for ; Mon, 20 Nov 2023 21:22:16 +0200 (EET) Received: from postfix02.mail.de (postfix02.bt.mail.de [10.0.121.126]) by shout01.mail.de (Postfix) with ESMTP id 58DF1245B4A for ; Mon, 20 Nov 2023 20:22:16 +0100 (CET) Received: from smtp01.mail.de (smtp03.bt.mail.de [10.0.121.213]) by postfix02.mail.de (Postfix) with ESMTP id 4099DA00E2 for ; Mon, 20 Nov 2023 20:22:16 +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 9BF3824157A for ; Mon, 20 Nov 2023 20:22:15 +0100 (CET) To: ffmpeg-devel@ffmpeg.org Date: Mon, 20 Nov 2023 11:22:05 -0800 Message-Id: <20231120192211.77775-2-thilo.borgmann@mail.de> In-Reply-To: <20231120192211.77775-1-thilo.borgmann@mail.de> References: <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: 2018 X-purgate-ID: 154282::1700508136-89FFA602-07C6E6E7/0/0 Subject: [FFmpeg-devel] [PATCH v5 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: nS/dq2fPGmoD --- 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 */