From patchwork Tue Jan 3 07:15:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 13087266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 780E2C3DA7D for ; Tue, 3 Jan 2023 07:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/wCe9dDZwqxjbMvS/00gmD17cf/TBcPWRDaLEQ68svY=; b=gAw9NvFqA4MjeO b5usPQqC4/ySbl6s/z3W2DQX3+uc6uwfsUL97P3TVe0ZeKSWU/GlptimHeYAe6lXtVLAfUKqbkgP7 NOczjzF+ccacDmf9kVBvVCiPwU4NZkcjjUKRkdZw36zvb1JV4IegrA4ICY8DFeCpFfNMFzgM8piB0 fLqpx/P3LJ+9HFK1+4myiC7bXo1ZkDScsrWGEMkFonWzvMqAOBbOHt15kuA2om/vnu/EoYApjnO6q Ybt3jBgAMKmv0iCCNxqvZS2SxWt3mRV9MLimHUIjGs/kWTL9eGt6a0HMqTw4YDPVPbBzvMv6+RTTP XRJTv8eIoKQRG1iAnb8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbYz-00HOyZ-JO; Tue, 03 Jan 2023 07:18:21 +0000 Received: from mail-he1eur01on2070.outbound.protection.outlook.com ([40.107.13.70] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbXB-00HOf4-Bz for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2023 07:16:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TmKK6XUvZU6fAF0TKhWzLtlxBvpx7b0wUeoBpHJAlwQykDX07ibWQcTeVZoh9HWOGIHHfh0OM3Rsd4Cqz+a+EDHZfxRufm7tqP0/JxJ2awJC+EWGzUFdT2kY0d6nger3AQMgFW5STbpRMLMo67CLJ6dtT50dX/aUAZNUp/7HCYbHUOlmt5x9oOU8cd8uIeFXDcHH1OtmDaMVuvTYcVHGAl6BkOrOGcjjkVKLU09EO8YeQiUwk2NN874yY8X1hek7z3yhu4RVpJ8xmRAvU2HuxjBuI1jma/R2RfFzhLKhgaAL4i1mScIO0WIJlBjnqDS7etP4FTjxRxXr/5Ncu/OLXg== 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=y4ViUXDu71TtUvRlUjlCbWIl4cwHkkzal6U1X/tvOuY=; b=fd5ZwmOZp4W21CKjGL3qTw6hkueFZT+Lx9+/Q+o/lXBomMz735/CdN63HPQ0+JQ1c7yYW8jfcRMpx+m3SMBNvTJ4vbSqdMMgZ7ATlSahSGzQYOlTyUcpZZsjggpQlKfHoXlC4KU8mx0otRTx/fJ4Z2GVfbtVUGTSDVHCJbSP13gQent4bsCBcgDvfQMFwchyo+P8zS7tFi9x6C2Gf0g+dXOOaPi0yXNqaa5T6GlqhYCIELBfPpdrXMApwUM7i9oKWwN6D68zNdsYNMCdj/m/K1KXmnHszAWC9PCnhtMD3D6dymsM6PsMW/Zry/Ut1u0TPVEoX1AoOgXhtxIeG8/BzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y4ViUXDu71TtUvRlUjlCbWIl4cwHkkzal6U1X/tvOuY=; b=obF3QVPIM32PmXAUsDl3NnM7jV2Ll4yeUPcPTpUykDQTXkfp25htdRN3SHrcyp5B4XcmLa2u+awRFX4uSDDEHYtnd/Q4RBtydz3o3wY1kJbGYc+ZeQezb3qxo+LxcbeIbOr/nx07sKFepkbProW1J+j2btrcEyhd9+SQMYup0Y0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:21 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:21 +0000 From: Ming Qian To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] media: venus: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:49 +0800 Message-Id: <20230103071551.17775-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: b39867a0-c389-4439-29fd-08daed5a6a2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dOLw4xZwLmQIeYkc/uQfkfqVah7H6SCWJ3B5ss21Am5u05Pvi6kxYuUfbkC9Azd5whZQqja3DzqCqwl3A9A+wHWGzAGuuaViz4nv2YmZEkjjFPt0sKFzycJhRGsirbnsbe6Y+ycQ8FagnYcoFksd7sVypEj9KVo5XGxRfge+XaJMHaTJIWtHTDGydt1dM3WQUkgKnpsRDqFcw5WrP5uZ7s+5hAOTKdLvi7juXn9sqIWcLz2NTx8JrNKk545K86ehm9i+G4RJ5jRhYtkSVBcqswRwLuVL3pXzkHPvGsnoliQI1SAASBncWBAEmiJIfSfqX48j1UK3YKM1B5zEeqpf6ZlDvRN3PLhTPEHOtt0P3uBKmtaGDTjdTAJkXAsToKLhh2EKzR/5/aQBFK1JnoZ+yIBY9t5xxhFJBpGUidu2Q/GiC0JXMF2bUXHjKqZJPnA35vWyFw6WC3jwBT4lX6FStp2beCqbIyijeFUfpFDSaFS13expgC952CPOT388hHEFOdHK2nE6kMHFlR70blUCfLzSKUAYn075gNkDSDxlAG+HupamKto6XmkBr2Ibqb5mJh2ebhseQgMPUoqru1Nqk0g6ZHpiuTZVCzDRDeP5XMH6Me+HklDzBYL6/lNWQhuBxvLZUx9HzJlStkmQAa7rq16duQt2XB5HlEEBREnlPxPzChZPM7rAHamN9cxX70sngotVFk1pzM/B89uoCFr6OHdEWSWo5aCjXEMFujK/7z4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WtfARzkzQpu/i/rsKUGEEKgTvgLq/kJ6RHHIx8minHrGbZMbWxtvpi/SR2gpwsiv6Ou8a4spvYlH87OeU9oQivB9hkhBwTantM+beH1xb0M0zo8svIN6RMfhOrUBCUCmO5QooeLq0uANPLNP4uym6D9I7+O7xU0rOxpX90973KazFm9xBU6CaHPkK0jQPikJ/JDLdk0R3STYKJ9/DqODn2mkbJAfLJxS/zLQhAkpZepr1e0t8XxmLf3stO/FTcjqvdnP7Mn3Bc6gxjqC6zt5DxVqAoRDEt1Cio5G6B5YkNi1TrdKUgAzVyIWy/DpKPYbLn20KFT+y59BgHDnw2BiyHCOpJtab1Ybb7uEmUNt6GbylEkOH+uh9kbGZGMgf3egrweoRIPPha9GAoLM5+eBiOlvhewUXWE9fbHQMMPdsGxf8ya8Z1HQYAAPuAuvhT7u4VZH7tgA8Kczwu9giXw75yp9jJIpoFWsB50aP7q9AJ8r+yLfMDaCTql0pt0r3MLG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u7vwWo5UUls X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b39867a0-c389-4439-29fd-08daed5a6a2d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:21.3655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fy92XVw8WjS9fbz4CpZmDcJ8RzRJcFjyJIcuSLwFQJmxPHZ3e69XsizOq+FgxfvpkOOUmpuJuIsEcqS/RLGgzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230102_231629_692281_6A11F272 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/qcom/venus/venc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c index cdb12546c4fa..33c8e4329f6e 100644 --- a/drivers/media/platform/qcom/venus/venc.c +++ b/drivers/media/platform/qcom/venus/venc.c @@ -1260,6 +1260,9 @@ static void venc_buf_done(struct venus_inst *inst, unsigned int buf_type, vb->planes[0].data_offset = data_offset; vb->timestamp = timestamp_us * NSEC_PER_USEC; vbuf->sequence = inst->sequence_cap++; + if (inst->controls.enc.header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE && + !vbuf->sequence) + vbuf->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; } else { vbuf->sequence = inst->sequence_out++; } From patchwork Tue Jan 3 07:15:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 13087267 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A9BAC63705 for ; Tue, 3 Jan 2023 07:21:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=isNY+SUjN83E2/IoitdMNVAhxWjVevXV7nj9tNjUOGo=; b=GeLY3NLCWqlZBB YbjJP5L8Nuz1J7c+lTjlMtwhyXQk1BPmNUl8UBBER6cHfY8vSJLhS5Luzj8X3RMJRal8cVlo1JoDV f2eVUYmkcpO30zEexuBlylnSjsJ7eVgzdvgSJN5/jsXxnhseWMEXmdvsiVSMKNLkm+cH3czfDBfsv o30yqpGribQ7Uz8hvm/qxar12KWHF+B4s8tccIcktqXCSvZ/+fxtIEPft/Fc7kVGb8A+gnwQnSKN9 wjGYcWahc+vu8f+I383U52hLyuwNa0nsrxfkCcsYl2kUqMfTQVpwI9rLZOJ47v78MrQEW2pHYYysg aVemrnNjqT8nNlLRdeKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbad-00HPOJ-7R; Tue, 03 Jan 2023 07:20:03 +0000 Received: from mail-he1eur01on2070.outbound.protection.outlook.com ([40.107.13.70] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbXD-00HOf4-M0 for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2023 07:16:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GP4OmOn/gsuZW1Wt+Enc0Qb4uLXuG/K5djkEbhtGbyX19XQ0HuyAT8cv13rd5ZuP10rRSOBRrVpwUO7AK4sMQMKawjYv26WK9tGQrCHvpqhvPbaabtYOTU/R9jXHo3bcpbhtTc00snhKdC/+VjMriyrGbjhYcQIDhUewBrAH6wfPLmi7SJHc1hH+Pl4KWjTe7dnyDvWjmdFeT//lStFR+15ml+Ojsjvr8Yi13CZCIFKzSUcoVeMYxwYrVLU1/u3PuEnILV6t/VYHii0CuokezZvo9OhSBf6u71uZtzzi1bUrucYKtQa1Qq4FzFQ3pLfbJIbmIldKZXiz+uL20AG7Cw== 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=f+y6iIhrS5JunYvVEruqowZ2fSo4orDjM9N9C7SO2Xk=; b=DNP32R6ijWhpFjj8AYqa/2WNMpL5RsVK2pDXCM9Las82T3tVEDnTZXbFtM4v/8LLdz2X6+k/0jrJklBGR3hFbOlbeWncLPcSrjkhJkr9FENRCKRZqH6pXhJcj6E9f2cz1lTJ91Ayl/B7+RNTmqWC4utUdgiOo1KqwgstLxFIIO+isIy5C5lPqbYKVzHpQZNaVFQo9nGJkzN3FKyjFP27zRD3T88UnJbtf51LupEQnLdiJzNF+QHrNzPCZoGgo7VRswvc6/kEIjnR6SG9nNkOp2EIcqYGR0nO4XI8sF9GbHbkyBHJl6ywfl9GSPOQlKgkKwBeWbJ3cH1JMRoLh17wog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f+y6iIhrS5JunYvVEruqowZ2fSo4orDjM9N9C7SO2Xk=; b=G4yRDlNNI+XxW0LKCV3hOh0KTVe3VbJZlZqgzQCgf0o+bCeEob7zsmpASpTVfNtsUzfcyBGkWAvf/eIW33OvnHnLSfz3knSMyK+Cm/LqiMHRxiJ/56AuGmcZD/aRIbrU0WG/dcALCS7171xWsbe70iy865lpaRNUtA0v90fWL/Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:25 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:25 +0000 From: Ming Qian To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] media: s5p-mfc: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:50 +0800 Message-Id: <20230103071551.17775-2-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230103071551.17775-1-ming.qian@nxp.com> References: <20230103071551.17775-1-ming.qian@nxp.com> X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: a7fa43df-d856-4ae6-659d-08daed5a6cba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QEIay3vHATT3UQ+HwwD7mrivmpqzfy8Vt7k+ph1yH0kQq6kIRczdZCkEo2r0qPpgr/roXquoskVc/V1OSwWuRoZU+QtylVo8GhmYKWmb0CgoVMnd4n6wslJXhbRc7tyz2Xl3XS0uEA6Mwi+3dMzDyM4nXLg70CihJdeGNdFY5ibbEWeCVLmMdQgfhXF/pXDbZ+eMitdXSqF+34yFwr9/5e1qQeyClKNjgyRrfsR5WmM5ZdfSfBQpXcnrXkwk2Bxyy75odnf/hHQI6pwWgRPgPDvb3WS9KX8C8LKW9qqG9gb9Bd+yhhXJiVvYEigTZvCd6uOst7nF3ka7WU5ZlKwPA3qdSyFnLEzWwKod/qVdFpJ2cQPXKVS2MOcsVbXc0Q0zyTbO+2/DSbis4emaBks0zgw3meBXmrt7X9sPOSGu9nMTJpl3FApSVVUeUUcSYq6RA8B1hotWlTo5X69IP2gCQxAzC9UmeHW8u/MQvWhIWPtAV/fWkyE9x4nxv51WhbV58SHjdrYhPM/z/X0OUzt/urtTCgx9ptn/iz9y6NF+JMmf4t33K9XdBByPYO7raCGz+8dXR0Rl0xPZgF10xtOMhc1cxRt9hilzK3tENyBI1nPhwWlDPUGL2IPT/vm5IQ0+P4jwLLfvXGjBSGXaz7dQb+TDtngdl5MiKPK57BNB54M/dmlbj/JKMZ8ekz5Vq+bQ/nBYnQxuglioVPcFl1F1NVRdgSI59WrxzMzP9pmzA9o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hcXiqIMcNSnFHZoP5IrgmKYt4mHH34NQAcZIoEZHePZxSIcQ7kKvAXqtVMQPlTRgy3obh3gnBFmct8ta0RFPvzuGxJBmztZXnlFiErBI6ulueqlYRviYn+DuunUlMmqNNT0+BPgx279UCftF9uC8ztr0x3dZ/0eAzmCS7cTG9Zly++VR1qxzr0HtWMpcrvFnSJo0xIVGtZ7AXKQOzpXUzWB3YXskVXn5BflATH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JBHNzat4ty4Q2ju75O1Nx2KnIDE1zMBHI0aXE8fW2k8enb66BJP1vkLvQriTf/V538g6Mnmb2SlQTAuvcK2IVgOAL2MbObq6UZrZrzNKsTaW0OxieZ0V/fc28a2s06OIWRA3HvLO/4f9goYcWrhl5/Pz+igSTV+ER8F/Ennbu2aOfwVRXKURA755IL/B+NCgWuSCzQBptMLo8LIorTEpCjhpR6nwPgjjU8Sc7ATdTe944pNHI4fFTU3RY/r84CWnME95i3FijajONrdQv8RnQla3Toy8xhc X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7fa43df-d856-4ae6-659d-08daed5a6cba X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:25.6309 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qnU0vHhtUDXCUId2Ey+BxPj7DN7kOsB+FEIn8cpUWDELzq92bqRz14o4/VK+pxblIjnYDetumGxJ0qlofnN17w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230102_231631_836483_1E6182B6 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c index f62703cebb77..ca990833753c 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c @@ -1161,6 +1161,7 @@ static int enc_post_seq_start(struct s5p_mfc_ctx *ctx) vb2_set_plane_payload(&dst_mb->b->vb2_buf, 0, s5p_mfc_hw_call(dev->mfc_ops, get_enc_strm_size, dev)); + dst_mb->b->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; vb2_buffer_done(&dst_mb->b->vb2_buf, VB2_BUF_STATE_DONE); } From patchwork Tue Jan 3 07:15:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 13087265 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A069DC3DA7D for ; Tue, 3 Jan 2023 07:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LkEUHjxhnwz/WHb5M08cXvd/g5Pah7gzUD+QsPJD3JM=; b=s/z8assCaGadii mB4Khk0kS2QoBW+IaW+pc/uWWCDS9mNz28L1o1oObbItwZIb6JvoQoSi9ezCXEQ8zQ1dbNlYlel2h xfAvgkA5Jza4hzfCYrxGEqGqgYZqVX9gesbgxfWNPHR6V4hBU1oRhqLpR9UZqE4k+aRq9KN/RwRG+ UUoaibRlP6lG4RHWbM5gCY+5YaL3T8gOwdxsdPwhBmEHyntB1HZlEjsw1NRBym0teScREdSbTMh8H ry+oVgU62+nbEuLt0DjTXyFnOBusXamcGs6IiPW/JPHIx6R6pTRiY6u+eD1zCh2PUajiujuTjOMWR WLPS6rO3Tb2hi8sVP+NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbYp-00HOwg-16; Tue, 03 Jan 2023 07:18:11 +0000 Received: from mail-he1eur01on2070.outbound.protection.outlook.com ([40.107.13.70] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCbXF-00HOf4-M7 for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2023 07:16:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OifeMZJv2Wrarp3sVYt2qoqewd/NNyU4tqZR06yW+Ktnoan/XnebD0+8BkgN0AK4q0FtgFgaru8yJr0+OAcSCbAIqAlqWu3vBTHY8juC3OQcfusmI3CbZ4jpa9ZUdyF1T94LO2r5n6chGlIUic+MG53uEENHZCRd8+K8GyIOJJVrP4JgS0zoNtoNHxr7L+/czKgHRpya/+40pTRpx6Y4M+SIwb24AvP7Uvty09Yfk0529U8JjuCP257cZCPekYDAkeCRV1s6xcEBRsRl/pBYKZFvKt4y/2rwLCWDumrdg68B71yz/SWJGBon0eFfJsGnLDHYitJrs4w+otbVEfzeog== 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=AbpI+qaKR5rhVAxXuimNt0NGEg1+MxeOhCO0hO49VpY=; b=oQzG1ZDQF1/V0kF8LtLdft27cGBv+wxWbRT3yoIEgZh8S2akMPZX7yoxSqEa+tU2N0UuMt8sVjAhKJxf3s948VAgI97iapqYw+aw7uBf53CVeJDO/oul6L0qfX9o6LNvsyRlmZYumA3pe51nuhB0lFKxXhSDgmjiVKIN2bL9zzBaXYs/hOxnjukV/HNjAdkthsJ5ZocHzpnkV4mpeHnY0yjQ8ckU3p5H8TnCglPq60EmJJWZtaC96nwnDpODXMwSa0DyxtEqG+EkDnqCe0nRjPfqUiQjUT7LcYiu6SfcRMuWFaNs58BvUQJMJGCjvEh4uEFqO2z6uLJloJVRbfsolA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AbpI+qaKR5rhVAxXuimNt0NGEg1+MxeOhCO0hO49VpY=; b=MmJLk2mWxBXaSp4yUb9NxlbHrKtymd9ITGnraQNq3p4VQYcX2yPnpBTg5FW3hHQg9u6mMBd0W/OhUOI4TgvkBLqZ75xLu/7Wo2a93IPNVg8l65ns/VC7gPzzklZUUCnwxBzkhBkojD3QRZsVPE7D7JBA8TdCJkRQo3HwOTaazEs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by PAXPR04MB9105.eurprd04.prod.outlook.com (2603:10a6:102:225::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 07:16:30 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::3a82:42b3:f1ed:5c3d%7]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 07:16:29 +0000 From: Ming Qian To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] media: mediatek: vcodec: adapt headers only flag for V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE Date: Tue, 3 Jan 2023 15:15:51 +0800 Message-Id: <20230103071551.17775-3-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230103071551.17775-1-ming.qian@nxp.com> References: <20230103071551.17775-1-ming.qian@nxp.com> X-ClientProxiedBy: SG2PR01CA0190.apcprd01.prod.exchangelabs.com (2603:1096:4:189::11) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|PAXPR04MB9105:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a9df800-3ce5-442f-7a3a-08daed5a6f40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 11tCR0zJHbzd2vMhtLOrBh68vHBSQ+agHDMzp6hkOhfVLPDtZB+gWM3UG7fpid03KEIqt6Cy+YOIebxUCS1wrA0/q2/OB91bqTCICwbv9OFjLCcLZ1w0IeW9Sm7qLlEMexOhwCp34vE2ESKOjMCO4t8rE+KiMXlPtFscm/mAd2uMXThNHczKO7iM37CmunHkqX180yl4OMnyJy1erupM1s5LwdQ85CqiwewlRqZDzd/ftzLcr4fCadQi15u8z/4kMOOQCRO4agLMZQI1ayU3vxwt91HhVHEPt6gr68I0c7O+/IILa9+boF78w/CPXGxo7mBdoagdVTf1fQi5qEs+xK9V6pV8QHAED++m8SeRhGX6V+2qYSh7SHMFw1fd4wK1T7+BzHYez1FJGWSs1Q6gNAvUXEHfiOTaTeNz+F7isygvrrYULkjo0Awkc97Ktb5ULDAfGm61+2vbJkNHImJWXIJXQorTqR0mcPMnusf+W4PkeVuQdZOFSW069lUx9qNicewIZ6FY97+++3Ch/wnA6amEzlLBI479210nAsyY2S/WyTAruXdnJLqFuR1UVbUSIfo7oEQ/SEYXzWsBnHY8HjzdvofwYq1mLcLE2RksTOklUr0NyWSZoBXOt1NT0VgXpHCheUgtM7f3qV0OaTApXul/tIKnHAyf8IdxLFO1hTfgJt0pGMz1OpXkFxUfJ2U9blif+LYlxR/TwCiQ4Krv597mlOeEfj4oTIrByGK0iKc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(39860400002)(376002)(136003)(396003)(451199015)(6666004)(6512007)(26005)(52116002)(186003)(1076003)(2616005)(6486002)(6506007)(478600001)(66946007)(8676002)(4326008)(66556008)(8936002)(41300700001)(66476007)(4744005)(7416002)(5660300002)(2906002)(44832011)(38100700002)(38350700002)(86362001)(316002)(36756003)(22166006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 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4pXPDcMvLUXZNa0BEnY62wr8d4wWQQgCBXrsHzPwW75J5w8niOdhsBHvMmkA8RrAFYAMutfkbrlOIbSQ5jnioaBobT6e6TmHz96YUq1VqZOwPSVUiN/Vzudch+xILXMxVA9klhNhvKWnKGJt+EFl+MeQgVJCoKMlZuIV0HgSBjESeiCDXvGaeyTBqKBFuR/1s3b7ATcCoz2ZabK9A2qjEsNVaaWLoIvKzjW6J4fW3W+IDf4a2mjjKzx7WYj+AYFg9fQBlqR5tEJ3Qrk/Vk0OBNUTW3TEYb4jG5nUfSfTzCHzxtukIS4xa/4u3IA/ZPnEQktOM/I0B60EAtbFIJ6j4VH5P8GS+zrfbyL503c6pglfahoM3t9tpYMzMgTCWUv/0zebkK5IGZbUfufJCC7WWpjWDOovZAMzugwFtQkCrwvK7BKKFWRU4cywKabJUOTXZt3ezonVLU2WzwrpQpC+ha00wIpUdLDrryHtXmS4pELihkulTqcdblOvk/5ye/lB95hHf4xNZcO81LL2KI+lTHfwYdWq4SqtEDt5vcaPG8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a9df800-3ce5-442f-7a3a-08daed5a6f40 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 07:16:29.8963 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0FyAdfU93kMWr4kfJwL8sjHO6yONPSsFo+aMkdL2HMkranUywpdz0j6azkxxdICIy+PJ8bsOgbReTgGipUHU8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9105 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230102_231633_850771_CA0121F1 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org when V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE is chosen, the first buffer only contains stream header, so apply the flag V4L2_BUF_FLAG_HEADERS_ONLY Signed-off-by: Ming Qian --- drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c index d65800a3b89d..0563abceb858 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c @@ -1090,6 +1090,7 @@ static int mtk_venc_encode_header(void *priv) ctx->state = MTK_STATE_HEADER; vb2_set_plane_payload(&dst_buf->vb2_buf, 0, enc_result.bs_size); + dst_buf->flags |= V4L2_BUF_FLAG_HEADERS_ONLY; v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE); return 0;