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 56A7746722 for ; Thu, 15 Jun 2023 19:38:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5437868C580; Thu, 15 Jun 2023 22:38:32 +0300 (EEST) Received: from mail.overt.org (mail.overt.org [72.14.183.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 08B3968A531 for ; Thu, 15 Jun 2023 22:38:26 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=overt.org; s=mail; t=1686857904; bh=V18XzZMPf2T59zwsYrzXc+w51tWVE80MOH8XRaemAHw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=gZfGuXYoWee5FwSbRf8ab7vH7tYKzWcKxYddFsP6zwZHP5KgJ5+MRXnLN6O08oMyM XUtTTdAlQlUzNWOY7NbYJ0VBjJovYxYY6Y3F8OTs5UmEs9tyohTWrZT3wX8wLSlqvx 85AcPzCUs5uDrx4Zs8dA1R8j1yLnyo595bf4jTZYSUANLFXuFQqpk97W+GhcT4DTXQ 9pT+p/9WnmDvnZhlEzmNRAYDnSS9SRb3l2Rakg2JIZpymzM5RYIIuulKGFZju/SaPM muIO3n0MPbjw4bKxV5eHa/oiIDAYffWYivhqIE44p5ZwzQ13m2kSQ1ef9saTJTJho8 aVrNf12Pw+l4g== Received: from authenticated-user (mail.overt.org [72.14.183.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.overt.org (Postfix) with ESMTPSA id 97CC46098D for ; Thu, 15 Jun 2023 14:38:24 -0500 (CDT) Date: Thu, 15 Jun 2023 12:38:23 -0700 From: Philip Langdale To: ffmpeg-devel@ffmpeg.org Message-ID: <20230615123823.11f65f2f@fido7> In-Reply-To: <20230611025935.21732-1-philipl@overt.org> References: <20230611025935.21732-1-philipl@overt.org> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] lavu/hwcontext_cuda: declare support for argb/abgr/rgba/bgra 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: On Sat, 10 Jun 2023 19:59:35 -0700 Philip Langdale wrote: > These are physically compatible formats and are potentially useful. > > Signed-off-by: Philip Langdale > --- > libavutil/hwcontext_cuda.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c > index 5ae7711c94..22eb9f5513 100644 > --- a/libavutil/hwcontext_cuda.c > +++ b/libavutil/hwcontext_cuda.c > @@ -45,6 +45,10 @@ static const enum AVPixelFormat > supported_formats[] = { AV_PIX_FMT_YUV444P16, > AV_PIX_FMT_0RGB32, > AV_PIX_FMT_0BGR32, > + AV_PIX_FMT_ARGB, > + AV_PIX_FMT_ABGR, > + AV_PIX_FMT_RGBA, > + AV_PIX_FMT_BGRA, > #if CONFIG_VULKAN > AV_PIX_FMT_VULKAN, > #endif After discussion with Timo, pushed as: > @@ -45,6 +45,8 @@ static const enum AVPixelFormat supported_formats[] > = { AV_PIX_FMT_YUV444P16, > AV_PIX_FMT_0RGB32, > AV_PIX_FMT_0BGR32, > + AV_PIX_FMT_RGB32, > + AV_PIX_FMT_BGR32, > #if CONFIG_VULKAN > AV_PIX_FMT_VULKAN, > #endif to fix that nvenc accepts RGB32 and BGR32 but the hwcontext does not. RGB32 and BGR32 map to RGBA and BGRA on little-endian, so it achieves the main result I was originally looking for as well. --phil _______________________________________________ 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".