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 0BE6C498C8 for ; Fri, 22 Mar 2024 10:35:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 72D5E68D5C0; Fri, 22 Mar 2024 12:35:19 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BB70368D41D for ; Fri, 22 Mar 2024 12:35:12 +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=fcbCmucr; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 84061240DAC; Fri, 22 Mar 2024 11:35:12 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id uHLkko6LXR-2; Fri, 22 Mar 2024 11:35:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1711103712; bh=YOJIN4+DCbRND6dPHfanS05vDxJLihL5ufrPEm4gQTo=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=fcbCmucrAe7Svf7gX8Vpr6y5tEGZ+GJWnf9uec57CfwSSdZni1U3+olsGiF9vwkr3 5RWFW6jUTACmG2b7dAKmWEWrWySbpycnADI9nUz6yPPgkuQNIFVg1av/j+3B4dBMbt 4P/vkGMNEi4Fsk2CBM5uI3Vc/8Kx5RWIYFDMHEgLuuIHF6i5xTmnJ/MuvMpnuJpl6s hmUYgC9s/s+LJmicL/le6IqPb2neRExqm9TEIBWXrz4FRX9RVi1b0hxQQQlztU5Qnv VuqDdvBOsaHB/5FsJS9nCtMWg864dpsp6Mt3PEYSU6Uux8obH+gGCM36kKbN7x7rE7 EwPXha3GSfMYg== 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 0970F2404AF; Fri, 22 Mar 2024 11:35:12 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id E04F41601B9; Fri, 22 Mar 2024 11:35:11 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20240321170219.1487-1-Primeadvice@gmail.com> References: <20240321170219.1487-1-Primeadvice@gmail.com> Mail-Followup-To: FFmpeg development discussions and patches , Araz Iusubov Date: Fri, 22 Mar 2024 11:35:11 +0100 Message-ID: <171110371189.7287.624775908146975029@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] [v4] avcodec/vaapi_encode: add customized surface alignment 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 Cc: Araz Iusubov 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 Araz Iusubov (2024-03-21 18:02:19) > diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h > index bac30debae..1eb56aff78 100644 > --- a/libavutil/hwcontext.h > +++ b/libavutil/hwcontext.h > @@ -465,6 +465,13 @@ typedef struct AVHWFramesConstraints { > */ > int max_width; > int max_height; > + > + /** > + * The frame width/height log2 alignment when available > + * the lower 4 bits, width; another 4 bits, height > + * (Zero is not applied, use the default value) Why this unnecessary complication? Just use two ints, or two uint8_t's if you really need to save space, though that also seems unncessary as this struct is allocated rarely and usually does not live long. -- 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".