From patchwork Wed Aug 17 09:05:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Kelly X-Patchwork-Id: 37325 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3d0d:b0:8d:a68e:8a0e with SMTP id y13csp2343774pzi; Wed, 17 Aug 2022 02:05:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR77ETdvZgZ7fifokOJxtvnqGp905DJ4kZZSb2on9VqBL0gLbHmE5bAC02yB8hnWpu7a7Ugb X-Received: by 2002:a17:907:1c0a:b0:730:9a59:3891 with SMTP id nc10-20020a1709071c0a00b007309a593891mr16048264ejc.453.1660727123496; Wed, 17 Aug 2022 02:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660727123; cv=none; d=google.com; s=arc-20160816; b=VcYyG1LZxcqMFPUwWFJdeN2jEdua3f9XiWgsNW3SXYBIs6/e7TyZHyblXfPWMKEp3U IGnCTBtfIkjIRIbrf8rg5Hasn4cHcb/JMQ9Y2TIlu2h3o+sIE4SR58T/NbWtSA365/gA WrfX998xBSAvsmHC4ZLiryksrirOb81fpMpx/jrF4LOpgwHVOCaEOab+rOMtw13UM9c4 /iCO4kwYfp9wkAi6YvcQ9b9IYGonZzIZmIgURvRy6FoZIXbmQoZ7XAe3A9EBoWQJSMVm rYSwVHfsfYfxIMOqqcXJr6HGlA5+xQ6J5jbD56T8SNJkFLPAKrGSjKX4oKZEJnhBDs/u bJ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:to:from:references:mime-version :message-id:in-reply-to:date:dkim-signature:delivered-to; bh=TYGRQIkfZZr2eeTKvk60eTHgvHfyL5u0y9jM9Tho53s=; b=fOVFsh6Nyfq2Lkat8NOMGtAG9hDG7tNMlsKBJL4sr/qi7VpCOFlmpVnTqta2ZYG96Y kHGiFo9HzYU8WDpee8nQZdaNhieIMOrMpB2BrzEUmQtC7pXh3MZPHH/qpsZgXtMACtUC a2uGLfECawMtmcI2mrwWjWDn2ujbRnVPaJMue8kPsIUU4/4bqY2Ko7tld31qeszUXMgP 7tiUXm6k/eb1mAHYIFOApVwQz9dOsLRHZXgRzEsQvCMzWQi5vtaw8VhZgbeISMaL4RNl 0m4G+tkfAKNti4NwxBMVgI2XJN4rz9M2Mg5XkYp1ZgHVqY7BPPFsM5p4SQhhI5zM0DzV qXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.s=20210112 header.b=gc9LzIGf; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id lx12-20020a170906af0c00b0072ef491cc0dsi10161936ejb.113.2022.08.17.02.05.23; Wed, 17 Aug 2022 02:05:23 -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=@google.com header.s=20210112 header.b=gc9LzIGf; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8AB1268B205; Wed, 17 Aug 2022 12:05:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f73.google.com (mail-lf1-f73.google.com [209.85.167.73]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9F78C68B462 for ; Wed, 17 Aug 2022 12:05:13 +0300 (EEST) Received: by mail-lf1-f73.google.com with SMTP id 12-20020ac24d4c000000b004928ab09f6aso1498465lfp.19 for ; Wed, 17 Aug 2022 02:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc; bh=JGcEhRt7r7gmy22aDi+nZRULXKbnuXAJWkoIaBFzrKs=; b=gc9LzIGf5osJ5fCucXxQv4PmKuDKsWzvb1ESF5vvmILGxaxFl4DsItP06yvJ5CTSqF 3Ib03UvSM/nWYnmqCrYrbD0fwp85ApO6RQrvnabLrBN1RK2X9ICJXVo0q98p7hSPa3Lv kYCEfcpzhpZzHM8bNZ6zSjZK+yUuOTB3+RQtFtrfGFs6YkhxXACplKelyOi552Z/KHrx 8xZhZ7yj1puFqEALMw/PudOWs+H6gaLPrCT5YCTvctSHWpSdlud/+dhnbfmEwz3SNJtc jIjGJIq02t+vo/E9+I2e7hKSiBvnDxciLdPs/PA4ECgV1rHJDPKEEw4TU0SSRtB0G8NX cs8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc; bh=JGcEhRt7r7gmy22aDi+nZRULXKbnuXAJWkoIaBFzrKs=; b=CeGcT/2anLuBuwibme7UvMX+i02wqVq6aedNqwfNs5KSc/fYKBGGnbk0r2YDuOajRr vftXy/3XWbnrBcYw7ts7tzWvhPvlgaqFjHz3otnj0rNwuclnDHVDKmDwpqyrCvDPzE16 yrCuGs4I8vSrC9KxD4UBGeBI0iMNwHuU/IWJL1ia/iMwtIrg3dT0+hGdx5lF6+A8Pkxt n75zqrpoAN1SDrXVGqOz12A66ygp1bbijqPwt1O4xCepbMovDVDTIync88RjdSndbrFD nkrG8CtUdlTynVKD7YS+CW9yETWfXG/VuTRA2IVjJrujHTHOjQtIy7D3i7+ihaVipDa7 VNUw== X-Gm-Message-State: ACgBeo06Kdbz1+nF0mKpUJoy8pZLF1VA/vmU2rzSwlyEV7zdiNhVZ4Te n2XdVJWHQ65qF5Q8oRS05lPDCvpScDhk800TsSS/paP3y5aAPvbdAPat8O+K/mqECPsmpljyYkh yQqNtmd7Bs3S1BnXBkbJgWkhMz34HvHD/H7RFW6MQltZrG2uonIqH6UzHSu6XPpvvE/1PaZI= X-Received: from alankelly0.zrh.corp.google.com ([2a00:79e0:9e:2:4c1e:2914:53d4:d396]) (user=alankelly job=sendgmr) by 2002:a05:6512:32a1:b0:48a:f94e:a82d with SMTP id q1-20020a05651232a100b0048af94ea82dmr7772752lfe.659.1660727112752; Wed, 17 Aug 2022 02:05:12 -0700 (PDT) Date: Wed, 17 Aug 2022 11:05:07 +0200 In-Reply-To: Message-Id: <20220817090507.1018344-1-alankelly@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog From: Alan Kelly To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] sws: Replace call to yuv2yuvX_mmx by yuv2yuvX_mmxext 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: Alan Kelly Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: BondgZDx26D7 --- Call yuv2yuvX_mmxext on line 208 also. libswscale/x86/swscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index 32d441245d..e0f90d5c58 100644 --- a/libswscale/x86/swscale.c +++ b/libswscale/x86/swscale.c @@ -205,13 +205,13 @@ static void yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, \ int remainder = (dstW % step); \ int pixelsProcessed = dstW - remainder; \ if(((uintptr_t)dest) & 15){ \ - yuv2yuvX_mmx(filter, filterSize, src, dest, dstW, dither, offset); \ + yuv2yuvX_mmxext(filter, filterSize, src, dest, dstW, dither, offset); \ return; \ } \ if(pixelsProcessed > 0) \ ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, pixelsProcessed + offset, dither, offset); \ if(remainder > 0){ \ - ff_yuv2yuvX_mmx(filter, filterSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \ + ff_yuv2yuvX_mmxext(filter, filterSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \ } \ return; \ }