From patchwork Tue Aug 6 10:51:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramiro Polla X-Patchwork-Id: 35166 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:1f5a:b0:489:2eb3:e4c4 with SMTP id jm26csp1955492vqb; Tue, 6 Aug 2024 03:51:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV6iLJLBar7MYhmOXhn35fTsCoYnUpXS8mlQDRIwUV5AbtSDtLgW/Pv2xERZ3uHPJlOZUboyoPHxLNq+mAWi//4ZXt+phB93B3ngA== X-Google-Smtp-Source: AGHT+IHHdlKTq6xI8L9WjbUV0/1kHEuWlSixVaSxWk+2JFMNF3XoYpenOeSa0Fm5jOjVnT8Wa4jW X-Received: by 2002:a17:907:7f8e:b0:a77:e55a:9e87 with SMTP id a640c23a62f3a-a7dc5108927mr1080208666b.48.1722941480236; Tue, 06 Aug 2024 03:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722941480; cv=none; d=google.com; s=arc-20160816; b=WpaO5z3giP+NKLrX+K1FWne2STDFnPb+Di1FhvqbRl+0rCNEtas65SYJV3siOYCTTl B9jH2xXRVY5VMDO785agQ5FFgtsq5OE4JhUAFy9lhBfYSGTeRl+39qPPhYHJ0VsoIxx+ 36tdZxAKsjFmEj8WswMiqJ97cyQyK26QTaHd27I0FQeg4NH9apxK/PX95WIJU/nM4U5v +e9oT0UYtLEfV3kNxolp+Mvhp/O9Wn+Kvd+f9ro9uWG0dMuqhtqJdi7DVJT+nP1vgK6u ouFE5OujcMlkpIo5pQtQEWQQp5aY2sZTLSpY5/nUep6KY+7wuDh9b8tXWYMSlWpV1M2D iQhg== 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:message-id:date:to:from :dkim-signature:delivered-to; bh=TVJ/prUw4u83BdomESlBHxvogh/Kkd/RTEYCPybecVg=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=C7rCWJM+6RGygVKuCFSlGoeydoAwHvPPsRzr77IRe1sphP/g6xRbfXWKe9RK8OgJFS RR3qApknkpDc8b49lR/gxkA/0XQ+y/rhueaKcDenGMm9Sl/mffZdjrZVWlxyfE+TMM+A rCZRVnUYg7d44ANdJI2t/AFn13a2w305VVRnqYYliOZ5N/cqTnz2VxdsspOXCOuea1+j 3HBIyVdDcDCFs0Q2lVxOjavNnxbV884VLMz4Q4Q04jAhQjPCcno9LzqG7spstfDOZJ4k iA+/arF1087SBy2CDZfqj/it5XsF53/7TUtgd+OuFtD3LXrxNvWBb2+JNMkYltrugMI+ jjqA==; 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=IYgcEgj9; 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 a640c23a62f3a-a7dc9c1c4aasi529992466b.263.2024.08.06.03.51.19; Tue, 06 Aug 2024 03:51:20 -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=IYgcEgj9; 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 5917F68D7F6; Tue, 6 Aug 2024 13:51:16 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5F4C868D0D3 for ; Tue, 6 Aug 2024 13:51:09 +0300 (EEST) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-36bd70f6522so338631f8f.1 for ; Tue, 06 Aug 2024 03:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722941468; x=1723546268; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=cQWq0+HR5GNi+zYbnMKbAXqO60rRlImw5NfmPzNyr2w=; b=IYgcEgj9acsY408/EREEMsgjZrG80XjrSyeIrYGC3I7zQLzvuesn5hy3hsdsU6mMvX JyIJSJiusiA/QtTxpaqZwxAK8bJ+HyCy6vYmq7izRi/T6vKrXI6Js4AZCg9R3Qxg+qhI QfgEFXeBDx17FmHoxtDzClyWm66TyOiqV7OJD6CW/SHajMYkC6dQxATeS2U0XDzU/Zzo xEEYKc3G2LfQBI9fFEjeHFLh+dVEBeAvygiE+Wc5UhCFvC1H7tf51PxTUHv6ofykILLb 7KecbU58tqadyLTjdB0W4uYWRMKFVoQj+CS/SeyGk0HzXqostbF0Iq4642JTKPX51TO+ o2Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722941468; x=1723546268; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cQWq0+HR5GNi+zYbnMKbAXqO60rRlImw5NfmPzNyr2w=; b=atmO8NrUvMxfn0EX1IQdGCKO1kHm3yZ/wfDIBLYgY0DohgeDnejsl99RTeqIosewGd xiagmhsDdpPv2mJ8rvXtu4HpAhf4UuAcBr17mDkJ7LT7PbQdgav65GVnH3Iw51SjwZXA O1bt8wTLRN0Bif9jaLLD+3IM37sO7+ywuleu3LQWgg59HLgpbN915Q36xUJR7J2OvVZB 1CTj0FZIiEYgm2wRxs3qDcUJ7rg1DUKPDAljBRYrRJb44ygop9Lc3Q7OEaqB63MWiTSe MYHME/hBmLDs0XDJ3dmIj6Kiy5yJYmahkpwo2UBYxpdpzLv3fltsFrFv9HxYwTDXHhy1 Y+sQ== X-Gm-Message-State: AOJu0YwGOHfZu0Bw1vhi/M0HvVHwUxitENoJQ52LL97ME4VnGHTq3flS PtrkH1CjW1nUuGIglsMRe1ViFPXu368zZ+aYm+/D9NdbkL10UhrT9eLs80mr X-Received: by 2002:a05:6000:154f:b0:367:9854:791d with SMTP id ffacd0b85a97d-36bbc14a67dmr12113603f8f.43.1722941467977; Tue, 06 Aug 2024 03:51:07 -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.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 03:51:07 -0700 (PDT) From: Ramiro Polla To: ffmpeg-devel@ffmpeg.org Date: Tue, 6 Aug 2024 12:51:01 +0200 Message-Id: <20240806105106.59866-1-ramiro.polla@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 0/5] swscale/yuv2rgb: add yuv42{0, 2}p -> gbrp unscaled colorspace converters 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: tFXYlFCIJiw6 Changes from v1: - multi-planar rgb for YUV2RGBFUNC no longer uses an array in the stack, since that gave an overall 1% slowdown because some variables would no longer be stored in registers. Ramiro Polla (5): swscale/yuv2rgb: prepare LOADCHROMA/PUTFUNC macros for multi-planar rgb swscale/yuv2rgb: prepare YUV2RGBFUNC macro for multi-planar rgb swscale/yuv2rgb: add yuv42{0,2}p -> gbrp unscaled colorspace converters swscale/x86/yuv2rgb: add ssse3 yuv42{0,2}p -> gbrp unscaled colorspace converters swscale/aarch64/yuv2rgb: add neon yuv42{0,2}p -> gbrp unscaled colorspace converters libswscale/aarch64/swscale_unscaled.c | 58 +++ libswscale/aarch64/yuv2rgb_neon.S | 73 +++- libswscale/x86/yuv2rgb.c | 39 ++ libswscale/x86/yuv_2_rgb.asm | 24 +- libswscale/yuv2rgb.c | 513 ++++++++++++++------------ tests/checkasm/sw_yuv2rgb.c | 60 ++- 6 files changed, 495 insertions(+), 272 deletions(-)