From patchwork Tue Aug 6 10:51:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramiro Polla X-Patchwork-Id: 50909 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:1f5a:b0:489:2eb3:e4c4 with SMTP id jm26csp1955643vqb; Tue, 6 Aug 2024 03:51:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDzc8sbFISYYA/qjoT/jw5wDz/aI9WU+P58thVqviteEmf1cu5OFVlBfA4Pjj+qY8oev7N9xLLQFhlEm1p/zdkGqGDhN2sjgn+Kw== X-Google-Smtp-Source: AGHT+IHN1xLH7u4kfeUP5MQeWVpKALKpjUMFll1OS5OwoevPi9kMIy5cWKRjLxCNvQB4uV0XW6ST X-Received: by 2002:a05:6402:685:b0:5a7:48de:deb7 with SMTP id 4fb4d7f45d1cf-5b7f39e089cmr9914493a12.14.1722941501113; Tue, 06 Aug 2024 03:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722941501; cv=none; d=google.com; s=arc-20160816; b=Gqn6rjX4NZ253+5uZb4fHE+UOlJn4g4pOqHeQiYR87ItTIXPakShmOtYwWfA/W9MYi iKbpN6VLJti7052+7/9vfvSM1JS5I9zpaIhms2Ty3effFuMdJc3o+tqxjJim00OfhHdz UEUBR9MbIdbi0d7t7V5iQCpFntRT2cAdJvOENHs5kC7te0G6hpdx9rkFXxqlNRS8Vff3 1NTYUD880P8aOnBwKwUKgDprYcZJ0l615bQ4A2efJMlCE9oAXwx/oA20E63XFN0yXMzc 6jM5M5mk6LiS6UXIiqI9siqbOfZyelufTl03JdyKQFQ4z2SbqT2mKxl8mCFVwvMxE21R 6q4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=tdPjZWIhluZDBKDUOSSIOg+ydwsOv4nhR5YfV4P6dnc=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=HcXt7isivE1hg0k7WwshjbkDhnR36Ktk0GO2sIErnFiIks3XTur4DAhuXiCaeowt9U m/qOFPLbHFghCQn0MSeqaIv2/8C16sY8vy4Sm1u6foNLc9LrpXLTRtv++bZ0fJtFCggt HdURk4HRik4EJy1/iEaXo5pUZsOMWeJ2Ee5gGxOowkoBJ/sXP03uqYozdOa38qFKxR4g ZtUhElidr2tqC6lSfmxyGiJDIXVWSb0rxTxythrQUmpafFZ9jT1VWTZ+CQ1KBK14NFOs I8kyLS/Piht1fSbIisJQM/gzNl6shmtv4xzxz3xYELtDlOumEfkKB/8jPWPTGvn159t4 EvGQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=bQvdGiGY; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-5b839710cc9si5851929a12.6.2024.08.06.03.51.40; Tue, 06 Aug 2024 03:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=bQvdGiGY; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CFB1468D9B6; Tue, 6 Aug 2024 13:51:18 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8719A68D9B6 for ; Tue, 6 Aug 2024 13:51:11 +0300 (EEST) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-428e0d18666so2744665e9.3 for ; Tue, 06 Aug 2024 03:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722941470; x=1723546270; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Mw4cBcvCc5RU8qZ+iJNvMdMFM1vtOMaVvneY2OpDxFw=; b=bQvdGiGYTDm9uR3l3aiCiTBf04gVpGDViDH/zL+dO6WWbty+qhHZTwbEad9XqrXOcg rrQLUdx9jlFnGgjzp6fbRLWG1WhrRtUcDTLbp4BczRDECbm+tqupJIV+TbMSHcAEoGqQ Oo6z3jY+eMP7/H3O9FoVuQLHsDbAeDr161CrsPf1SBu0Q40fWMx2/3RoOrHa+GmmspQp 2g+6qEu6rniYg7HwLMS9lM4mvunWZl2gZSxcpoYrnoWlmb0Gi678QvPA1aC6f1UQV/w3 nOo3dfACiscf5AE5fqCF7I6p7QlRv6inSGiHQyO/Qk/sI2FT81pHF3VBVsBYcgmEQEPc bUXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722941470; x=1723546270; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Mw4cBcvCc5RU8qZ+iJNvMdMFM1vtOMaVvneY2OpDxFw=; b=ZNP8F3ja8dLqfWSNPt/V3p+zVs9Z364UEzTIWXz2KHflVTAGzjEs0SMUPLO8V3qJTl MqZU6Zw3vqVYSzaU7EkVPVJ8PUv80vkyEmojbHlGNLp+cSeGXbwNfkKjGltZTtsHQm0m DTGx4IE6SOrkwU+mZn8fImCQ+OKao2/PtKbSjfQWwonmPvw4CdunYbsCKB45DUn0mbBm XKYna0pZwKSvaSwv1hBoD+seDhdgt8SiNH8lx+VqzBFvD9ThE3WeZ0exnWJ0Mh8BQIZH TJZbIcMxCaw0/sZjuw3ozT+DP2qb+N+n+sr1FNBIUiHgq+OEm60AhOKfFj0si6Sm1/IG RbiQ== X-Gm-Message-State: AOJu0YyR32U1dgH1tGi11aVfZhq3VdjWKU21AE4cmP/czN5kbfsDkGkx iqTP1IeHEiCHp9CqWtLxdN50yY8UTaoXGBAveN2pw8tncXhTkDWAZqIDU/Vy X-Received: by 2002:a5d:62c8:0:b0:366:ef25:de51 with SMTP id ffacd0b85a97d-36bbc1bd492mr10835038f8f.49.1722941469887; Tue, 06 Aug 2024 03:51:09 -0700 (PDT) Received: from localhost.localdomain (249.128-243-81.adsl-dyn.isp.belgacom.be. [81.243.128.249]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd01efe5sm12674592f8f.46.2024.08.06.03.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 03:51:09 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Tue, 6 Aug 2024 12:51:03 +0200 Message-Id: <20240806105106.59866-3-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240806105106.59866-1-ramiro.polla@gmail.com> References: <20240806105106.59866-1-ramiro.polla@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/5] swscale/yuv2rgb: prepare YUV2RGBFUNC macro for multi-planar rgb 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: L3H2JzB/Bp6A This will be used in the upcoming yuv42{0,2}p -> gbrp unscaled colorspace converters. There is no difference in performance. --- libswscale/yuv2rgb.c | 83 +++++++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 35 deletions(-) diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index d77660b3a3..31d10235ef 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -124,7 +124,7 @@ const int *sws_getCoefficients(int colorspace) dst_##l[12 * i + 8] = dst_##l[12 * i + 9] = g[Y]; \ dst_##l[12 * i + 10] = dst_##l[12 * i + 11] = r[Y]; -#define YUV2RGBFUNC(func_name, dst_type, alpha, yuv422) \ +#define YUV2RGBFUNC(func_name, dst_type, alpha, yuv422, nb_dst_planes) \ static int func_name(SwsContext *c, const uint8_t *src[], \ int srcStride[], int srcSliceY, int srcSliceH, \ uint8_t *dst[], int dstStride[]) \ @@ -137,6 +137,7 @@ const int *sws_getCoefficients(int colorspace) (dst_type *)(dst[0] + (yd) * dstStride[0]); \ dst_type *dst_2 = \ (dst_type *)(dst[0] + (yd + 1) * dstStride[0]); \ + dst_type av_unused *dst1_1, *dst1_2, *dst2_1, *dst2_2; \ dst_type av_unused *r, *g, *b; \ const uint8_t *py_1 = src[0] + y * srcStride[0]; \ const uint8_t *py_2 = py_1 + srcStride[0]; \ @@ -145,6 +146,12 @@ const int *sws_getCoefficients(int colorspace) const uint8_t av_unused *pu_2, *pv_2; \ const uint8_t av_unused *pa_1, *pa_2; \ unsigned int h_size = c->dstW >> 3; \ + if (nb_dst_planes > 1) { \ + dst1_1 = (dst_type *)(dst[1] + (yd) * dstStride[1]); \ + dst1_2 = (dst_type *)(dst[1] + (yd + 1) * dstStride[1]); \ + dst2_1 = (dst_type *)(dst[2] + (yd) * dstStride[2]); \ + dst2_2 = (dst_type *)(dst[2] + (yd + 1) * dstStride[2]); \ + } \ if (yuv422) { \ pu_2 = pu_1 + srcStride[1]; \ pv_2 = pv_1 + srcStride[2]; \ @@ -156,7 +163,7 @@ const int *sws_getCoefficients(int colorspace) while (h_size--) { \ int av_unused U, V, Y; \ -#define ENDYUV2RGBLINE(dst_delta, ss, alpha, yuv422) \ +#define ENDYUV2RGBLINE(dst_delta, ss, alpha, yuv422, nb_dst_planes) \ pu_1 += 4 >> ss; \ pv_1 += 4 >> ss; \ if (yuv422) { \ @@ -171,6 +178,12 @@ const int *sws_getCoefficients(int colorspace) } \ dst_1 += dst_delta >> ss; \ dst_2 += dst_delta >> ss; \ + if (nb_dst_planes > 1) { \ + dst1_1 += dst_delta >> ss; \ + dst1_2 += dst_delta >> ss; \ + dst2_1 += dst_delta >> ss; \ + dst2_2 += dst_delta >> ss; \ + } \ } \ if (c->dstW & (4 >> ss)) { \ int av_unused Y, U, V; \ @@ -181,8 +194,8 @@ const int *sws_getCoefficients(int colorspace) return srcSliceH; \ } -#define YUV420FUNC(func_name, dst_type, alpha, abase, PUTFUNC, dst_delta) \ - YUV2RGBFUNC(func_name, dst_type, alpha, 0) \ +#define YUV420FUNC(func_name, dst_type, alpha, abase, PUTFUNC, dst_delta, nb_dst_planes) \ + YUV2RGBFUNC(func_name, dst_type, alpha, 0, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ PUTFUNC(2, 0, abase); \ @@ -198,7 +211,7 @@ const int *sws_getCoefficients(int colorspace) LOADCHROMA(1, 3); \ PUTFUNC(2, 3, abase); \ PUTFUNC(1, 3, abase); \ - ENDYUV2RGBLINE(dst_delta, 0, alpha, 0) \ + ENDYUV2RGBLINE(dst_delta, 0, alpha, 0, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ PUTFUNC(2, 0, abase); \ @@ -206,14 +219,14 @@ const int *sws_getCoefficients(int colorspace) LOADCHROMA(1, 1); \ PUTFUNC(2, 1, abase); \ PUTFUNC(1, 1, abase); \ - ENDYUV2RGBLINE(dst_delta, 1, alpha, 0) \ + ENDYUV2RGBLINE(dst_delta, 1, alpha, 0, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ PUTFUNC(2, 0, abase); \ ENDYUV2RGBFUNC() -#define YUV422FUNC(func_name, dst_type, alpha, abase, PUTFUNC, dst_delta) \ - YUV2RGBFUNC(func_name, dst_type, alpha, 1) \ +#define YUV422FUNC(func_name, dst_type, alpha, abase, PUTFUNC, dst_delta, nb_dst_planes) \ + YUV2RGBFUNC(func_name, dst_type, alpha, 1, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ \ @@ -237,7 +250,7 @@ const int *sws_getCoefficients(int colorspace) \ LOADCHROMA(1, 3); \ PUTFUNC(1, 3, abase); \ - ENDYUV2RGBLINE(dst_delta, 0, alpha, 1) \ + ENDYUV2RGBLINE(dst_delta, 0, alpha, 1, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ \ @@ -249,7 +262,7 @@ const int *sws_getCoefficients(int colorspace) \ LOADCHROMA(1, 1); \ PUTFUNC(1, 1, abase); \ - ENDYUV2RGBLINE(dst_delta, 1, alpha, 1) \ + ENDYUV2RGBLINE(dst_delta, 1, alpha, 1, nb_dst_planes) \ LOADCHROMA(1, 0); \ PUTFUNC(1, 0, abase); \ \ @@ -258,7 +271,7 @@ const int *sws_getCoefficients(int colorspace) ENDYUV2RGBFUNC() #define YUV420FUNC_DITHER(func_name, dst_type, LOADDITHER, PUTFUNC, dst_delta) \ - YUV2RGBFUNC(func_name, dst_type, 0, 0) \ + YUV2RGBFUNC(func_name, dst_type, 0, 0, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -276,7 +289,7 @@ const int *sws_getCoefficients(int colorspace) LOADCHROMA(1, 3); \ PUTFUNC(2, 3, 6 + 8); \ PUTFUNC(1, 3, 6); \ - ENDYUV2RGBLINE(dst_delta, 0, 0, 0) \ + ENDYUV2RGBLINE(dst_delta, 0, 0, 0, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -286,7 +299,7 @@ const int *sws_getCoefficients(int colorspace) LOADCHROMA(1, 1); \ PUTFUNC(2, 1, 2 + 8); \ PUTFUNC(1, 1, 2); \ - ENDYUV2RGBLINE(dst_delta, 1, 0, 0) \ + ENDYUV2RGBLINE(dst_delta, 1, 0, 0, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -295,7 +308,7 @@ const int *sws_getCoefficients(int colorspace) ENDYUV2RGBFUNC() #define YUV422FUNC_DITHER(func_name, dst_type, LOADDITHER, PUTFUNC, dst_delta) \ - YUV2RGBFUNC(func_name, dst_type, 0, 1) \ + YUV2RGBFUNC(func_name, dst_type, 0, 1, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -321,7 +334,7 @@ const int *sws_getCoefficients(int colorspace) \ LOADCHROMA(1, 3); \ PUTFUNC(1, 3, 6); \ - ENDYUV2RGBLINE(dst_delta, 0, 0, 1) \ + ENDYUV2RGBLINE(dst_delta, 0, 0, 1, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -335,7 +348,7 @@ const int *sws_getCoefficients(int colorspace) \ LOADCHROMA(1, 1); \ PUTFUNC(1, 1, 2); \ - ENDYUV2RGBLINE(dst_delta, 1, 0, 1) \ + ENDYUV2RGBLINE(dst_delta, 1, 0, 1, 1) \ LOADDITHER \ \ LOADCHROMA(1, 0); \ @@ -431,7 +444,7 @@ const int *sws_getCoefficients(int colorspace) g[Y + d64[1 + o]] + \ b[Y + d128[1 + o]]; -YUV2RGBFUNC(yuv2rgb_c_1_ordered_dither, uint8_t, 0, 0) +YUV2RGBFUNC(yuv2rgb_c_1_ordered_dither, uint8_t, 0, 0, 1) const uint8_t *d128 = ff_dither_8x8_220[yd & 7]; char out_1 = 0, out_2 = 0; g = c->table_gU[128 + YUVRGB_TABLE_HEADROOM] + c->table_gV[128 + YUVRGB_TABLE_HEADROOM]; @@ -494,18 +507,18 @@ YUV2RGBFUNC(yuv2rgb_c_1_ordered_dither, uint8_t, 0, 0) ENDYUV2RGBFUNC() // YUV420 -YUV420FUNC(yuv2rgb_c_48, uint8_t, 0, 0, PUTRGB48, 48) -YUV420FUNC(yuv2rgb_c_bgr48, uint8_t, 0, 0, PUTBGR48, 48) -YUV420FUNC(yuv2rgb_c_32, uint32_t, 0, 0, PUTRGB, 8) +YUV420FUNC(yuv2rgb_c_48, uint8_t, 0, 0, PUTRGB48, 48, 1) +YUV420FUNC(yuv2rgb_c_bgr48, uint8_t, 0, 0, PUTBGR48, 48, 1) +YUV420FUNC(yuv2rgb_c_32, uint32_t, 0, 0, PUTRGB, 8, 1) #if HAVE_BIGENDIAN -YUV420FUNC(yuva2argb_c, uint32_t, 1, 24, PUTRGBA, 8) -YUV420FUNC(yuva2rgba_c, uint32_t, 1, 0, PUTRGBA, 8) +YUV420FUNC(yuva2argb_c, uint32_t, 1, 24, PUTRGBA, 8, 1) +YUV420FUNC(yuva2rgba_c, uint32_t, 1, 0, PUTRGBA, 8, 1) #else -YUV420FUNC(yuva2rgba_c, uint32_t, 1, 24, PUTRGBA, 8) -YUV420FUNC(yuva2argb_c, uint32_t, 1, 0, PUTRGBA, 8) +YUV420FUNC(yuva2rgba_c, uint32_t, 1, 24, PUTRGBA, 8, 1) +YUV420FUNC(yuva2argb_c, uint32_t, 1, 0, PUTRGBA, 8, 1) #endif -YUV420FUNC(yuv2rgb_c_24_rgb, uint8_t, 0, 0, PUTRGB24, 24) -YUV420FUNC(yuv2rgb_c_24_bgr, uint8_t, 0, 0, PUTBGR24, 24) +YUV420FUNC(yuv2rgb_c_24_rgb, uint8_t, 0, 0, PUTRGB24, 24, 1) +YUV420FUNC(yuv2rgb_c_24_bgr, uint8_t, 0, 0, PUTBGR24, 24, 1) YUV420FUNC_DITHER(yuv2rgb_c_16_ordered_dither, uint16_t, LOADDITHER16, PUTRGB16, 8) YUV420FUNC_DITHER(yuv2rgb_c_15_ordered_dither, uint16_t, LOADDITHER15, PUTRGB15, 8) YUV420FUNC_DITHER(yuv2rgb_c_12_ordered_dither, uint16_t, LOADDITHER12, PUTRGB12, 8) @@ -514,18 +527,18 @@ YUV420FUNC_DITHER(yuv2rgb_c_4_ordered_dither, uint8_t, LOADDITHER4D, PUTRGB4D YUV420FUNC_DITHER(yuv2rgb_c_4b_ordered_dither, uint8_t, LOADDITHER4DB, PUTRGB4DB, 8) // YUV422 -YUV422FUNC(yuv422p_rgb48_c, uint8_t, 0, 0, PUTRGB48, 48) -YUV422FUNC(yuv422p_bgr48_c, uint8_t, 0, 0, PUTBGR48, 48) -YUV422FUNC(yuv422p_rgb32_c, uint32_t, 0, 0, PUTRGB, 8) +YUV422FUNC(yuv422p_rgb48_c, uint8_t, 0, 0, PUTRGB48, 48, 1) +YUV422FUNC(yuv422p_bgr48_c, uint8_t, 0, 0, PUTBGR48, 48, 1) +YUV422FUNC(yuv422p_rgb32_c, uint32_t, 0, 0, PUTRGB, 8, 1) #if HAVE_BIGENDIAN -YUV422FUNC(yuva422p_argb_c, uint32_t, 1, 24, PUTRGBA, 8) -YUV422FUNC(yuva422p_rgba_c, uint32_t, 1, 0, PUTRGBA, 8) +YUV422FUNC(yuva422p_argb_c, uint32_t, 1, 24, PUTRGBA, 8, 1) +YUV422FUNC(yuva422p_rgba_c, uint32_t, 1, 0, PUTRGBA, 8, 1) #else -YUV422FUNC(yuva422p_rgba_c, uint32_t, 1, 24, PUTRGBA, 8) -YUV422FUNC(yuva422p_argb_c, uint32_t, 1, 0, PUTRGBA, 8) +YUV422FUNC(yuva422p_rgba_c, uint32_t, 1, 24, PUTRGBA, 8, 1) +YUV422FUNC(yuva422p_argb_c, uint32_t, 1, 0, PUTRGBA, 8, 1) #endif -YUV422FUNC(yuv422p_rgb24_c, uint8_t, 0, 0, PUTRGB24, 24) -YUV422FUNC(yuv422p_bgr24_c, uint8_t, 0, 0, PUTBGR24, 24) +YUV422FUNC(yuv422p_rgb24_c, uint8_t, 0, 0, PUTRGB24, 24, 1) +YUV422FUNC(yuv422p_bgr24_c, uint8_t, 0, 0, PUTBGR24, 24, 1) YUV422FUNC_DITHER(yuv422p_bgr16, uint16_t, LOADDITHER16, PUTRGB16, 8) YUV422FUNC_DITHER(yuv422p_bgr15, uint16_t, LOADDITHER15, PUTRGB15, 8) YUV422FUNC_DITHER(yuv422p_bgr12, uint16_t, LOADDITHER12, PUTRGB12, 8)