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 ESMTP id 4C88B44AA2 for ; Fri, 6 Jan 2023 09:18:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F53568BBF9; Fri, 6 Jan 2023 11:18:50 +0200 (EET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1D89568BAEB for ; Fri, 6 Jan 2023 11:18:42 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672996728; x=1704532728; h=from:to:subject:date:message-id; bh=5hJXocDBcAZi2YnV5erZtOXA1Yon5sykPDG4BgvSjAg=; b=LMJzpj/P6xf8zf6L59zEyaJPACqcpwjoJcCefap/3RK9MfWn/skerz2z wzUl5KXua2yYaTvRR1BCDNHFuYPPPOoo8ZkyI5I4KAjUmJjrTRbjYQBZu +NEtuxK6hhDJl0+74ZuzZuax0tRghzq/eahwZMe4yANd/X/uxqklISdB6 ZyzlmZKPUc0ifaQF8tuKbXnJyNZU+DhzmR+9EaCZSG7I08WEdnXoQYTo/ WdAR33z1F2rVaCyZFiOXoeVPeOvsXHLP0jdTGxQmAI7V4SSVnqmjSmVip 1F8koHziQr15oHMIR7h1AbyrMws4WJeOEDnHTMpBhClT+47UxHJCnoYtN g==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="349653078" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="349653078" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 01:18:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="724390802" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="724390802" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.83]) by fmsmga004.fm.intel.com with ESMTP; 06 Jan 2023 01:18:39 -0800 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Fri, 6 Jan 2023 17:01:40 +0800 Message-Id: <20230106090142.28445-1-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH V3 1/3] lavfi/dnn: Mark native backend as deprecated 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 MIME-Version: 1.0 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: Mark native as deprecated for backed_type option. Modify realted error message. Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_interface.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c index 554a36b0dc..12d36f7fed 100644 --- a/libavfilter/dnn/dnn_interface.c +++ b/libavfilter/dnn/dnn_interface.c @@ -24,7 +24,6 @@ */ #include "../dnn_interface.h" -#include "dnn_backend_native.h" #include "dnn_backend_tf.h" #include "dnn_backend_openvino.h" #include "libavutil/mem.h" @@ -40,12 +39,9 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) switch(backend_type){ case DNN_NATIVE: - dnn_module->load_model = &ff_dnn_load_model_native; - dnn_module->execute_model = &ff_dnn_execute_model_native; - dnn_module->get_result = &ff_dnn_get_result_native; - dnn_module->flush = &ff_dnn_flush_native; - dnn_module->free_model = &ff_dnn_free_model_native; - break; + av_log(NULL, AV_LOG_ERROR, "Native backend is deprecated, please use other supported DNN backends.\n"); + av_freep(&dnn_module); + return NULL; case DNN_TF: #if (CONFIG_LIBTENSORFLOW == 1) dnn_module->load_model = &ff_dnn_load_model_tf; @@ -71,7 +67,7 @@ DNNModule *ff_get_dnn_module(DNNBackendType backend_type) #endif break; default: - av_log(NULL, AV_LOG_ERROR, "Module backend_type is not native or tensorflow\n"); + av_log(NULL, AV_LOG_ERROR, "Module backend_type is not supported or enabled.\n"); av_freep(&dnn_module); return NULL; } -- 2.17.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".