Message ID | AM7PR03MB6660C1D1AF5C9E57C2700B3A8F269@AM7PR03MB6660.eurprd03.prod.outlook.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2c4e:0:0:0:0 with SMTP id x14csp601777iov; Tue, 1 Feb 2022 05:09:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxocInJjBw9vtuYJj1T7ase8omHrOPwr418SgYt687WWfh8E5/YnxFOL4hDXPc5mC1Xe7e9 X-Received: by 2002:a17:907:1b15:: with SMTP id mp21mr20527007ejc.533.1643720942027; Tue, 01 Feb 2022 05:09:02 -0800 (PST) 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 y11si9309944edv.47.2022.02.01.05.08.55; Tue, 01 Feb 2022 05:09:02 -0800 (PST) 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=IInMN13f; 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 59C8568B28B; Tue, 1 Feb 2022 15:07:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2063.outbound.protection.outlook.com [40.92.89.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2674368B2BB for <ffmpeg-devel@ffmpeg.org>; Tue, 1 Feb 2022 15:07:37 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fUgDDlOQ5HTm8ufzsJIrYNyBLYboZ14r89WEh8sWVaiz4pbb2ln9tNrjzQz6h2jId4rKwEq+3ONcuTeFuu4Vpms+OSdh0ctvdxLNIleyaSTpv/VzXJNxG3oMFoq6ktJRsPDJ92+uBY6MTx4e6SDZBst8i5RoKCYdkquNSvzF/iQyOoTGSCC9+SqpyMoy+fi8VCcsRqp2ptHlu9A89vbacFXzRKWuZxLnYWq7w8efbBuebZNC1jgBR1T6SIzIJ1iF5xLK3Hv6G7/iQMlpPZWigKWjKMHoEyp6aoD+ULotAadoN8XEGGyPSfOuYIj/upw57jK6tL4DnKKrYDOcvdR1tA== 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=M8oDHh6fGenfMRomU2811OFzSJT8e0150Ox1Z+djTeU=; b=AGWl7aDp5i2z4lEDGu+CjFqoln/Z8iRKIIkeLrLLj8ZrXEXyyR345+naRYYpqJxi0YnlIV1WE5pcHIEF+miHTSVYEW25lpn8TXq9h7m1pvXzaScvT4WZAhhIdYrAUAxYOa75n2Ff6+ebZ1s+u2nCSu6IUrC6p0fsSIg5Y+DQV8twPt6ADlO0GxQofR/vv+QbZZob/5OrHQ7ghbl6kS2/FCLVjWHO1GBqvoJgeNWVO/pUYK96Fzbv+F1xJK4tHHpycxM9YFtPezDV918UT4R247Lyug/jXKhixssBgA32byGJL8yjmGdp5MKxIZLmAuSbAF6PbMFZgm+wpDEDTZpbWg== 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=M8oDHh6fGenfMRomU2811OFzSJT8e0150Ox1Z+djTeU=; b=IInMN13f835eHKW+ovtgT7fPE/iA3wH44fz9LLwYLDDA+MdOoHSBrmOkRfJ87FzplZXOBXLPidHpwysJgiITVfyTP/M/oL+Paww8szR1lPxI7L+Ddi3F3XK8NPXTjmY1UrnylGsjKMr+TGdyoSR+nSeQbqZj8Z5G7IxGGOAvV6fD41KJ0z4PTsgRUKw7Of2MugmjOODVyKo9V7QWPQqXSYpyrPyLln/63OUwBXL+2iY7K9kz9Q2+yx1KvO4qMcaRFinvWX4SmJ4qEKlFyM02Vhexfl5XoIEK7XZRsdI4x1q80esg5NEKC97LJr/jDDoyQA3dveNTn7cCMcS2xEwVGA== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by DB6PR03MB3046.eurprd03.prod.outlook.com (2603:10a6:6:34::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.21; Tue, 1 Feb 2022 13:07:28 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::ac56:2ff4:d304:ab22]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::ac56:2ff4:d304:ab22%6]) with mapi id 15.20.4951.011; Tue, 1 Feb 2022 13:07:28 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Tue, 1 Feb 2022 14:06:05 +0100 Message-ID: <AM7PR03MB6660C1D1AF5C9E57C2700B3A8F269@AM7PR03MB6660.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <AM7PR03MB666068F62BC40F2C6EAC1C658F269@AM7PR03MB6660.eurprd03.prod.outlook.com> References: <AM7PR03MB666068F62BC40F2C6EAC1C658F269@AM7PR03MB6660.eurprd03.prod.outlook.com> X-TMN: [/WmhsMhwaqzFr39QeeX2/Z4jD1t9Ohex] X-ClientProxiedBy: AM6P195CA0092.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::33) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20220201130706.1420875-7-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2d593c6c-419f-466e-0bad-08d9e583cc93 X-MS-TrafficTypeDiagnostic: DB6PR03MB3046:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: El0sbEz8OlM6qAbcLMN+nzBRJ1ydQqV7POPl2su90RdMD/Jrz0m1d69Sw0NwYJ7Rk1KxQIBTVSP1oPvt16qvsa3zHZajh0CfQW09YUoi9VcIiPQP5hdGFs7Dv39jjPZEsr7Z4mH4gezL/nrnXE9BGiJRW7RGuHNkQ3XM88GZMpmp4zQ5fO7wDrLGaD6auCbLafbUpWTFnlIb1AMA4oW1iIdPm7XZnfNwgPtRYn5WOf+r8GVwlyTVEfTYTMJFfs7Cd/JDwdKG8ywKSYPgn7j6Ag4vOxMzlb74xSOZIiulLt48dnkAOoW9mTa1hbYGpRYbX8MRf1tRbo9NQqMVtGRB977ezvU+6LBcfLkgjN3hdYKE1eL0ESA7FKGf5Rqhx8YFi+DSpHmoWVRYcR53NDP0wNY1vwvP5JNHM791vEJaTI1V5oxF7bFkzjNjC05Sb9Sr8GhSSQdSq57hS+RMkCjC93h6rqaF32SOlUsmNFQWOfAcuMoKr1N6QEHCKTcKe4v1oYk/ir4T2euGb6vKKRPZHNe7N0KxtQBbx3L7SzEhERY1OzL6D1kDyB5GoCodxAqF X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SIoO2lFyf99knaAruOv9DzQGeSbUj//bOyWs2Izurzb3klEG9OpNPOTJlTMdrujDW0YV5L39glOLe7CQPRvEwjFvR5+e2/iJY11ekYv9Oq/4XmBihhNidNNuDI020vDO/9wP36hc50GDN3SPkZu2X0omaMFmp3eStR0cPBj65W3eJRGX2mH1GUKHmlBh2RQLh2tNuqP2TYIAt2LFiw5o25LF8Za4MGHcVd0iKxeJmIS7GbX6rP1KY0tpru3YaOZrZ4ikm41C4s50oabwaIhLLL2t1mikrDWxM97HaJZ74AkuHcrNKytnMUBWwSlb38lxNsPjVk3frwoNBecF8pRdCuu74opu7KBVH640W57jgm9Uzz1Ubs+kNDgFw9DGLVcxzWdYfSphfCb6D0gA8jlahRJWApRTZ4cf7FnF3v/E9YILPbtzlOhgCvI7OxC1ZT5NpSm92h4JCSfsETd2+HcrFRNstfHmR2sDTgVW8CqhLZmspiRej2PIL2FUoCa8BTjXyq6PsRD23B5pvWwC6ppkPzCpZuEJEUYhKl4CKu5vAjN6jsVEjYxzz3tQj5+/IadVQD911GZG6s7eZr6/SFqM31uMhB/apK+vNnHAkL6Yk/CToqCY9BB8ILSHVFejOnU4WqQMsRxdeTvy+W7j1sywFQ3OKALhxkcWz2lPX3X8geAiLxlOSW0fLGGJxctO0G6A3xhU1AvOKnE6OFoDeAM+gqtcVQFFJStocZKX4rxG8pMnpWvcs9DkSOq9R+UB3BdCvpyu04q/7DVgApxh3DHgyFkqywvewOU6Ga2rrrCFYpVe3T4ukMZHVpSerTwuhxbjSOzcrN4gD8dz8Zaw/gWvGG1HaxO6DAp8z07CvHvRYhhJzb6l03oGlphl/pw+gCGGi/pCNHgDGzenWeJnonChqvI6WSD7RJSXvCxVhywdCAcc7lsL8UMCwzcEJfKueNkT/1khNBtBxsw8QonU7Qdt0A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d593c6c-419f-466e-0bad-08d9e583cc93 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2022 13:07:28.6394 (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: DB6PR03MB3046 Subject: [FFmpeg-devel] [PATCH v2 08/69] avcodec/h261enc: Pass PutBitContext directly in h261_encode_motion() 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: Tl8QqFMKKZLV |
Series |
[FFmpeg-devel,v2,01/69] avcodec/avcodec: Avoid MpegEncContext in AVHWAccel.decode_mb
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index f1cd51ec2f..66b7cc18fd 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -141,13 +141,12 @@ void ff_h261_reorder_mb_index(MpegEncContext *s) } } -static void h261_encode_motion(H261EncContext *h, int val) +static void h261_encode_motion(PutBitContext *pb, int val) { - MpegEncContext *const s = &h->s; int sign, code; if (val == 0) { code = 0; - put_bits(&s->pb, ff_h261_mv_tab[code][1], ff_h261_mv_tab[code][0]); + put_bits(pb, ff_h261_mv_tab[code][1], ff_h261_mv_tab[code][0]); } else { if (val > 15) val -= 32; @@ -155,8 +154,8 @@ static void h261_encode_motion(H261EncContext *h, int val) val += 32; sign = val < 0; code = sign ? -val : val; - put_bits(&s->pb, ff_h261_mv_tab[code][1], ff_h261_mv_tab[code][0]); - put_bits(&s->pb, 1, sign); + put_bits(pb, ff_h261_mv_tab[code][1], ff_h261_mv_tab[code][0]); + put_bits(pb, 1, sign); } } @@ -314,8 +313,8 @@ void ff_h261_encode_mb(MpegEncContext *s, int16_t block[6][64], mv_diff_y = (motion_y >> 1) - s->last_mv[0][0][1]; s->last_mv[0][0][0] = (motion_x >> 1); s->last_mv[0][0][1] = (motion_y >> 1); - h261_encode_motion(h, mv_diff_x); - h261_encode_motion(h, mv_diff_y); + h261_encode_motion(&s->pb, mv_diff_x); + h261_encode_motion(&s->pb, mv_diff_y); } if (HAS_CBP(com->mtype)) {
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/h261enc.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)