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 4FBE848923 for ; Mon, 22 Jan 2024 10:39:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 59C2368D0BF; Mon, 22 Jan 2024 12:38:58 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 619FF68CB3A for ; Mon, 22 Jan 2024 12:38:52 +0200 (EET) 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=HnOPJ0vp; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 2AA682405F2 for ; Mon, 22 Jan 2024 11:38:52 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id Vw3V5Z0vSpQP for ; Mon, 22 Jan 2024 11:38:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1705919931; bh=1Gd6ELKVzaIU4pKPU2FSFIQ37HWlPoPE5sLQaavdbhI=; h=Subject:From:To:In-Reply-To:References:Date:From; b=HnOPJ0vpT19Viju3CZbMziyjil5kGAHUNbshK0squHRANGKUgNqA0fln89mCg9skX kbrA0VamhqZVnaCS3o8RPuK5DNtUJfrlgXI10OtKRGt6I1qrMoR5YIRJIr/CiPUjjs esHxvPP6lm4zNII7znLfY5gMvjKsmFFUkjk/AE7eI7P9r3g+LPAGMMZ2mdwAbwAb1t 9ZUskiuhB6mtSHnVpmB+4G/dEWdbHPEGFx9QyiYX0NU30NWo8WNWMeow+548J20NRF /OQqNWnnDC7in+Q+WkgH6Ahz9WXYXTbbXZZXR5AFp2iemTf6jQp4G9W/6WclQO6BiQ cRyc/9RuniJ+g== 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 79BA92404E5 for ; Mon, 22 Jan 2024 11:38:51 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id 652211601B9; Mon, 22 Jan 2024 11:38:51 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <74f11e47-060e-47d5-9329-bbeba5cbe218@gmail.com> References: <20240120220407.64141-1-jamrial@gmail.com> <170581842075.8914.15090755160718905890@lain.khirnov.net> <170585816018.8914.1005492749396712320@lain.khirnov.net> <5cabd1bb-f454-4e5c-8950-b2217fba5231@gmail.com> <170586174894.8914.16513575461875087750@lain.khirnov.net> <071553d8-cde6-4c48-8633-e7fcc01a6b7a@gmail.com> <170586374871.8914.17185524253768248293@lain.khirnov.net> <8bd854a2-b10d-479b-8a21-0e2f506db08b@gmail.com> <74f11e47-060e-47d5-9329-bbeba5cbe218@gmail.com> Mail-Followup-To: FFmpeg development discussions and patches Date: Mon, 22 Jan 2024 11:38:51 +0100 Message-ID: <170591993138.8914.11647395801924256341@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 1/2 v2] avutil: add a Tile Grid API 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-01-21 22:03:10) > I could remove the types and the union altogether and leave only the > array even for uniform tiles if you think that simplifies the API, but > seems like a waste of memory to allocate a rows x cols array of ints > just to have the same value written for every entry. My point is that the API can abstract away the details of how the data is stored. You could have it always behave like a list of N rectangles, while only storing as much information as is needed. -- 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".