From patchwork Tue Mar 22 14:11:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Fei W" X-Patchwork-Id: 34899 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:ab0:5fda:0:0:0:0:0 with SMTP id g26csp685592uaj; Tue, 22 Mar 2022 07:18:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIcrejeXnzN6cJgbWFdibO8wkuZHtuFpManGOXFP4nYa1gjQORFguaQSng2Pg5bCp+E5sV X-Received: by 2002:a05:6402:183:b0:410:fde:887a with SMTP id r3-20020a056402018300b004100fde887amr28464229edv.243.1647958681855; Tue, 22 Mar 2022 07:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647958681; cv=none; d=google.com; s=arc-20160816; b=U49BOaXYsU7gcEAf/K4UCXamrJylXUidJu7FJDHPHPleW043Jdo4e7gACONR0i1ebj X1C6Fx0jQMOLRE1Pjg8j1srrOHg03L9CLymNfkkqLm9xpc6ythQ9i5RFnm49RQ4aYIPq kbJwagLwYZWHzMw6GqJP+vBk0gfYFOtTVDTF0mi+TqVUYMw5QUbgNi+j6U93pY1s6MrH QWAYX4/jAPBfHenATv5Rt5zAFpPi725Pqf7dvo9L0wx/vJs7BoEd8TLR4WLDM5CaGnr8 t7Obs+JkzVORsDsHaH19A9O2kqr+YbFshHdxaQfUCfXTFhdITbcKV2Hue3JsiUFRJqZy 6SAg== 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:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=JgVm2y4l78vYtjCKjDbZ90m/T98SMq8EMIGs8W/NDlY=; b=bqhWAImTzPXHSlNVD3Kc1f9Go+mwPiCtUazJT8OAo3MvbajDK8g8Gb7LcZjx4UA6X4 xiY8rxzznHhp9w1+jybFjXl3Dggjk6lGQ/A4mMmx0chBuzv3N3fhirnHNpAzOsIJYKl/ 5MlR7wziickbH03/foPzBbTE3fJQzgforNkRtrjSDobVPVV5Y6gEIrMerwH1M3XkWNrE buy6TK36SSJRceZdAB8S1GJlbEQUQpBg9nZ1nZKBhPcdXK+ymOgetuGJM3NFp+Z3ONeF h++RvhTIiECMyvl3Pdx2l/kh2fV5mrW+PTnXoJB2ibTbcOYK1x+w7mxze9vMcIrybfNg 324w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=jlZ5MyKO; 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 do8-20020a170906c10800b006dfe3429163si8650036ejc.852.2022.03.22.07.18.01; Tue, 22 Mar 2022 07:18:01 -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=@intel.com header.s=Intel header.b=jlZ5MyKO; 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 35C8568B180; Tue, 22 Mar 2022 16:17:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9423C68B16F for ; Tue, 22 Mar 2022 16:17:44 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647958669; x=1679494669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NYL4pugrwYztHwUcgYythgE/kAJc4SUWJd3zXuYtksc=; b=jlZ5MyKO5fZiWxa0GQowuBon1aNtyyhwlsu/vYituMH869vOIPdI1xLQ Ue3HciWVPcIMzcPWT0sYtCmwVaFHDK9/V9AzZutKqkn8hoi/UX5R31waF Wi92ZFKNoZUfdYHM2u+8QXd3efbhsMHRQZOnHaqlqLeTuDrjP3cfvpqUA IAesENjs/pmGpojCTNrrs+vzUI4JjR9/cw4uawRb7AzYj81cScJTNDClT UXE135+jgkdTVWvkq3hKM/S34hWVx7sFZXMtjPdhdG49HG1oeVH0EuNCg I+UKYk2ZxU3y4jPa1AXevzie1ZC+ECw7FXJDYwKhvMO8u1cwRskYfzyxD Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="237769913" X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="237769913" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 07:17:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="716944034" Received: from t.sh.intel.com ([10.239.159.147]) by orsmga005.jf.intel.com with ESMTP; 22 Mar 2022 07:17:41 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Tue, 22 Mar 2022 22:11:19 +0800 Message-Id: <20220322141119.595627-2-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220322141119.595627-1-fei.w.wang@intel.com> References: <20220322141119.595627-1-fei.w.wang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 2/2] doc/vaapi_encode: add documentations for max_frame_size 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: Fei Wang , Linjie Fu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: dlgP9IYUWmcY From: Linjie Fu Add docs for max_frame_size option. Signed-off-by: Linjie Fu Signed-off-by: Fei Wang --- doc/encoders.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 1bd38671ca..93fb535e98 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -3602,6 +3602,12 @@ performance. This option doesn't work if driver doesn't implement vaSyncBuffer function. Please make sure there are enough hw_frames allocated if a large number of async_depth is used. +@item max_frame_size +Set the allowed max size in bytes for each frame. If the frame size exceeds +the limitation, encoder will adjust the QP value by adding delta_qp for each +pass to control the frame size. To simplify the usage, delta_qp is set to +default. + @item rc_mode Set the rate control mode to use. A given driver may only support a subset of modes.