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 909134CA12 for ; Sun, 23 Feb 2025 22:08:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E65B168CB2D; Mon, 24 Feb 2025 00:07:02 +0200 (EET) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E34E568CADF for ; Mon, 24 Feb 2025 00:06:54 +0200 (EET) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2fbffe0254fso7737931a91.3 for ; Sun, 23 Feb 2025 14:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740348413; x=1740953213; 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=J1DvPtV4hX/SPF97IHqs6ut+Y1tM+iQagAp/N4CFN6Q=; b=SLiho3gRTOum2E1E5Qe/b6Cd6AO8HiCxBBTzXXyVCTj6bQCO5u+4XrTTMPjCMn4+Wq i5fQ2ySJW6vR1oNtgVV+bxSDxIvcj2Q5lVOa3E9+SutM3Rz6s9iRqg/xwRNh55M2CjWR A8d2LgmJ951/fCwUGHS7P0TqAscPqLvJrrs3DoMRjWYWOCO6zMAKIqUGtJRRAsr0G/ic O+j9VcinVZm60f/l/qIMMbmIOws3k3H/zASjsGnDq6GJp1Hos7OJNPVeKNhuTxvrgCHF pqwRvtJ8BJrrCLfQYrJ/MDwlNdu8xhYXouMLP9AJ3JouykpCtBrg5tNQI6ySn8RfWm3l JrSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740348413; x=1740953213; 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=J1DvPtV4hX/SPF97IHqs6ut+Y1tM+iQagAp/N4CFN6Q=; b=XUtXAbOtyErezBFnQa6xW7/1rwyLbvHHw66SX8YizFbby15jVFhohSoH1W8StfOxHv CcRwoE3DE1U4iXS4LQuNMyL+vsHOf+z/7Sknjdram8dezG7ZvvMSy9fOPL/7rPOSAG3r B03T4T1BgBjSnX8J5nXHhERfIEvRdWAOyYF41VUIUXFDFtXFsVj5BGnEXD26WSzEcwgP NGwaVqrTkOBK1kAHEB3PyhxxLp+jCuMc/CdxIAq7B4Eyji/K3o9ySlSwlmwfNLe5bd9T oaeT2IP9WiKWPeTEmIx6Z+4V2BQjZ2MmCQ2sE6osTVpqNWkcP26JzLFr2rdTq+WZXXyx gSiA== X-Gm-Message-State: AOJu0YxkMSD3D57/qcF8HoFSMy8oYstqt51e1VKOiqg1k2W6kxGAwvYB ppBNCVx9pfa2YINsbOElE72XnXWx4124RfYSnyrCsqKsYX4Gu2SN28geTLay X-Gm-Gg: ASbGncuvtqj8LunABNdHWGqApDOIG8jzVTWe68aVlN18N8Bij1+miV0kLvWzNPtt3vi N1zsTAfL6RYSgmy3dfQahaVSBJn4QsIBWheujjl7AedjG84OU0nfkgYs2uCtenfOq6nFf9bUPwL 7sLMY6vtVRhmaPUhgu7Z9MVlC5VtgK8sr+9TkPsbfRPwUI6JpqZxYqAMPOp6UCDDUVnYQR6rj93 GLvnXZj1gAyMCH8TRX9/wW3Gkh9RCQsIoe15IhMTH8QRXvzRfFYmB/grGfXwOdn0iYZhKjN9eFO qvXLx7a26hOKkvPjp9xzK5aWYU+lJjfbWiCBIQssfA== X-Google-Smtp-Source: AGHT+IGDMpSHE1GZ4t/jzRrkNyOPqNfpPS2cRe8VdssmuygTVVN5f+zhCLgOMGXrTIxzPDeuU2rwFg== X-Received: by 2002:a17:90b:3bc4:b0:2f6:be57:49d2 with SMTP id 98e67ed59e1d1-2fce78c92edmr21784226a91.17.1740348412699; Sun, 23 Feb 2025 14:06:52 -0800 (PST) Received: from localhost.localdomain ([2800:2121:b040:c:b49d:85a5:a7d1:4da6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fceb04bf70sm5091848a91.16.2025.02.23.14.06.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2025 14:06:52 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 23 Feb 2025 19:06:08 -0300 Message-ID: <20250223220630.18756-9-jamrial@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250223220630.18756-1-jamrial@gmail.com> References: <20250223220630.18756-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 08/30] avcodec: remove deprecated FF_API_VDPAU_ALLOC_GET_SET 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: Deprecated since 2024-03-07. Signed-off-by: James Almer --- libavcodec/vdpau.c | 21 --------------------- libavcodec/vdpau.h | 33 --------------------------------- libavcodec/version_major.h | 1 - 3 files changed, 55 deletions(-) diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 0dd5641603..6dcc7cb531 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -62,20 +62,6 @@ static int vdpau_error(VdpStatus status) } } -#if FF_API_VDPAU_ALLOC_GET_SET -AVVDPAUContext *av_alloc_vdpaucontext(void) -{ -FF_DISABLE_DEPRECATION_WARNINGS - return av_vdpau_alloc_context(); -FF_ENABLE_DEPRECATION_WARNINGS -} - -#define MAKE_ACCESSORS(str, name, type, field) \ - type av_##name##_get_##field(const str *s) { return s->field; } \ - void av_##name##_set_##field(str *s, type v) { s->field = v; } -MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2) -#endif - int av_vdpau_get_surface_parameters(AVCodecContext *avctx, VdpChromaType *type, uint32_t *width, uint32_t *height) @@ -402,13 +388,6 @@ int ff_vdpau_add_buffer(struct vdpau_picture_context *pic_ctx, return 0; } -#if FF_API_VDPAU_ALLOC_GET_SET -AVVDPAUContext *av_vdpau_alloc_context(void) -{ - return av_mallocz(sizeof(VDPAUHWContext)); -} -#endif - int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device, VdpGetProcAddress *get_proc, unsigned flags) { diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h index 8021c25761..da77c5daed 100644 --- a/libavcodec/vdpau.h +++ b/libavcodec/vdpau.h @@ -93,28 +93,6 @@ typedef struct AVVDPAUContext { AVVDPAU_Render2 render2; } AVVDPAUContext; -#if FF_API_VDPAU_ALLOC_GET_SET -/** - * @brief allocation function for AVVDPAUContext - * - * Allows extending the struct without breaking API/ABI - * @deprecated use av_vdpau_bind_context() instead - */ -attribute_deprecated -AVVDPAUContext *av_alloc_vdpaucontext(void); - -/** - * @deprecated render2 is public and can be accessed directly - */ -attribute_deprecated -AVVDPAU_Render2 av_vdpau_hwaccel_get_render2(const AVVDPAUContext *); -/** - * @deprecated render2 is public and can be accessed directly - */ -attribute_deprecated -void av_vdpau_hwaccel_set_render2(AVVDPAUContext *, AVVDPAU_Render2); -#endif - /** * Associate a VDPAU device with a codec context for hardware acceleration. * This function is meant to be called from the get_format() codec callback, @@ -155,17 +133,6 @@ int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device, int av_vdpau_get_surface_parameters(AVCodecContext *avctx, VdpChromaType *type, uint32_t *width, uint32_t *height); -#if FF_API_VDPAU_ALLOC_GET_SET -/** - * Allocate an AVVDPAUContext. - * - * @return Newly-allocated AVVDPAUContext or NULL on failure. - * @deprecated use av_vdpau_bind_context() instead - */ -attribute_deprecated -AVVDPAUContext *av_vdpau_alloc_context(void); -#endif - /** @} */ #endif /* AVCODEC_VDPAU_H */ diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h index 9a30ba5910..dba07a0078 100644 --- a/libavcodec/version_major.h +++ b/libavcodec/version_major.h @@ -39,7 +39,6 @@ #define FF_API_INIT_PACKET (LIBAVCODEC_VERSION_MAJOR < 62) -#define FF_API_VDPAU_ALLOC_GET_SET (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_QUALITY_FACTOR (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_V408_CODECID (LIBAVCODEC_VERSION_MAJOR < 62) #define FF_API_CODEC_PROPS (LIBAVCODEC_VERSION_MAJOR < 63) -- 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".