Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp502575pxb; Wed, 18 Aug 2021 07:18:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRyPc/EEkoOVKxMA4FQOdG3FyEWrNNkUTYrTkYLvgwBygNPYVYRcni3t202efIQ6VNRbvK X-Received: by 2002:a05:6602:883:: with SMTP id f3mr378337ioz.137.1629296328906; Wed, 18 Aug 2021 07:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629296328; cv=none; d=google.com; s=arc-20160816; b=dwEG5VWhbKdwBPSq4Yw48CCdQ45Wz6xOO61x74UV3cZeNs3t46BWV997Ba10VryqmI vrWd2whPMiutifdkr4kqwJyoONL0vxbqWATEZbvPiwJLDlHRo9rD+ZS+H7M1+Qpgtx1N Oq5ioAgTLsHlnOxaqUxIqydnc/YsOs5wMmVfwS26S30gut+eqLLFNVae0zCwwfINsDPk nlg2bXaijd+AHumXUyz33GyKBrCFl+siNBGJhIR3b7AgDdd3DGJ2fqhUfJ5mqpp2DDid eJMIOngLFIJoiCOTyL4JvaUi4OaLQ7I9l5dZ9gCK1/KcZXRhpodAbv5Ffi8ZMtDx2vCj TQPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:mime-version:dkim-signature; bh=GGhTinRMD5FJR5wiodAv4hSIwCbxAKQqtwlMpzVtKqQ=; b=dZt1JlC8YDix9hNqUKhghknOaE694TpYcL3fENiotmz51qH5n1sM4uaahy0ztG8GSq QqGWYhQR61ycLU2OEbMeRv6CgUSQIAXtl54Uxi9QcLvPXtBIHbJyKSMlqqLSHosfDyF3 EHusb6zQIRONyG3a78A8kwc3hY/GJlEUeyHsCC1a7KCF29TbbW4CJ40ndiVj9FGlarlC 1ZOLAZegsY1Z6Byt+OvOU0e5Y+q5+g1m0bZrZwlem2I34GJ+iy7sl8ci8g9UuuClU8VM EjEounCFWboeSxBq+IRuMMH/hdUuVtICysJtPHwlttLUZ5Yac5dgETKWntHHf75IzjCT /XkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pathpartnertech.com header.s=google header.b=Lfqtb6IN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si5390283ile.120.2021.08.18.07.18.34; Wed, 18 Aug 2021 07:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pathpartnertech.com header.s=google header.b=Lfqtb6IN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239480AbhHROQW (ORCPT + 99 others); Wed, 18 Aug 2021 10:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239903AbhHROOr (ORCPT ); Wed, 18 Aug 2021 10:14:47 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24EB7C061149 for ; Wed, 18 Aug 2021 07:13:18 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id m24-20020a17090a7f98b0290178b1a81700so2394600pjl.4 for ; Wed, 18 Aug 2021 07:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pathpartnertech.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GGhTinRMD5FJR5wiodAv4hSIwCbxAKQqtwlMpzVtKqQ=; b=Lfqtb6IN6Ib19r/iUcf2SQg9N1/g2TAfC3nlRZhvrWt6RcwGa2BKOItn86A+eyYPCq 2itKSJf6IeYnIYTLxTGVKR76AhL6GvGJwO/cvjPCiKK8Ad4Z6kWYdQyilzWAraVzVjWg yhNXKWvNssWewoGwa0ZhH1FgSzI8qA/ppaQLnrg4HLW1oVM+7FrU5I6N+mG2Veam20xx YH17pMajTzjuCk0ZdYjs99mZdO3/zT0t0H9UXbJja+ddIkILDiOs3l1q23CG+rsDZtJB gDnu0NbPCU3Q4VR8j+b/acz6vtgOZanDzlUjbD0MtBRqg9l8SODEKVcnHSNwjCTRgNjj LBZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references; bh=GGhTinRMD5FJR5wiodAv4hSIwCbxAKQqtwlMpzVtKqQ=; b=qOwzXKj4VhvghvXlyTh5+36Abu+yvRXiKUOMbGDx9yvCITnzP1UemqKa3wkfiKbJr9 zEcrYDUZR8zRV3lBfa0zIW4eo6MYTDSuOkcZNcFKkDvll7UlAXOHt83LBrRqPKBX2p5j ZfKqalzeNxIVmb5JerXrG99We+tqavFyMa5u8gljuTEXf33yHI2L/1ctNKKnyrwrftIo y91cX1USnOBqFvGYWf1EtFrK7lhj7lyg53swgsjvShF8f7DccqYnE11ePPX0+0BVQUWY V+4eCyh72yj+gc3QB1pIc9NONXlafCOl8O1JPR4rvQFVR0HWXwc2uUJNaEmQOAFdWKu/ /cvw== MIME-Version: 1.0 X-Gm-Message-State: AOAM533lM3vBHtX4Y6TMMbTZyebu2mv5qhAAH9YOd74b67EoQcr4s6ov NDXVZDoSyqjkmcjwlSLP8rrVZUResnSxj288ReNv0PVy1THy/makFy+vpC+ZfA5+8HMwqaSIbMD TVkYM2lHojMJ5ZsxtHA== X-Received: by 2002:a17:902:8f90:b029:12d:1b48:efd8 with SMTP id z16-20020a1709028f90b029012d1b48efd8mr7664129plo.23.1629295997638; Wed, 18 Aug 2021 07:13:17 -0700 (PDT) Received: from localhost.localdomain ([49.207.214.181]) by smtp.gmail.com with ESMTPSA id e8sm8084343pgg.31.2021.08.18.07.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 07:13:16 -0700 (PDT) From: sidraya.bj@pathpartnertech.com To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: prashanth.ka@pathpartnertech.com, praneeth@ti.com, mchehab@kernel.org, linux-media@vger.kernel.org, praveen.ap@pathpartnertech.com, Sidraya Subject: [PATCH 25/30] v4l: videodev2: Add 10bit definitions for NV12 and NV16 color formats Date: Wed, 18 Aug 2021 19:40:32 +0530 Message-Id: <20210818141037.19990-26-sidraya.bj@pathpartnertech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210818141037.19990-1-sidraya.bj@pathpartnertech.com> References: <20210818141037.19990-1-sidraya.bj@pathpartnertech.com> Content-Type: text/plain; charset="US-ASCII" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sidraya The default color formats support only 8bit color depth. This patch adds 10bit definitions for NV12 and NV16. Signed-off-by: Sunita Nadampalli Signed-off-by: Sidraya --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 05d5db3d85e5..445458c15168 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1367,6 +1367,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_META_FMT_VIVID: descr = "Vivid Metadata"; break; case V4L2_META_FMT_RK_ISP1_PARAMS: descr = "Rockchip ISP1 3A Parameters"; break; case V4L2_META_FMT_RK_ISP1_STAT_3A: descr = "Rockchip ISP1 3A Statistics"; break; + case V4L2_PIX_FMT_TI1210: descr = "10-bit YUV 4:2:0 (NV12)"; break; + case V4L2_PIX_FMT_TI1610: descr = "10-bit YUV 4:2:2 (NV16)"; break; default: /* Compressed formats */ diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 9260791b8438..a71ffd686050 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -737,6 +737,8 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_SUNXI_TILED_NV12 v4l2_fourcc('S', 'T', '1', '2') /* Sunxi Tiled NV12 Format */ #define V4L2_PIX_FMT_CNF4 v4l2_fourcc('C', 'N', 'F', '4') /* Intel 4-bit packed depth confidence information */ #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') /* BTTV 8-bit dithered RGB */ +#define V4L2_PIX_FMT_TI1210 v4l2_fourcc('T', 'I', '1', '2') /* TI NV12 10-bit, two bytes per channel */ +#define V4L2_PIX_FMT_TI1610 v4l2_fourcc('T', 'I', '1', '6') /* TI NV16 10-bit, two bytes per channel */ /* 10bit raw bayer packed, 32 bytes for every 25 pixels, last LSB 6 bits unused */ #define V4L2_PIX_FMT_IPU3_SBGGR10 v4l2_fourcc('i', 'p', '3', 'b') /* IPU3 packed 10-bit BGGR bayer */ -- 2.17.1 -- This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.