From patchwork Mon Jan 16 13:38:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 40045 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1d43:b0:b8:6755:f97e with SMTP id cs3csp1038332pzb; Mon, 16 Jan 2023 05:41:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXtblnX9hOoqWMqZV6b2pohQjGHcCJVI8m1ni1xWAKMbbhcYB9l6qstlpO1Z//GV3BqP7QmB X-Received: by 2002:aa7:d710:0:b0:49a:f52f:eed0 with SMTP id t16-20020aa7d710000000b0049af52feed0mr20598306edq.13.1673876497066; Mon, 16 Jan 2023 05:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673876497; cv=none; d=google.com; s=arc-20160816; b=nITsyjhQNDLX7ArMjn3wUIL+Xg/FHOcu99g3BQ9+zgMF0UFlkHv+DCXXBu4Oyt9VTj aVkVbNsqBnLyUl06uni7xe72LPsdo6OjFtS0YR3Cd2dwYShl9IV6pWNQxgAcmoCSHJlg NmRoeAYwcGyD7XyUVKc1fZ04d9Kxa3pC8hRozOG8erbRLI7PnFtPn1efJ36mx8pleyQq vjJM8HXUjZkkc4WDW2Fx6j1ucLEgRue0/teeMxL8XPeriAsXQ/X501awQHTnFwkvQuhh SYX7odoQdEcUcTmG/BRViMAGAOGcez/HWURm/B2mihUKt+iNh+kJGNTeyOyL7QIg7LzJ lTiQ== 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=TPOEHUh/VKHWykdX1spMz3b1V/mPaGlRYKMQkbfr8HY=; b=kv2PRndS/1jsKsB9lUr6h3NGxzy4/tF7Rzu4bd0EpCTBP3Fo6pWHC6m16lf1ccAeXC WCjagYGpATbN8Qt2C3K+lW/lv3aTs1KGJrt8Ajc5g1I3AlbcP0ADV9KQCMhVyQ7/SWtO Mt41wW9b5Yg7CGQnrywPZ/GQMFDp5iPANpfcvwo54Vo86VQrzVSp0Y9BPtGftmCzsdM4 Icgr5H0ZqpexpVBfwC5ZSYgi4/QKE1TpFWfVvYqVbYRXEku4Xb9ZnVAXOFMqW3CBiIa9 dj9uTwWa1T1O2HPom6xYJ1nOS5Cy74z5LPl/XgExnIjWKPiEcQkfpYcPkXUe6L2Rese/ vFmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lmY6W1OG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k26-20020aa7d8da000000b0048bed17d7d9si26864708eds.8.2023.01.16.05.41.36; Mon, 16 Jan 2023 05:41:37 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lmY6W1OG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 336AF68BB41; Mon, 16 Jan 2023 15:39:33 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D30A968BDF2 for ; Mon, 16 Jan 2023 15:39:26 +0200 (EET) Received: by mail-ot1-f44.google.com with SMTP id cm26-20020a056830651a00b00684e5c0108dso2377577otb.9 for ; Mon, 16 Jan 2023 05:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=fWBnWazlWiRnguKcmFtHQ2FgX4gyQ+EKaKToF4OvXcg=; b=lmY6W1OG2R0MWVZw++oXOtRb3LpqF6FEazDV+v2GLbQg79IhRUf7n7ILo62Ses94WX lb4q6oe36RPBV/T6UMeqQ00BGvW+jINDfS7Xnl7RpMOxoIImQDKIelymkRk+/o7Y+2EO JMVFFSUl50+18x67jowMtrWNn9nT7NitfJgT7HIlgY5RZlr7a2zWGr8pz53OGBMYBquy gPQq1/erOpstBXrlkKOOJ4efMIZFkhZrrrGUM01oA5d0oIfFv491ilNz87w2t4Q7IpS5 JxtiXyBoJfFBDvO5Dq8pXNRbmxlGetTTY9BMfro+QnMfeuNXdP2PQSky5fg5IwrugnSF pWkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=fWBnWazlWiRnguKcmFtHQ2FgX4gyQ+EKaKToF4OvXcg=; b=0c1CExbugQlR9RK255JHRgqdXNld2uGYYZjWjouGbplUy79kXTQ83dDaUQeW4JiQv/ D8E8ofdj352nFF3IASoIfuPnrlHi7kiAto2iw66ek62l5ABibYQpELn9Mzn+ykNY4W/P D10yg9quxsA8Pod7m9M7VPbB3Oxyn3ZrSUzbf/vJ90Sekq4pUwbxmU8PRRYXHFhhp61V GHDIy9NDBDhGR43+P23o4O2N/RfaLejWVEhB/uCUKUkzXTn110wf7FVuAAw/M2HYZTgo WNuPQwfvfos/kp8Tvfgx+AvX/UTTJy7T+rZEJFcRUMnWbFtKYPgHPUxk3gItQXKbqQt7 /Qvg== X-Gm-Message-State: AFqh2ko/Ahrlx/HcFZGZquW7+ExBesBONhtEjPfammeR5uoItWlfVBWT u21Fn2hT6lkyiDCiic7JNOGFsM3TcTI= X-Received: by 2002:a05:6830:1558:b0:670:6fee:c847 with SMTP id l24-20020a056830155800b006706feec847mr42917447otp.34.1673876365251; Mon, 16 Jan 2023 05:39:25 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id 3-20020a9d0303000000b0066ca9001e68sm388524otv.5.2023.01.16.05.39.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 05:39:24 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 16 Jan 2023 10:38:29 -0300 Message-Id: <20230116133840.512-16-jamrial@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116133840.512-1-jamrial@gmail.com> References: <20230116133840.512-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 15/26] avfilter: remove FF_API_SWS_PARAM_OPTION 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: gsu9MfUHGo+i Signed-off-by: James Almer --- libavfilter/buffersrc.c | 11 ----------- libavfilter/version_major.h | 1 - 2 files changed, 12 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index ae8bba19b0..ba17450b93 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -50,9 +50,6 @@ typedef struct BufferSourceContext { int w, h; enum AVPixelFormat pix_fmt; AVRational pixel_aspect; -#if FF_API_SWS_PARAM_OPTION - char *sws_param; -#endif AVBufferRef *hw_frames_ctx; @@ -287,11 +284,6 @@ static av_cold int init_video(AVFilterContext *ctx) c->time_base.num, c->time_base.den, c->frame_rate.num, c->frame_rate.den, c->pixel_aspect.num, c->pixel_aspect.den); -#if FF_API_SWS_PARAM_OPTION - if (c->sws_param) - av_log(ctx, AV_LOG_WARNING, "sws_param option is deprecated and ignored\n"); -#endif - return 0; } @@ -313,9 +305,6 @@ static const AVOption buffer_options[] = { { "pixel_aspect", "sample aspect ratio", OFFSET(pixel_aspect), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V }, { "time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V }, { "frame_rate", NULL, OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, DBL_MAX, V }, -#if FF_API_SWS_PARAM_OPTION - { "sws_param", NULL, OFFSET(sws_param), AV_OPT_TYPE_STRING, .flags = V }, -#endif { NULL }, }; diff --git a/libavfilter/version_major.h b/libavfilter/version_major.h index de0cf6e979..655e3d119d 100644 --- a/libavfilter/version_major.h +++ b/libavfilter/version_major.h @@ -35,7 +35,6 @@ * the public API and may change, break or disappear at any time. */ -#define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9) #define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9) #define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9)