From patchwork Thu Oct 12 08:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bingbu Cao X-Patchwork-Id: 13418556 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E20AACDB46E for ; Thu, 12 Oct 2023 08:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235482AbjJLIn7 (ORCPT ); Thu, 12 Oct 2023 04:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235478AbjJLIns (ORCPT ); Thu, 12 Oct 2023 04:43:48 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED7E10CC for ; Thu, 12 Oct 2023 01:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697100185; x=1728636185; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=Vc15TVXd4L7zZpx7LIIykmFF37OBahAS99RFZ8xr0iQ=; b=a8Z0Dpv8qF8iOJ9FXa64/oIBNTfOPBt3ZwH5jQ7aLCCzVtlbZYf7IYvn znXi+nF9QOrugkgawcAKSbAMIZl+5gyaCj5GyBvYu2S1EP32hJyP0hqnQ D77MN63ESxB7KcrC7TcXk2y+JFHw59obGgz1ubwD/KZcg9ZThELJduO8z 3livCSS3r9KrRi1EODMDLH/JcYDPYEBhckZhEnzoOM8z0k+ZbUjyGyW2H D2Rqa3tQ08/R+88z8DFrTc5xQmxYCg3rc1iBRoY0JYpnLBuT/maD/hNX0 I14I9fYM7fc5Gt99Y9YhenXvkwc3tOwTxaUFCjWNvl70pyuUjXfXr8ZTw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="369931761" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="369931761" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 01:43:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="1085577317" X-IronPort-AV: E=Sophos;i="6.03,218,1694761200"; d="scan'208";a="1085577317" Received: from icg-kernel3.bj.intel.com ([172.16.126.174]) by fmsmga005.fm.intel.com with ESMTP; 12 Oct 2023 01:43:02 -0700 From: bingbu.cao@intel.com To: linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com Subject: [PATCH] yavta: add support for 12-bit packed and 14-bit unpacked/packed bayer formats Date: Thu, 12 Oct 2023 16:52:16 +0800 Message-ID: <20231012085216.3346754-1-bingbu.cao@intel.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Bingbu Cao Add bayer formats: V4L2_PIX_FMT_SBGGR12P V4L2_PIX_FMT_SGBRG12P V4L2_PIX_FMT_SGRBG12P V4L2_PIX_FMT_SRGGB12P V4L2_PIX_FMT_SBGGR14 V4L2_PIX_FMT_SGBRG14 V4L2_PIX_FMT_SGRBG14 V4L2_PIX_FMT_SRGGB14 V4L2_PIX_FMT_SBGGR14P V4L2_PIX_FMT_SGBRG14P V4L2_PIX_FMT_SGRBG14P V4L2_PIX_FMT_SRGGB14P Signed-off-by: Bingbu Cao --- yavta.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yavta.c b/yavta.c index d5628632c1f8..7d10fa39f6f7 100644 --- a/yavta.c +++ b/yavta.c @@ -348,6 +348,18 @@ static struct v4l2_format_info { { "SGBRG12", V4L2_PIX_FMT_SGBRG12, 1 }, { "SGRBG12", V4L2_PIX_FMT_SGRBG12, 1 }, { "SRGGB12", V4L2_PIX_FMT_SRGGB12, 1 }, + { "SBGGR12P", V4L2_PIX_FMT_SBGGR12P, 1 }, + { "SGBRG12P", V4L2_PIX_FMT_SGBRG12P, 1 }, + { "SGRBG12P", V4L2_PIX_FMT_SGRBG12P, 1 }, + { "SRGGB12P", V4L2_PIX_FMT_SRGGB12P, 1 }, + { "SBGGR14", V4L2_PIX_FMT_SBGGR14, 1 }, + { "SGBRG14", V4L2_PIX_FMT_SGBRG14, 1 }, + { "SGRBG14", V4L2_PIX_FMT_SGRBG14, 1 }, + { "SRGGB14", V4L2_PIX_FMT_SRGGB14, 1 }, + { "SBGGR14P", V4L2_PIX_FMT_SBGGR14P, 1 }, + { "SGBRG14P", V4L2_PIX_FMT_SGBRG14P, 1 }, + { "SGRBG14P", V4L2_PIX_FMT_SGRBG14P, 1 }, + { "SRGGB14P", V4L2_PIX_FMT_SRGGB14P, 1 }, { "SBGGR16", V4L2_PIX_FMT_SBGGR16, 1 }, { "SGBRG16", V4L2_PIX_FMT_SGBRG16, 1 }, { "SGRBG16", V4L2_PIX_FMT_SGRBG16, 1 },