From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id A350E4AB7C for ; Thu, 20 Feb 2025 17:27:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AB0D968C60A; Thu, 20 Feb 2025 19:25:48 +0200 (EET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2F0DA68C5C2 for ; Thu, 20 Feb 2025 19:25:43 +0200 (EET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-220c92c857aso22257455ad.0 for ; Thu, 20 Feb 2025 09:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740072342; x=1740677142; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ksRj1HKNa7zZ+EEwKYNuLpbsemJ//Lux1DVOMx4v+L8=; b=Ypzk0vtRu4WzCSXtU9xn8VA/9wAZSHBJt+K5GAW3c2muA3rICvDXipDLG6qGth7dKw yJ8JRgO/ovfnV9CY591nFo/YPH9akFqwEoZCwpHrR0ZJQ9/Dt/ueV4xc9V8aEN/SymUO 7VwEHYeY2wh5BwG/Qgy/CCFMI6HTa9D+zpsP+RbPWQ4WKSzT3rwyPvSjXkTaRGayBIvW Q26lhT686Yi9Xig79gHDixt47twY7x8xfX8FlhWBQh9XR7K5izxkodj+IPC/J6InIzU9 zoBmNBuLQbSya9CLiDnBgKDO78Y2mxtSznLVFlpSII4yUCS/D6To5RuZTEj/B5QK6Fyj gZbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740072342; x=1740677142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ksRj1HKNa7zZ+EEwKYNuLpbsemJ//Lux1DVOMx4v+L8=; b=U80cNMwQg5iPZzh2NJIZKiegi2N/rxrOP32jcqmklVlfnrNqyojedSBo50Ap+qOWLu imY9KBxGxC3uOcSJflH+5srOrNcD4Zyex7m0IUySdQAB3jxaeef6Y7pOkm63ktSbqaV+ QepD4yCsjAkA8y7YGvVLtulY3AplQlI6D1SVHTGiLvm/AqHXM3fU6Ej+ELA1IYgmC10s dkp5sLaQ9cytBvLr9w9rpkioIPhcHC05cfF5B9XYPiFQ53M7JBIxhLDOjAxTaS5MzQOm brZY4jMkfXdinDC1I4AVnz03w06Snu+CcWpxWVlef7EePHH9KdPZilQECF7W+9LFSmcO DEzg== X-Gm-Message-State: AOJu0Yy28gXA2X0keq2E5guiztiaz75q9PGutoCh7HSSPEQ8QsE10yQO JFbqfe5pC0PzjxMzyOYL5JRNDck3BGQxrcwDpfZg5KKtWpThhm5cSjA0D0P5 X-Gm-Gg: ASbGnctGZ0vNtt7748tx/OD8lkGoedtwxztdOw1IqUDNA+aTpnmA4Qm3QTQmcCsPAhz l6rIMcvoCzXXCgw+xhJ0cJNVNo3abJ7dUpggE1J+Fu+uXJArrCvNewarjOU25fWfkJ1DmL97DKN UPO0Fgy8gTDHcWm1tinaNyI1Y2cMy39ArEcZPGk5C20z6VxsBQA9NWO2pXgPB5PQOyGwh3ISuEC vfm/n3zPHIAj6nAVqEZvWLHz6Pxnh+i5CWILaEfMPa/pK7YWG95ij2m5O4YTEgxJgn4Fts6lMHa OUsS8/W51sidf1Bler9zTymrSDGmUA== X-Google-Smtp-Source: AGHT+IH/R79/WC/GDBJ5LuWUCJ/i7l6Tr/7ylFLrZ0Tq26BxzeDN9/U/WAPZBstUSOqTE+jhNBjmrg== X-Received: by 2002:a17:903:2311:b0:21f:5063:d3ca with SMTP id d9443c01a7336-2218c5575dbmr64526005ad.16.1740072341651; Thu, 20 Feb 2025 09:25:41 -0800 (PST) Received: from localhost.localdomain ([2800:2121:b040:c:84e:2829:1051:10a6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fcb0c5357csm4336202a91.27.2025.02.20.09.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2025 09:25:41 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 20 Feb 2025 14:24:54 -0300 Message-ID: <20250220172454.2952-11-jamrial@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250220172454.2952-1-jamrial@gmail.com> References: <20250220172454.2952-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 11/11] avutil/stereo3d: deprecate av_stereo3d_create_side_data() 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: It's no longer needed after the addition of av_frame_side_data_new_struct() Signed-off-by: James Almer --- libavutil/stereo3d.c | 2 ++ libavutil/stereo3d.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c index d6de476532..8a21cfd407 100644 --- a/libavutil/stereo3d.c +++ b/libavutil/stereo3d.c @@ -51,6 +51,7 @@ AVStereo3D *av_stereo3d_alloc_size(size_t *size) return stereo; } +#if FF_API_CREATE_SIDE_DATA AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame) { AVFrameSideData *side_data = av_frame_new_side_data(frame, @@ -64,6 +65,7 @@ AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame) return (AVStereo3D *)side_data->data; } +#endif static const char * const stereo3d_type_names[] = { [AV_STEREO3D_2D] = "2D", diff --git a/libavutil/stereo3d.h b/libavutil/stereo3d.h index c0a4ab3f2d..4f679b9bb1 100644 --- a/libavutil/stereo3d.h +++ b/libavutil/stereo3d.h @@ -29,7 +29,9 @@ #include +#include "attributes.h" #include "frame.h" +#include "version.h" /** * @defgroup lavu_video_stereo3d Stereo3D types and functions @@ -255,14 +257,18 @@ AVStereo3D *av_stereo3d_alloc(void); */ AVStereo3D *av_stereo3d_alloc_size(size_t *size); +#if FF_API_CREATE_SIDE_DATA /** * Allocate a complete AVFrameSideData and add it to the frame. * * @param frame The frame which side data is added to. * + * @deprecated use @ref av_frame_side_data_new_struct() * @return The AVStereo3D structure to be filled by caller. */ +attribute_deprecated AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame); +#endif /** * Provide a human-readable name of a given stereo3d type. -- 2.48.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".