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 B670745F85 for ; Sun, 21 May 2023 14:11:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C8C2268BFDC; Sun, 21 May 2023 17:11:18 +0300 (EEST) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0501968BEDF for ; Sun, 21 May 2023 17:11:13 +0300 (EEST) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id AD566106034F for ; Sun, 21 May 2023 14:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1684678271; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=9rnyfIrmbNeFkqL+0D5vmbFtBqpD7PpjcB0rxTOKQzk=; b=goKvzF28HRcc65sjv5Q73L1l/4tAqLfLJf2V4EqEtZDAqGMMsvnOV+VKg3csL01F xO3t8/g5QpzLXhbJBAijZaTBNeWPXUbVHDBZNmCZaKJrjeCnQcNKKAns664W6Czii8V L4oGSPhRJKpfsc7iYqxta6CCUtQ2p6P4sBMvRo2CQma+QO9d20r9rhd1kcnwtrquSGt 3ClS910leet1g0kWepVPKgmnotOubG9vho8zODs9DvfgqXHMu+YwAj9EkoldNDVCag9 Ka22uf8hrDN2pT1Bzw7C/n4dn+CYW16Onxd4BIOe9MUoF07ZaXohSfwcB6fkKF5kd64 kIEbAObILQ== Date: Sun, 21 May 2023 16:11:11 +0200 (CEST) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: <20230521130319.13813-2-nuomi2021@gmail.com> References: <20230521130319.13813-1-nuomi2021@gmail.com> <20230521130319.13813-2-nuomi2021@gmail.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 01/14] vvcdec: add thread executor 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: May 21, 2023, 15:03 by nuomi2021@gmail.com: > The executor design pattern was inroduced by java > > it also adapted by python > > Compared to handcrafted thread pool management, it greatly simplifies the thread code. > --- > libavcodec/Makefile | 1 + > libavcodec/vvc/Makefile | 4 + > libavcodec/vvc/vvc_executor.c | 193 ++++++++++++++++++++++++++++++++++ > libavcodec/vvc/vvc_executor.h | 73 +++++++++++++ > 4 files changed, 271 insertions(+) > create mode 100644 libavcodec/vvc/Makefile > create mode 100644 libavcodec/vvc/vvc_executor.c > create mode 100644 libavcodec/vvc/vvc_executor.h > I'd like a unified API, since for AV1, we'd want something similar. Having a custom one for each codec is a bad idea and prone to bitrotting. _______________________________________________ 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".