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 3E8AA46D92 for ; Mon, 8 Jan 2024 14:57:18 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6540C68CC45; Mon, 8 Jan 2024 16:57:15 +0200 (EET) Received: from smtp2.us.opalstack.com (smtp2.us.opalstack.com [23.106.47.103]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2064068CA09 for ; Mon, 8 Jan 2024 16:57:08 +0200 (EET) Received: from polaris.citlab.utoronto.ca (unknown [128.100.127.106]) by smtp2.us.opalstack.com (Postfix) with ESMTPSA id B22E71CFF58; Mon, 8 Jan 2024 14:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeffreyknockel.com; s=dkim; t=1704725826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Fn9rXGxuCjLM0inoHmcQ+dtkRsWaycBoUWYOt9VMqu0=; b=MXTpyniCYWXkIk6D1QXpaaIXGQqRyOVlpsdVOs8vZ96odKMqinUQ0dCIY9QZwYLuefR6ZD yQtQfwzkakXJEm6SdS7w6D8US9g+KlqQp7BfTmQhJlAPZJMXC20rrUaageY4KAPE2oF9yc B9KuAugv2aYEYf13LSMBzcu2A3Y1byE= From: Jeffrey Knockel To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Jan 2024 09:53:37 -0500 Message-Id: <20240108145336.380094-1-jeff@jeffreyknockel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.42 Subject: [FFmpeg-devel] [PATCH] avutil/pixfmt: fix AV_PIX_FMT_RGB8 description 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: Jeffrey Knockel 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: Previously the description was partially mistaken, explaining the format as RGB 3:3:2, (msb)2R 3G 3B(lsb). While the RGB 3:3:2 part is correct, the latter part should be: (msb)3R 3G 2B(lsb). The corresponding bit masks are red: 0xE0, green: 0x1C, blue: 0x03. Signed-off-by: Jeffrey Knockel --- libavutil/pixfmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 58f9ad28bd..9c87571f49 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -83,7 +83,7 @@ enum AVPixelFormat { AV_PIX_FMT_BGR8, ///< packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb) AV_PIX_FMT_BGR4, ///< packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits AV_PIX_FMT_BGR4_BYTE, ///< packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb) - AV_PIX_FMT_RGB8, ///< packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb) + AV_PIX_FMT_RGB8, ///< packed RGB 3:3:2, 8bpp, (msb)3R 3G 2B(lsb) AV_PIX_FMT_RGB4, ///< packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits AV_PIX_FMT_RGB4_BYTE, ///< packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb) AV_PIX_FMT_NV12, ///< planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V) -- 2.34.1 _______________________________________________ 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".