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 539D6483EB for ; Wed, 31 Jul 2024 11:26:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8856B68D766; Wed, 31 Jul 2024 14:26:30 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 75D2668D726 for ; Wed, 31 Jul 2024 14:26:24 +0300 (EEST) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=IihvGKFv; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 2A36A240DB7 for ; Wed, 31 Jul 2024 13:26:24 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id loQeMrqYMhUq for ; Wed, 31 Jul 2024 13:26:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1722425183; bh=nF8PuD2M83M2M419tWNHpBA23XiqxBk0eS5pulbaS5c=; h=Subject:From:To:In-Reply-To:References:Date:From; b=IihvGKFvtjQLmrrLM58BMN5y0NXk+VRlp++f1gQxSclQGv2hFXROd1mOSaTQpSVyf thmenJ0Z7buH+ocQmajJInflA6OHl/u0DF5wAPoKT8EttSW3EN+pv3E92O41XATiWw knpkFg4AdjHVaxWMmNkN8pvvd7OrL3ctadCUbmddcHo+8Slz3lQIuCybXay+Dj70TZ LL+9bEJTrNWeCRIcB4TdToIT7Wk2wckZqgh/2+lJtDTlKu1J1zHXX1USfPX7Ljj8Q8 +V9UbY2K5zd5mFYRLzKPIhnADYd1Akc4yT4k5uHLVe8wLpJ51YwUZFKRnfZ3JY+3Mc y8/l03/dOElEA== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 8DCDE240695 for ; Wed, 31 Jul 2024 13:26:23 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id 6C8811601B9; Wed, 31 Jul 2024 13:26:23 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20240724184450.GO4991@pb2> References: <20240716171155.31838-1-anton@khirnov.net> <20240716171155.31838-33-anton@khirnov.net> <20240724184450.GO4991@pb2> Mail-Followup-To: FFmpeg development discussions and patches Date: Wed, 31 Jul 2024 13:26:23 +0200 Message-ID: <172242518341.21344.379598706425519444@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 33/39] lavc: convert frame threading to the receive_frame() pattern 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: Quoting Michael Niedermayer (2024-07-24 20:44:50) > On Tue, Jul 16, 2024 at 07:11:48PM +0200, Anton Khirnov wrote: > > Reorganize the code such that the frame threading code does not call the > > decoders directly, but instead calls back into the generic decoding > > code. This avoids duplicating the logic that wraps the decoder > > invocation and allows receive_frame()-based decoders to use frame > > threading. > > > > Further work by Timo Rothenpieler . > > --- > > libavcodec/avcodec.c | 9 +- > > libavcodec/avcodec_internal.h | 25 +-- > > libavcodec/decode.c | 40 +++-- > > libavcodec/internal.h | 7 + > > libavcodec/pthread_frame.c | 278 +++++++++++++++++++++------------- > > 5 files changed, 235 insertions(+), 124 deletions(-) > > this (frm your recive_frame branch) breaks: Then I will need to reintroduce some form of patch 28 - ideally its second iteration split into 3 patches, as then the ownership semantics of slice_damaged is much simpler. -- Anton Khirnov _______________________________________________ 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".