From patchwork Mon May 6 21:52:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 48600 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:6816:b0:1af:836d:81b3 with SMTP id wr22csp14305pzb; Mon, 6 May 2024 14:52:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXR9HsxJph/5TVMgE7XjFs6+Mtg/JfzGBW8yaCIgYvWAFxPTY/HONwtnA7+C9d0hXlyHhNY+cubrEKxjmRDzivdQ8Wl77KsV9ExVA== X-Google-Smtp-Source: AGHT+IF/bJKbAffAvUv6MI4F/vUxVC2tMpcU2zvNVIrQz1N7UgOEVKqFOKjd5mb7D/ZyvHf8wIsU X-Received: by 2002:a05:6512:559:b0:51f:6d6d:57b with SMTP id h25-20020a056512055900b0051f6d6d057bmr7306799lfl.6.1715032368727; Mon, 06 May 2024 14:52:48 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u4-20020a17090657c400b00a5218e6bd58si5052761ejr.41.2024.05.06.14.52.47; Mon, 06 May 2024 14:52:48 -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=@outlook.com header.s=selector1 header.b="e/COGM8U"; arc=fail (body hash mismatch); 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=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 16C6A68D6CB; Tue, 7 May 2024 00:52:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2061.outbound.protection.outlook.com [40.92.58.61]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7AC8168D485 for ; Tue, 7 May 2024 00:52:37 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N6zfWpNHAJVpqaCTh66ysm1AWSIVpaeRmUq7wzOzU5ObxZYIWWWu89nZznTcuiKnGPCTNd9dJKpYlfk2ptMQLXeFxAWWX+R49y20c+Qv+t701ZjAjRQIh28l0Av5bZQSYipFPWC9Evsn5i3rjEDqsFbRZuPz1NB0Vp7ORVVhkFNLxRuDlR6T4dgLCAff5Tq086NDMzAHSSSlJFVRy7PU9KnaSoSlG82LeZYz/DzRqAU2AmMpQIG+gPyKBnJyTm02s/E/MvHzqUrYHSwaCPtQLTqMMQqGuq9eiuTfDbXFS41LYkbioPrm+095e2lQWctAPaUnhWW4X3rFyfIJys/2gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4VFiOwwYbQLmT+OiFVszf+qlA/Rs5usmf2m9z/bKyvM=; b=glMcRgDsGyRWF8r7H/ENtYf8ZxBzTRcayUHochPpZc6BHygjnrFPLUIvCVGcCjygLdwX66VImU1bBLCE24H9r4m8P9J9UoaqLZQzDt4nwHLEt0MCCq0RtnkcgL6unAOOu0u3VCGm07suQpylIdZN+tquqBxv/g6iSJ7BkRSB212RHR64lXBNjbAbFA0bhhpcvAahb8ffRuRCfxMaC2sigzfrF5H0bGueDqxpUhOMrLe7agQB3ApugqwfYRBYU5o3/C8Dzo2S23t87EnQOkT3FavT7k8Jk/xbF46w5S3dOcDP5y1gDkxE0/lJ+Gs2qe/mzCmUIqBEjQA+lJLEiI4peg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4VFiOwwYbQLmT+OiFVszf+qlA/Rs5usmf2m9z/bKyvM=; b=e/COGM8UHzMcHMRgS+QK/9XKjHaLJ489GGIETiMSsE9abp07zn48EXDc44ao8kDiyClVyoXNu350UzDDSfUkfFoibqP++lXcrRoExMbzlE8o5oivd+65FmOq/nTUa/r7/cUay8QXDLmbxTm2Uged+qYNjUrMR9fGIN32KWKuwArPyX+bMrWZS8U6vY7MRDOZLF+LO+c9PpgWCMDZGrQ/xLPryoT+4Cmsb9TOHIe+AsBPygq3Gq46Suv6XIcV/WrCmmRYO8e5L7uwDPUOgJC3CeJ+mtGj2xT2dRpgDwxYrmY7sFqstEQU7eMV0Bdk/6UoHyO9FvfmHGh4zo62pfjjFg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by PRAP250MB0592.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:29f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 21:52:35 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::d6a1:e3af:a5f1:b614%7]) with mapi id 15.20.7544.041; Mon, 6 May 2024 21:52:35 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 6 May 2024 23:52:24 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: X-TMN: [TwlGMUVl9EGqqgcPCeeuUoQ4SheEEKGWYdZjf+VRJ9g=] X-ClientProxiedBy: ZR0P278CA0042.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::11) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240506215227.1260832-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|PRAP250MB0592:EE_ X-MS-Office365-Filtering-Correlation-Id: c687f89d-681d-40ad-dd2f-08dc6e16d6ec X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|3412199016|440099019|1710799017; X-Microsoft-Antispam-Message-Info: L+s0gTl2bDPtawep1DTV+CLdzD9SIQJjnNg0Jo9tseJZEKLE0Gy9kSUDv1qUddJkuzMATyX3nikd8rmVJWNkS5XYp8yzN9VkoOdA9BGCkye8gTsnxZlyZWkzssLBRxY06UPU2lXNQO38yj3lZKEh+QBqAzOCzmjnqBsgW2PxsYt7S/fsLQPXBr1AlIOjP0FhHvqNypUa5iOruazX3m/6oCoiBRc+6w5HuA3ke1zmOe2L2ne9j2vk9uaXA16w1tXQwKumQ55CUVZ2KDlkN0kLaZe1hU480hqbTBAcnRVguiI5EadHsV1qHo2zCiqNu3fh3x9DH0Gqm+zs58ewFXBjwgfaCr91+ejUD+cXiEHg1jPEUSHxl3g+GgXic0iqrsUzwSscnZTD2z/91jx061xuBoZKNP0kZltAHifwMNsXlhRq92NrBRLETp0exOUYMS1JjuqaM5bDeQ5xmMZ548/8g+khBs1xnbnqygnT15Fsg7lJjTNK/5LpbhhNNZr586fN6MmLnZcAzi2KZ5kCjHKk6RsALb1jYG93/QSITEw0OLy/29b1PB5yLJiN5XPt2KMvCb1ILsvvJtSwJp3Nw1GdZsmcLZSB/TsU4Ck5mu8MCEej4i/gmgZ/V/EQQc6J69jH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uVQyVs6rs5S61Hs7vRhD3fnBBnhC+XqHRGsHr+0MCezvwMBn5b+VjqqDyH5XUlBw01kzF86/Lv9NWyC+X2MWcu5BC7V6W4sm3fvs+1FSuEqdsVHD3mD7BBf/zesIDiLqSM7z8aRfXeraAE8KTNOVL6oRwT9nkmqn3wStyZ7kD+zWp/SZOYKvaOE/CRR7YHkgnT+VsAmbFCvY/MOg7O2y6i/M0T/emjHqnXp4gOSQhTFhjQwx0dclnA+Lu7gTdYNaSj9MJid/dcXzL/Chbc2xBreervmGoEB7BRfEvSzA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c687f89d-681d-40ad-dd2f-08dc6e16d6ec X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 21:52:35.6451 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PRAP250MB0592 Subject: [FFmpeg-devel] [PATCH 25/28] avcodec/x86/mpegvideoencdsp_init: Remove bits_per_raw_sample check 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: yOceN9PblGyM This check has been added in 19a0729b4cfacfd90b8ee84ab0c093ff7e397e65; this commit added high bit-depth versions of draw_edges and added the check to indicate that the mmx version only supports eight bits. Yet there is no high bit depth draw_edges function any more since d4d186d185df98492d8935a87c5b5cf369db9748; since then, the mmx version and the C version always behave the same, yet said check has not been removed. This commit does so. Signed-off-by: Andreas Rheinhardt --- libavcodec/x86/mpegvideoencdsp_init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/x86/mpegvideoencdsp_init.c b/libavcodec/x86/mpegvideoencdsp_init.c index ec174b15aa..9fa7ee4824 100644 --- a/libavcodec/x86/mpegvideoencdsp_init.c +++ b/libavcodec/x86/mpegvideoencdsp_init.c @@ -233,9 +233,7 @@ av_cold void ff_mpegvideoencdsp_init_x86(MpegvideoEncDSPContext *c, } c->add_8x8basis = add_8x8basis_mmx; - if (avctx->bits_per_raw_sample <= 8) { - c->draw_edges = draw_edges_mmx; - } + c->draw_edges = draw_edges_mmx; } if (INLINE_AMD3DNOW(cpu_flags)) {