Message ID | GV1P250MB0737089657222A822DF1152C8F589@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | bfdf3470f79571e33d0e02ced0ed9d3b45125a49 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp527565pzh; Sat, 1 Oct 2022 17:08:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6CRvc4WGWmPebJJg/0Xdc7GhlpQVxt2juKs2tnWRpWnvulLfZwhfjyVaB1vKPOrvl/cxgi X-Received: by 2002:a05:6402:380a:b0:451:ae08:7a6c with SMTP id es10-20020a056402380a00b00451ae087a6cmr12679633edb.161.1664669285234; Sat, 01 Oct 2022 17:08:05 -0700 (PDT) Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id s4-20020a17090699c400b007894b9de062si2820380ejn.631.2022.10.01.17.08.04; Sat, 01 Oct 2022 17:08:05 -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="S1/gQjzF"; 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 06D7B68BB36; Sun, 2 Oct 2022 03:07:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2072.outbound.protection.outlook.com [40.92.89.72]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 794EF68BB36 for <ffmpeg-devel@ffmpeg.org>; Sun, 2 Oct 2022 03:07:48 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZvRERBzwz3Ho4kshNKKGfgcD6eQNBc5kV4TBClcUWM7yX8oOhIy4TOyzV4E+R4Oc0GZ9n5xeR+U6e6AavkWoJ/0nHwcNNx3nQRcFcSey0R0ZgkdCdfA48ZiGaeHdQ05PxzluagvkzjHqtY3bQys2k1rRWPyBpVYcWJlpbe/87diOrnvxX+nOdzPELntXUGeUNlb+WEdlffIlmwjX1YQEBbVQTzBf4HcLvOkuVrVyJ/6ycdthe+TsXTnCt1IhgHJHJOKeXyFRGCdCUc2r7pKlPVML8UDyaJqntVxKgOsgj7Imq13Pc7m6SgPdk7keiBApa4X0NhhguSDgPEiZvuQpQ== 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=PVT+HKEHk2Qzx5I4N1eiUzUzWXuGXFLh9GzQK2jAkAU=; b=gRS/GIrxsElVsPx0rWqBkLXyBgUrJDJtaJ0L8Btz/DGDQ+yCUvLt6QTRx4Oj+6GlwID5+s+svfjZb0mEGWrOEkpVRMBLTX1BTjzLfHUUqw9ot4aYc6dPoF2u/ykUbkUeZmGV2pALi4P7Rcxi2voJ1ec6/MvfX2O1CmpxRfqMN9bsDttp/9oLI7F0Dcb/STJO8PssY/Nu5W5u2RKscNSqydgV1s4567dvrZ1dsE4B16bcLIlcc33ranFZJbCcLBzF08py9n08iQ5CereRCUMAC9CWtDrVVvn6G5khYSYu3p/jATU+SiG6fpc+fBBCeASxiRVC7WxlpbJxIvkwaYVTHQ== 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=PVT+HKEHk2Qzx5I4N1eiUzUzWXuGXFLh9GzQK2jAkAU=; b=S1/gQjzFscJVYDMmCoEHIc9vq2UOwUKii87aDiV1vk9PPSp2bfKn7t6DfMs5a5nI+kuMYxxEwHtEAhlv8AF1pfkPZYGMXlqaWqIM2UucGXkbLe1Bd1msEwRgoiAqSTrOZHYah509opXvjxIXYxMVBhjpoSLh2ziTY8ty6r4xe2dV/ChKKfDJF+D4Q+90AnQf7JhItIoqsMOfutiGJDDDxKXi6FtmhhMLvQu6MTY0/vB1WBusQI+4ufkFd+Ni4ju5lI08MV6Ta7vQPVQolVFpo/53+5+vGqgptqpwV5tZ+gXUsCEEIV+WAHurWs0Ac14jv6Avnj7jTQ3ImlhNR8VMhg== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by GV2P250MB0997.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:d7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.23; Sun, 2 Oct 2022 00:07:46 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8%9]) with mapi id 15.20.5676.023; Sun, 2 Oct 2022 00:07:46 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sun, 2 Oct 2022 02:06:13 +0200 Message-ID: <GV1P250MB0737089657222A822DF1152C8F589@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.34.1 In-Reply-To: <GV1P250MB073731CA0D62A48F301E43DA8F589@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> References: <GV1P250MB073731CA0D62A48F301E43DA8F589@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-TMN: [dqoYQO5i4zoBl3yO5ocbSajdEtFNNXAb8BBAKBgDgPQ=] X-ClientProxiedBy: ZR2P278CA0010.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:50::14) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20221002000617.469194-9-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|GV2P250MB0997:EE_ X-MS-Office365-Filtering-Correlation-Id: 339a0a63-ca00-471b-908b-08daa40a22c0 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmqRS+LhpAttTUY7UGhdHTSoiyuqOlDt6RssoduzP17zCWsiWXCbV9wWNralHVCjF+510PdGus82kQeD8O4//le9PzktrWMxv6fnybBWbXYAzzEWmdlA0VYvfYWcKAnJjG9TLd6KQ7ht02Depv3Q1aiFBSJ/mZ7PElT30jvu0xiVRhgA9R1GxRAz5CMYJnu0fjx/Bo7OmmH5HxhoUU4AJrKtsJIPlALvpQJMlgrdPYoWWxjYNVF4H95sMDjCl8t9p6eq5YMxTgV9ki91fclXeXhbOChuzfgVjhxvypMkOAMXzk0s39N3oNjTTeIxfuMUy1gso8hMiN8mpL7DklLC3PdUqYr66DVP+aj3MJFswa8j49qm/KZqO+wWGhI+tlQeHlMadXnTXoYOK76UFRtFCxiSURj+FU5qtxjIcz2nubVZ2iXadNuvdS+eU+5Bn0mpLU6okTlD8fc/HBrLba5ILWzayIjE/4d0nWpngol2QzDR6AZPY2Cr9LUueFBeAjjyozrfWmkAagh8saJIkPbcXSWnev384MYuEHZTEu0ytCIWsYuXLY6t/df7fGMVMrRIKJIz1/bxUs7zB0/2GAyzJwPeBIwRufvFzm/fYitXVxSOVrK9b3e4cMKjRyduyTpG2dPJGfD0m3V2LFX3tStuCgzEc/Sz72CPRnXNupWzwvUibooez+oTeko2pFrM0D4MD2f2YfzCm4s9y4heRMrvpSQItDUri7Ehw40IOGOBKRiFOI9KCjYqvKojY9zOsqpC2vA= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WR4CqBg67z3xMUNkDSB9/lM3YvSkS2vOLLm7dbINUy9wfNvV6ddFxElFuTVBKbaV8qHmLM4Jj+fB8LOKmrSuoZBjH6dhp9cndWCk2sp+sSrD8dSnEyoUJBR6is2Jw80xdavvlvMeJ4EiRPGujyF3it7W058BNIs4agMYh5TDpZpe100FAAwweYpVOkbUdcprOBYzrLYCFDkHQc6jVyANhv/Y+eADIHTGcKlg9pHjDoUJM5E2M0ZPERg3SKKzIYPcn4f1AlXHIwCNwMVEe+fUaXQmRK8smZmw9h30KlWhFSMlI6m1U0vY1Jyokq/k8mFPw5itW+NrD01EOHvdwwiLoFPv9m4fhHaZHlPFDQ6ZCTk5glm0rYxTkx2iGCJ7yPwT2KklL0AASknmx5hqHD0SyqD87CgZJvbGXdM+Udq0ZxAEsDoynM/OVRWC2yxFccRW1750De4KjoY3gHV27HX9ouj8sSHHbsvS0fBdgvoqn7ovMxXbHiAzolQWBWleEgffzxWxl12rFzsxThGBSkGNQR4+2kL7TVrFfu4umzn8d0uxltmbPIdVpSLshdRA5pW/6S+pG0kYg2+zDaqQEGjYIcaP33ISQaaviijCHCrvFS1mq9bnKIW9r3YkoPMMWr62+fprCFeK1Q4P8zlzRWRvx+6ZI42zvwzlUgpP5OEAwVbrgmPL4qaR0E+a4jDtJ/cg X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KLwD18KCH28jJ6G6Q1K43mltOVFSnakGAzfc1NnhT2ACU9P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FvWVBCJrgsxuKq+KxEthMPqOrUpDL2+Vw2h8/ra7uN0uJBHZrZoRsIUgSXxHxTVIfi8DaqEzdQVum8nuxt/ixSc87bUtkvPoi1OxRar1aEntzUoyGC1VNmj5uiCH5LdtpifK4zqjPqL8BuxaBX0JXH6RBDbtQ8HuDr5/pZS5TshomFUQZjpsNuaXELcLRv85zVMn94kSmQSrFxadA7Ed9leM= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 339a0a63-ca00-471b-908b-08daa40a22c0 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2022 00:07:46.8363 (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: GV2P250MB0997 Subject: [FFmpeg-devel] [PATCH 10/14] avcodec/huffyuvenc: Avoid unnecessary function call X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: J8rRH7CeIGJz |
Series |
[FFmpeg-devel,01/14] avcodec/ylc: Remove inclusion of huffyuvdsp.h
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index f903b1924a..9da344a666 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -230,9 +230,8 @@ static av_cold int encode_init(AVCodecContext *avctx) s->yuv = !(desc->flags & AV_PIX_FMT_FLAG_RGB) && desc->nb_components >= 2; s->chroma = desc->nb_components > 2; s->alpha = !!(desc->flags & AV_PIX_FMT_FLAG_ALPHA); - av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt, - &s->chroma_h_shift, - &s->chroma_v_shift); + s->chroma_h_shift = desc->log2_chroma_w; + s->chroma_v_shift = desc->log2_chroma_h; switch (avctx->pix_fmt) { case AV_PIX_FMT_YUV420P:
av_pix_fmt_get_chroma_sub_sample() is superfluous if one already has an AVPixFmtDescriptor. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/huffyuvenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)