Message ID | 4998d30d00ccea83bf1570b511b22c63f12fe156.1627353315.git.ming.qian@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=DCHG=MT=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83224C432BE for <linux-arm-kernel@archiver.kernel.org>; Tue, 27 Jul 2021 03:26:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4C67960F51 for <linux-arm-kernel@archiver.kernel.org>; Tue, 27 Jul 2021 03:26:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4C67960F51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=0hL9/GEalIWtukIirI2GGO3yex6o89PIh0kTGdth9Yo=; b=hVH4Q+u+Gchbzl DdPCXAIU/GyvUMP8HqEw3p1QUONT1EgVMKRjZL//PkCP0j8YgHnBV5b6rzg/Faff3sBpgImQlLMv3 u1QfuUq7IZsfp3bVT2d3wbbCjqxCvoZMLETzZ3gr75MaQz+rYe14glokyez0kmZFWxoSnW3I18wuc hwJO9uFHPHXttnh6UfmoNhIUXtMSd9ByJq2i6vxPWIbcC5ir/qAdwO8mXobtjNd0D3GQmW0Kxqrnj 9307M6sIR+Vm4+OYeF0d+t2uuz+N0lj3CXszmtshnwiPpx9jNLhUgmDpuir41UWBx5aCRmP+PRe/B /8vs7dIkxX2Sjv76X5Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Dg6-00Cwkl-JY; Tue, 27 Jul 2021 03:22:47 +0000 Received: from mail-eopbgr40050.outbound.protection.outlook.com ([40.107.4.50] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8Df4-00CwPA-8v for linux-arm-kernel@lists.infradead.org; Tue, 27 Jul 2021 03:21:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k/q/tANasdPFskfLJJZtT5JirLPA/iuUOdVkLXP2Y+XSyn5Vny+B//ojhXxsY7U1ztc2kaeCObqJTMPHVx4vVrExUk6zN8VQJjD2k89TSdzEB6tKcn1onYKeLS2uHThNpN665swtFW0SBU1HaYD/p+PpJqVLLwqSSTmQY8dRrgR0wzxZlTz/uS2nhCxshkAd5NK+DA+qibHD/jsnAlFGMkbH2qU7OBHf+ZUTlzljEuzci8rf3UktBVTy44dr/d/5QC8WekfDC6FzWhjQIv9fRCF1L6QXnHP/tA3ZWfJ318OlHguBYcpdK20j0Gv3damCsr4e+VGhmkCj5M0rDKe0+Q== 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=HW47waL6NV5P6ETFEgKflVw4mHSlkW4LPCTJWycq8zA=; b=YbAXomtWptIeIHjA8nkXGsRPLhrAjftZwvUzb9B2jTaDVeuajomhhs6A0YXLkMDf+1fRjHavQkUZ6orjzPysZnz2tqIc+Bp6tWp+d3hhn0XbuUeKnr7OR1jdrPgapHcPsuCW4qoxkjjYnDOyRz7mNbNzzhDhLQACODnko/mN1mavJdEX3YKVdYmWmwY4emSoDqdnqkG6w2hSrUTqrh5GaZ5JdwCJmvL2QpZnHt0Wze8LFVapCG9sQl3z+rnnxwuFle/2d86y0TarYuLeRJbyVxS7WZmKjgASoErfqWdqX7RutI2mzO1zqVp6gAM22PS5HqqiFld4G5nypikv+RIfEg== 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=HW47waL6NV5P6ETFEgKflVw4mHSlkW4LPCTJWycq8zA=; b=cIXupdZn5L+AzESx4O/u95fE9wzSKPkcl00ag8+cFTUWq/d/h4NunCs98GfVzRwscwCN0DqHBhoJsnyE70phQrP6tbrobHhwagb2afW5j/NzI7eq0LVoqm4+kkHPKyN7Xw5YDYrLwjA+FY7Es8C31Ts+Y28O4ixRVrNC+WdDBXY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AS8PR04MB7640.eurprd04.prod.outlook.com (2603:10a6:20b:297::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.28; Tue, 27 Jul 2021 03:21:38 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::81e3:1e06:83ee:5db8]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::81e3:1e06:83ee:5db8%3]) with mapi id 15.20.4352.031; Tue, 27 Jul 2021 03:21:38 +0000 From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 03/14] media:Add v4l2 buf flag codec data. Date: Tue, 27 Jul 2021 11:20:46 +0800 Message-Id: <4998d30d00ccea83bf1570b511b22c63f12fe156.1627353315.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <cover.1627353315.git.ming.qian@nxp.com> References: <cover.1627353315.git.ming.qian@nxp.com> X-ClientProxiedBy: SG2PR06CA0199.apcprd06.prod.outlook.com (2603:1096:4:1::31) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv11149.swis.cn-sha01.nxp.com (119.31.174.70) by SG2PR06CA0199.apcprd06.prod.outlook.com (2603:1096:4:1::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Tue, 27 Jul 2021 03:21:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f59b4f83-903e-44a1-f35e-08d950ada558 X-MS-TrafficTypeDiagnostic: AS8PR04MB7640: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AS8PR04MB76407A046B3DA794AAFE1D92E7E99@AS8PR04MB7640.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ph09I+IowsGapyuC7Gj9MBJ7onlxjvX4sqLwrlHkiaeBXIZDChmh6CaECTVAPfcDbuM/3NZV0YyA1KLxpR1K77YLuHFGpucUGAgxhZnt6+CT8H8G3i4+6iCJu0veQxCHQKfs+t8VyfhIii6LTaXHkLmWbRvTomU1sp5EBpqhxbwy6bDwRJT4AjFATp1EPra8NitpXsrlouBoWjwVt52T4VoJeDjRNvfLKFPkc/lhSaAriLRjKW4xfcMQlqp4QL+2YPPODug650at1V10h1n95g74LAH976TbfDdEARhzFIJLamZ4pfIben7nyaazIG5kCr6cou919IHWjE/WuscbfgqUxkW0dTO/ubrPliDBwCec6ugUVHxidGKtB41h04fmzrA+DiufGWJj0eukAmOEyHR/W4cpU8Mpgl/eYNTRsWsbjJWQSPTIfB7w3Ti7F9Hx9uUg9a1SyjJb4N5+3VTMG7jI5r308GcBIKeLipXGid4zs6/UDwsQ7KWsGz9XdT4q1ihZy7AKHbt9ur0bCPBawYTLYXIzPqRQve7wzm3qAw0f9rA2xQjYra9ef89IABY+Ssg/FjLegIJVHMzJv0xMOYR1btZIf5SpmpBrUkiBOX4/JbFf0gFWIXsUaC5sNgF1OF6cOG2f2R/yvV0uPLw7zA2Kvb8PBKvXDAN0rVhK/XlanCNNkOXGc6nGRKlNcUrh3VAXz1W49USnVz6KJP8JpA== 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:(4636009)(366004)(5660300002)(498600001)(36756003)(6486002)(44832011)(7696005)(83380400001)(38100700002)(38350700002)(86362001)(8676002)(4326008)(7416002)(956004)(2906002)(66556008)(2616005)(52116002)(6666004)(186003)(66946007)(8936002)(26005)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JPe2pHvX9nC299aWWTSLjJFPP8pnkRYfD9XctdxZ5yqzz72T7bCX1+BJneH4DDnsP5vRr9jdusSOGXEEsuo+f1hoS15uGfmDK3t3BBNiuHU6LLg/doEHi8utzdETeLWBwI4di6FY08iVo8CXWG7xeYHk7DpDCPh8c6yDsxluBpWiQ6qm/Ea0pPSb0KdHaqPweT7gTFMi3HFMn08f/QuvJlf4rfd+UueIRWH7ZlSxUs3vqKDycMQG/WrSIa35ASdpMEnkc8hOV2L2YCvHB75QlUAeMKQEpfqZnnFSHx9USpFZ2L86KEkaofE2Sbf2WSJ431VGXI5JxDd9zOokIMT8u/FlmZkMXCYjJpTzirpjbg9TMKKvAXRYk+ywlC0fV6uP6met2fenhAm1BjX34MF99OxiziB2iiZLLT5abeTk8xYKKcpDmb4bJQoH/5m5TwnEKoAd2HgNoA5Y+QhLB9KwHgMSmCqvh1HCTJMrAw6r3h8PO6zrD0uNEmSIB0ugvI7gYXSfFR3Mxrnoer8B90PACVVbDP6Yg2DlOH8NhZP5T5lYXJ63UP51lqxsuvbuDB/hySPaPM9zZW0DNgV/l6Dts8kzTbHA0a0MUWwb41Mar7iao+RABDd+Gv/PcUVrHFEmoIfb6ikEZEcP5dBoSmAWb6GFcK3MF0djxKiNHO9qkje0kdjUW1tnTbGxxRKxEacw+j/ifuZRcqAS7maD+XlzMAjdx8VeKD5acwBCaMmFHiOwckWDwQoxSHdItIEsslTCX5MmGe6x0gXRUgkgvfOOPsub9qmOjKf8jyYK22cOibLIWjAeZuPiTNAIkzDEvXmeY6vdfbnjPBSZ+EknLu1nUfjV6yTp3j0+xZJMRfrOiqRnC4O4eCFYGml/f1gbj8IiY7y9W7Zpmeyx1cRxyXrVMa2fBGnV5Rjhyvsr8K1iO5PdFQZSZZDNaWSee+15s66mUsFQS3Rb+ovucAX8wf4pviM7AXszbHge6420DnAMGVai1/lhx58GFU7V6qmIb2dJMq2qqDU7K9bGYe62rvn3NrfyNKcw+oyJo5JXPDfOMJxMgIA0WqbD6p2ZxlcRFzYEc4xVGwZ3lSwf4SL8/5wH5SEh4h8W7d/RnkCDKdAyMORNbbmK4uJWL1NyjoCA1AqmnbaLyJaMrXkRTCGFyjhlk+hRldcMCdaewDq3uxxRuLD2Tn8etPHZQaVJb8vToWAVn8qEEVSBsdohrsgnnApA6GjSueQS/Q+ySRV4P2yEecfZLXC8Q/0AqKVsI/f6h+TUtwbLR+wYvVMZGDUruRAZTRSN8frQkssXb8705Fgusiub1XDQT81jir1d30g/+Kcp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f59b4f83-903e-44a1-f35e-08d950ada558 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2021 03:21:38.4979 (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: AtIrKSYK9QDbkKYwaYl/r8i1lRxBK5Vc9VAUIh6gxffq+/AJn3du6hv3vJbi0+BI/6vgfkd33dPQ/Tj++c1yjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7640 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_202142_379887_6EA719D6 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
imx8q video decoder/encoder driver
|
expand
|
diff --git a/Documentation/userspace-api/media/v4l/buffer.rst b/Documentation/userspace-api/media/v4l/buffer.rst index 4f95496adc5b..7f32c5fd6b11 100644 --- a/Documentation/userspace-api/media/v4l/buffer.rst +++ b/Documentation/userspace-api/media/v4l/buffer.rst @@ -611,6 +611,14 @@ Buffer Flags the format. Any Any subsequent call to the :ref:`VIDIOC_DQBUF <VIDIOC_QBUF>` ioctl will not block anymore, but return an ``EPIPE`` error code. + * .. _`V4L2-BUF-FLAG-CODECCONFIG`: + + - ``V4L2_BUF_FLAG_CODECCONFIG`` + - 0x00200000 + - The buffer only contains codec config data, eg. sps and pps. + Applications can set this bit when ``type`` refers to an output + stream, this flag is usually used by v4l2 decoder. + * .. _`V4L2-BUF-FLAG-REQUEST-FD`: - ``V4L2_BUF_FLAG_REQUEST_FD`` diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 4836590a690c..242731cb6556 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1110,6 +1110,7 @@ static inline __u64 v4l2_timeval_to_ns(const struct timeval *tv) #define V4L2_BUF_FLAG_TSTAMP_SRC_SOE 0x00010000 /* mem2mem encoder/decoder */ #define V4L2_BUF_FLAG_LAST 0x00100000 +#define V4L2_BUF_FLAG_CODECCONFIG 0x00200000 /* request_fd is valid */ #define V4L2_BUF_FLAG_REQUEST_FD 0x00800000