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 8C1994AF28 for ; Fri, 24 May 2024 09:11:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B9EA968D52E; Fri, 24 May 2024 12:11:29 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B0C6768D1C6 for ; Fri, 24 May 2024 12:11:23 +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=nRaPoS2q; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 74E5F240DAC for ; Fri, 24 May 2024 11:11:23 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id cKEGjlGGaWop for ; Fri, 24 May 2024 11:11:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1716541882; bh=9876J173naHJfbz/G7rhVJAlOU6KFrDdKKh/d0eGngg=; h=Subject:From:To:In-Reply-To:References:Date:From; b=nRaPoS2qJjMT8x+ZGStpIxLh8EIW0snn3WBROiq+bRU7BCOpgoLmC3bp9eedMsiOM B1mBMsvtY55oWz+bhD9YSPEVMiaRxXD2jNfG/+N1Ginc9QUlZQczBKQIjxSOc2SWY2 7RJKl8GVvKwEui2m6H9CTd3m9Xkhzz6+MhB4ImflXwAlEFn/uQmWkdAxC27S2Q5fU+ Y6lQ/1eEHUwBB09hbzjt3yhHtra+wQrSgSsmj0oA6AN3YDAelhR4IQbuQegaaLQNtn bgUUuN7B2Rc9ixKrpjhMPsEAa4YregE9fmFsAWUyUqkgyNcIzbE6npO4EpU+zDySXg lRknnbfKqF92w== 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 C7D9B2404E5 for ; Fri, 24 May 2024 11:11:22 +0200 (CEST) Received: by lain.khirnov.net (Postfix, from userid 1000) id B56211601B9; Fri, 24 May 2024 11:11:22 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <164770af-7349-4ff1-93d3-73f30ac90966@gmail.com> References: <20240410133118.28144-1-anton@khirnov.net> <20240410133118.28144-9-anton@khirnov.net> <164770af-7349-4ff1-93d3-73f30ac90966@gmail.com> Mail-Followup-To: FFmpeg development discussions and patches Date: Fri, 24 May 2024 11:11:22 +0200 Message-ID: <171654188271.28895.394178040717190209@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 09/10] lavc/hevc_ps: reduce the size of ShortTermRPS.used 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 James Almer (2024-04-10 15:42:51) > > > On 4/10/2024 10:31 AM, Anton Khirnov wrote: > > diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c > > index 5d7c6b1b64..c2b65fc201 100644 > > --- a/libavcodec/vulkan_hevc.c > > +++ b/libavcodec/vulkan_hevc.c > > @@ -374,17 +374,17 @@ static void set_sps(const HEVCSPS *sps, int sps_idx, > > /* NOTE: This is the predicted, and *reordered* version. > > * Probably incorrect, but the spec doesn't say which version to use. */ > > for (int j = 0; j < sps->st_rps[i].num_delta_pocs; j++) > > - str[i].used_by_curr_pic_flag |= sps->st_rps[i].used[j] << j; > > + str[i].used_by_curr_pic_flag |= st_rps->used; > > > > for (int j = 0; j < str[i].num_negative_pics; j++) { > > - str[i].delta_poc_s0_minus1[j] = st_rps->delta_poc[j] - (j ? st_rps->delta_poc[j - 1] : 0) - 1; > > - str[i].used_by_curr_pic_s0_flag |= sps->st_rps[i].used[j] << j; > > + str[i].delta_poc_s0_minus1[j] = st_rps->delta_poc[j] - (j ? st_rps->delta_poc[j - 1] : 0) - 1; > > + str[i].used_by_curr_pic_s0_flag |= st_rps->used & ((1 << str[i].num_negative_pics) - 1); > > av_mod_uintp2(st_rps->used, str[i].num_negative_pics). unrelated change -- 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".