Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2054855pxb; Fri, 25 Mar 2022 10:17:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsl7Ub8QaLiOrgvV5C/oMNQoK+RVBwdyQ2YyEGgEVTfNC+zP6NgTZl4a5UBM9e8oFPEgMt X-Received: by 2002:a63:af4b:0:b0:373:a2a1:bf9a with SMTP id s11-20020a63af4b000000b00373a2a1bf9amr465536pgo.369.1648228631043; Fri, 25 Mar 2022 10:17:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648228631; cv=pass; d=google.com; s=arc-20160816; b=bFFdhX4ONlYdPxzn40Hw0VOTrooWeawBmNv0JQR6522firhsFJnJyVQVhMq2oQm4Zm bdZPtuXNUPCkkZGWgTnpvddAzLZY3RE9xpsyUu22LIVKgXgqUUqY0V+UlqJFwEBNzJcI ehtc5xRhuNwsZHyz8LyR9oWsND7j8/ZTr60CrnNq8/XmVMrwk9o4Y4J3/146lxb3ar3/ 8W/mqE1eQjGsd1qW5xczOEHUs4KnsSqJWh6HaQMidS0Sfeo/q1+9GXSDBav5FA6fXa2Y UnorBonLZujKZTO9xLPlOp7taW0i9JffnlUjlsNfPNIfeebuptZk/claXCEjLClezobV e3BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=0m+dSKorIGiCCLRmZGvC9o4UTEIPRRurNfOfagCppS4=; b=we4IsGCnDklmsX4FerwrTiodFznvtwnugogYDC9Z+rRizuhSbi6El1agd3Lklwj8kg jrGgoSqxgqbz9lW/4YyZmaGm2DE5kIV5KaFdoBxH6nfd1qydDTHRUU3OYIXcEA2wg/xH c5x5Sy81aEXvCG7AH40f1oAo1R5Eu18P30L4Crnk7i0u1DBhn9ZAPh71CrwutD+vrMrP ZWf304ZDjvRD1+V7C8AOBtlq8+y0Fi5n4MhaAe/lDLcL6VQnvXMJE1R3vThd1DWWCIaX moOmuXxb5HGuSyhZIMwIX4VSzz228nAzwkkeotOXuw8p6ANSLZXM9C6YYQfoEZhu8rSD 0XDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Q0j3gyvy; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r145-20020a632b97000000b003822d8ddc29si2755949pgr.571.2022.03.25.10.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 10:17:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Q0j3gyvy; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4D38EA373; Fri, 25 Mar 2022 10:16:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbiCWJIP (ORCPT + 99 others); Wed, 23 Mar 2022 05:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbiCWJHq (ORCPT ); Wed, 23 Mar 2022 05:07:46 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70053.outbound.protection.outlook.com [40.107.7.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C8DC74857; Wed, 23 Mar 2022 02:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VHwm1XxEJ++aRnhz/kXfkY3X9whO0gXRHInB4zJziz9c7VJFmz8i/nfO2INQHmSlXRCVuaQLgBxsLfh7LhIOCe3AOPD7D7/ZzaG5agScm9CSqWGzBBwwm3fxBDZw5xT8nwslqH7g49+5q+sERrIM1J3toyTLzz4llBNiTWjJh06W6oEBBTX3Wn/TvNMYoesakG9QVJ67GVqZ4yfHsnFbuyij4H92ApRNG3+dCN2j88MFCsINK9XXD7iroPqPPJQZ2+xwbhuVD/6M4YNYs998olFyo6g5ZdkizzBF2Dlscjk5lYlUN0DZmCrFLuq9iu7zLW9GWCPbhnlGHqZ9Icck8w== 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=0m+dSKorIGiCCLRmZGvC9o4UTEIPRRurNfOfagCppS4=; b=Mz9HjM+iX7wjvJTH07CiyIlV0i5qDhGIRD+X/H8zmABwnNWzdURP9nafTe0qHxmI8u0AI2QlcQNKWveLMEsPKz03OS1UvLf388hIzSFgzTFkmYlyXZxT98XsoxbV3EdY7/XUaOf+PIrmJ8CfsDushpsP4yGETNYYOki/RJShMHwwy6EaxdJ0EPmf0nOiHtrOnPXibrsZgXJCQLQMeSKwbSl2mUtVyXSDqRyEFcadU/k77w9YD9WyJWFcDhJZ33egZcEEaU1C3hitt+qCAh+47GctM4eExTIC8368R8VkhFzGDFRT+e31VLNH5YEkAsUK4pSpOd/oGMgOSv5GurfTQw== 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=0m+dSKorIGiCCLRmZGvC9o4UTEIPRRurNfOfagCppS4=; b=Q0j3gyvyy+wlC+Air787YS1zEaGY1fNGACJcQCHYESyLn5HrK3HikNrXekZLim2KNQVXPFgKhRZNCOiUr601J5hiz8oEtzk79+Eh+pvarLdIfQRPEkmYWfVufUcHIuMet3pZJMCsRfDiEZ6cdwo3zSDh5fUbe4s4ERF1oSfnpx4= 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 AM6PR04MB4901.eurprd04.prod.outlook.com (2603:10a6:20b:1::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.23; Wed, 23 Mar 2022 09:06:14 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967%5]) with mapi id 15.20.5102.017; Wed, 23 Mar 2022 09:06:14 +0000 From: Ming Qian To: mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, mirela.rabulea@oss.nxp.com Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/5] imx-jpeg: Support dynamic resolution change Date: Wed, 23 Mar 2022 17:05:53 +0800 Message-Id: X-Mailer: git-send-email 2.33.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR0401CA0014.apcprd04.prod.outlook.com (2603:1096:3:1::24) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 752b9fd9-fa09-4d1b-ee3c-08da0cac61d0 X-MS-TrafficTypeDiagnostic: AM6PR04MB4901:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pIbSBo5JeZAt75+3uQ6oI7uk4Bdk4z2tP6UYP6gLlpdv6k3tJusOcB9TSIEiCxEigUeUN1wUhQzdXoih2uN4RLh8SuqGCQh4makcLi/vRatIBoUcJBsG/IEhQfs29Z/l/rR1f+RRhqpyfuazJw4OeU+z5urTWr1bRom/z90Shv/in0VaXYe4/BaRAG5djGbYOIu2R39N0wQbHw7Kwmq4oDCEbMRbXn6FlVVJR4v4BfJAwy/LVeW0Iz6KUjPvsA4j3Yiz065a6P90BCRXCCxYGw5Fi/9kOld8ytNBg+tcy9Kv7d05cDdIfYWZ9IiDLezY7J+ASek+TRqvU/cyLTMM4E/VOd2ycPVPJ4eqih6MWkIZLhI8k4qD2VwmSMbxy1zv07E65fCBbPDLBCZx8r1i2fvOtaUXdOx0eZIi9nryMGbjmGfYLdtSKeCDYySOMLcJIIpCeT558jp1frMKEwCBEgOi0+/wPzZaMSax3ahkHeIKx4jS0/ptI1VxGDtjpburS2gW/0kucAukC7Q+eJuaBPOrafv96JvZMrePC5HxV/8DMOrg/JfqkaAzzEtAJoskGXxWbmyanJJ4W6cILpnXNdKQz0PxIJnsiWsLuW9nN4YIZZ7Rd5o0fFJpUhJdkyOpt6Kn70lOkRy7TbTBjVQPkMA231coDopN0WUzXeyEmDRsIR+idY4Dk0Tk947qglIIMEJbXTaAE6FI/BfnLA0KcA== 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:(13230001)(4636009)(366004)(36756003)(2906002)(38100700002)(38350700002)(316002)(8676002)(4326008)(66946007)(66556008)(66476007)(6486002)(6506007)(86362001)(508600001)(8936002)(83380400001)(4744005)(7416002)(52116002)(6666004)(44832011)(5660300002)(26005)(186003)(2616005)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HKuALmlWyzfdmvx3aUXhgwBnxo7wP9tqNJHGj1vOuw8YXXV2cXi8m1+az6Tz?= =?us-ascii?Q?5FbUtADtTqRP8wOzdIVUEcKwxFhUDO1Rzfa4Gi27lnN4KQ1Sl1Y96IctSg5e?= =?us-ascii?Q?GpCj29uWvWyxFN1aoeO1OdGGA9RYsKz1f4tGZfmg6gXbNBBBxKAjotOLWuCx?= =?us-ascii?Q?eeIivjfoEkGHkn8oRti6k1pcCb+SXkgG/Xc+h1Eo0m2SNK0lEudrLjumaS4r?= =?us-ascii?Q?PD3qFIl45oRR9oFgW9d+ieF+jWiwh0mUb05xW5bjARO+KU4tz9kwn1tixe4/?= =?us-ascii?Q?gJIHWpDKbMAU4aLnReytiV541XmehbUq6WAYSZufbTyObKfwdTUNynbOOYoa?= =?us-ascii?Q?Wg0KEVA0J1ZSC4ESslUpciCjvtl+QU4BoGe9yAYuctaZ2ujG9xdIjx5pKMBM?= =?us-ascii?Q?qkLbx62ckKhpzJAc0/SfDPEOiI+KQlBQHnOACNVjC2RunDLrJlJU1Bhh6Rhf?= =?us-ascii?Q?iTHhP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?= =?us-ascii?Q?/Qug9KN3/euU4FyESc1gntyRFQjy/1ukNC2UswmqHVYVzqYRFOTIsa9vEIDK?= =?us-ascii?Q?2oIYS28AERpZE5o+AVgjuSMtlHiTgXAZ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 752b9fd9-fa09-4d1b-ee3c-08da0cac61d0 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2022 09:06:14.4618 (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: jHcl1LIWFazqc2LQGRBiNn2zn4j692wdKHViYipBGmTbGrqX2+ptCXOGH37ouwOY15wYz/hDp8FhnRerWXWwzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4901 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patchset are to support dynamic resolution change. Avoid decoding error or even kernel panic. Otherwise, the Gstreamer v4l2videodec will fail to decode jpeg who is not decoded to yuyv. Ming Qian (5): media: imx-jpeg: Refactor function mxc_jpeg_parse media: imx-jpeg: Identify and handle precision correctly media: imx-jpeg: Propagate the output frame size to the capture side media: imx-jpeg: Handle source change in a function media: imx-jpeg: Support dynamic resolution change .../media/platform/nxp/imx-jpeg/mxc-jpeg.c | 249 ++++++++++++------ .../media/platform/nxp/imx-jpeg/mxc-jpeg.h | 3 + 2 files changed, 174 insertions(+), 78 deletions(-) base-commit: 71e6d0608e4d1b79069990c7dacb3600ced28a3b -- 2.33.0