From patchwork Tue Aug 10 08:53:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soft Works X-Patchwork-Id: 29388 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:8e8b:0:0:0:0:0 with SMTP id q133csp248112iod; Tue, 10 Aug 2021 01:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZPOFYU9XKDveDSeGUAp6SuZQYHxIKwzOEEsS/8GOhvW0+QTBIjxUBaLOGEdl7FZ4ogRGp X-Received: by 2002:a17:906:b0c8:: with SMTP id bk8mr26738180ejb.412.1628585609660; Tue, 10 Aug 2021 01:53:29 -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 l3si22510067ejd.407.2021.08.10.01.53.28; Tue, 10 Aug 2021 01:53:29 -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=@hotmail.com header.s=selector1 header.b="rzRg+Ur/"; 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=NONE dis=NONE) header.from=hotmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 212E6687F8C; Tue, 10 Aug 2021 11:53:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2019.outbound.protection.outlook.com [40.92.23.19]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 134E2687F8C for ; Tue, 10 Aug 2021 11:53:18 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k9eqxQQ5UMwNSSqfmY9W+dyWVROnvDRv4WXsxQ+W4ecI97J1j6MxL6n/H69IDzrxwcxvrWSI1fyId2J8VhZxr7nDX32ioBKiAhbYHk+PY5r/61eZJ44JPxVWZevaRWU6xrQZAY2Hq9SQRD/6U5bZISmax7d8Cy5tFZgx7SOXX5nhQ2s8HyZaAnOAKWYadHxA5VH3hRFof3+BNxZyU8He/FmcCOfoiH8EWWvhsw3fDsO9aqs8+TNOtl+TECjeZHdWTpax7i+L/MdaLcYW+OoGOEh7FW89rhXNl973nRC2Dc0AgbjWXj5w2bYRU2sTUVlqLh51wL9n+tV6zLCTVSVTxg== 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-SenderADCheck; bh=z5CAqxXtjlzEU6kRz0Wg5KZcQaWldouB6BCAZEfA4tY=; b=RuHhHkqSRwolJu9CHt2tb8lnvnxPstuvVCI/iWG+qzuBqG9XYnTU0/vHct3l63MsmslxWbPtVFYPHYg409oX8LLQE55X6SC3wLrkHAnG0zXuF5HV6p3p5weGtm5DMQjBJc0ObGhUTq5V+OE+mP13Ud5/MXthlSBhEL1H7CQNl6LA6rUW3CWlniVwNH948j9UdMBmZ/6Or9KvfMlXc255VrSejn/PK1lxgcz2nnZZQ3vUKpV6YNrhpC3yDD+TE2OjsdI6uQ/jeoSA1w7EOB+/nH03eW/GtVe2XMBOMWWtgu3KlRlrNcrYDA5hZ/McLMTJBRtwiHoQSvsF/zJF9bSR+A== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z5CAqxXtjlzEU6kRz0Wg5KZcQaWldouB6BCAZEfA4tY=; b=rzRg+Ur/Oh9uf85vDOgEwXpeLFgXQ3WvzCHe/hmKY91ngZwRRqZQ45qpnTFGQ6ZF/3ZOjkSY29DykxeHdOMjBzOgC9nmqc7Lm+vJoxQOwpNRRq8qQFdvrLiJHsmk7vdIOZJEGuCp49Y5IyrTTifPEVw3Qr8H7OkC9jJ0SP2vc6mVkDLqJ4AkxiOA/sfDgjQc1n9Q2RQnzAp34zvAGfocpSiXFj8mvT2DRt603yxyoKhm7d0N5BFtM1I08puoE0t0PZoTJhJL616T6nvfCu3J0dASVZ6rh6Cd2bgWfEsAX8tY3TMrq4BIRnyAI62Qa83AV6VkO+scrwnBXxDbx9JTgg== Received: from MN2PR04MB5981.namprd04.prod.outlook.com (2603:10b6:208:da::10) by MN2PR04MB5503.namprd04.prod.outlook.com (2603:10b6:208:e4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Tue, 10 Aug 2021 08:53:15 +0000 Received: from MN2PR04MB5981.namprd04.prod.outlook.com ([fe80::5d83:1c26:c2b1:3a30]) by MN2PR04MB5981.namprd04.prod.outlook.com ([fe80::5d83:1c26:c2b1:3a30%6]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 08:53:15 +0000 From: Soft Works To: "ffmpeg-devel@ffmpeg.org" Thread-Topic: [PATCH v2] libavcodec/qsvence: Use QSV encoder defaults as ffmpeg defaults Thread-Index: AdeNvMifRcM6fQzcRMmtkgpi6u4jug== Date: Tue, 10 Aug 2021 08:53:15 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [6itovlc4aLtcP0lEWUXc+21K0ty5Aenx] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: acc86c2f-8b0f-4b50-8679-08d95bdc4a92 x-ms-traffictypediagnostic: MN2PR04MB5503: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7F38DKgZZXh+u2tViTjPvRMFx3GgFqCyakJ39vLljexLjlOxBmZmT6kO1vf8BnGiGDXA2XrguYIwzURLDsoHidvq3kDH+gooa+9wuz3/9brjII7OW5IYXllgAmHmDkoyUAFevK/q+x/vvwlpR55PChNU/3Xf0ki97CDvWUGJVYB5OfD4hZumZi3CLKAYfm3oteg8J31M8cS8m2fMFkKbUcSDp3nRW2txO1N71gyy0oyTKlV/coMXO2z82PaoLfiQQIK0k0p7ki5BN/RLEuney+A0IJVPva2bUe1PccJVeSw4WllhN7Odt0rxzYJH7H94qQKTDKfJs9OvtL8Jjuy4Ah3ffzFIh/0XGlDowtj+6N+3HvHfNfYuTGsta5jOBOeYty0kzdk0d5bqVECd516T0PtuqJj+YX0E9nMqrkRXUETv9kqmt0uktfYNSigXlqd/ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: m6kd2swoWq9vknWpRZtDEYZlQmShPt1yb26GqEzTS9xwzP25o7GR7rqN4f+VF8iBcFUlWmzSiem290h35AZLbfXyUUu2ybE6pzYUA4fDlr1Rq4JiYx3FI07Av5L7WTTnN5JdaVu21aXw43eLkbEkYA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-529c7.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB5981.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: acc86c2f-8b0f-4b50-8679-08d95bdc4a92 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 08:53:15.0745 (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: MN2PR04MB5503 Subject: [FFmpeg-devel] [PATCH v2] libavcodec/qsvence: Use QSV encoder defaults as ffmpeg defaults 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: N0uRHKh1jPCs Signed-off-by: softworkz --- libavcodec/qsvenc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index fc8a14143e..58984f996f 100644 --- a/libavcodec/qsvenc.h +++ b/libavcodec/qsvenc.h @@ -76,8 +76,8 @@ #define QSV_COMMON_OPTS \ { "async_depth", "Maximum processing parallelism", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 1, INT_MAX, VE }, \ -{ "avbr_accuracy", "Accuracy of the AVBR ratecontrol", OFFSET(qsv.avbr_accuracy), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE }, \ -{ "avbr_convergence", "Convergence of the AVBR ratecontrol", OFFSET(qsv.avbr_convergence), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE }, \ +{ "avbr_accuracy", "Accuracy of the AVBR ratecontrol (unit of tenth of percent)", OFFSET(qsv.avbr_accuracy), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, UINT16_MAX, VE }, \ +{ "avbr_convergence", "Convergence of the AVBR ratecontrol (unit of 100 frames)", OFFSET(qsv.avbr_convergence), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, UINT16_MAX, VE }, \ { "preset", NULL, OFFSET(qsv.preset), AV_OPT_TYPE_INT, { .i64 = MFX_TARGETUSAGE_BALANCED }, MFX_TARGETUSAGE_BEST_QUALITY, MFX_TARGETUSAGE_BEST_SPEED, VE, "preset" }, \ { "veryfast", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_TARGETUSAGE_BEST_SPEED }, INT_MIN, INT_MAX, VE, "preset" }, \ { "faster", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_TARGETUSAGE_6 }, INT_MIN, INT_MAX, VE, "preset" }, \