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 D2255497EC for ; Wed, 20 Mar 2024 23:10:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 20A8868D50E; Thu, 21 Mar 2024 01:10:02 +0200 (EET) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C324168D2EE for ; Thu, 21 Mar 2024 01:09:54 +0200 (EET) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id 121D610600E8 for ; Wed, 20 Mar 2024 23:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1710976192; 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=cXjBLra2uWzBfj8rBvh4GASpsLINBV/YsAMoDhdGx20=; b=lqTe4HnsOpTHWXPl9sDaMOeqDOhgJvsiVD+T3wHK5BrX1WNzdiewkD3FyozdEa0i 9LYCXUqCa826/3Ii1kUk69QQrDkcPsqrgX06pKtSxw/UHoFm1ExeUWI6V5otc7Tymmx RAO62MhCfFKzhlp2fCFupZDxUvkfo9m4t816QS0fq8XXLOauhAUypcUNiGwRL/WUGz6 evKlkD/t85nRJ3XZz9PbKc5JiRbZkRUq8T3s6tnMS2ru2JDHSC/JKBT6nHOrv2tcedM B7Yt8uTtYKgprpbTuvUCyA0ylaUtdmobtpd42rFcQ3LRPMmie0qce13Vuq1nsEnPn2G 0VDyaflPjQ== Date: Thu, 21 Mar 2024 00:09:52 +0100 (CET) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: <20240320222355.GX6420@pb2> References: <20240320222355.GX6420@pb2> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] sizeof(HEVCVPS) 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: Mar 20, 2024, 23:24 by michael@niedermayer.cc: > Hi > > why is sizeof(HEVCVPS) is 7463476 ? > > If you think about this for a moment, a VPS in the bit stream is what, 5 bytes ? > > Now iam not even talking about someone proving you a 10mb file with a million VPSs > 7TB allocation, memsets memcpies, ... > > But even with a totally normal file 7mb is easily bigger than the frame buffer > that wastes memory, it wastes cpu time, it wastes data cache > As discussed on IRC, Vulkan ran into this. The size of all HEVC structs (SPS, VPS, PPS) at their maximum array sizes is ~120 Mb. That's why there's a function in Vulkan to allocate them on demand. _______________________________________________ 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".