Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp526313ybt; Fri, 26 Jun 2020 05:28:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFwJqqBr6Z7FojcIQPm+b6iQLAeihYn85Rpq2kNVXH5s51obriYgIQ9o/xjItkX3hFCPTD X-Received: by 2002:a17:907:1059:: with SMTP id oy25mr2532271ejb.90.1593174503339; Fri, 26 Jun 2020 05:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593174503; cv=none; d=google.com; s=arc-20160816; b=azdM7TQ0pANy9TDxQJtoPHHkgQEV0fDkA+R2F4iwfepLj216e8OLvEuVDXA7475mDB 7ddXItMhfxAuqMgTmvp1sJicNHSimWwWjhdKQaQR38dYvITaebG/OIYwZlg36oZYwO1M t9BP2QCn90c0b3TahMwm/Q7HlViYHn/14wrJBqdFanHfsukq8qi2ejKtylDNuQk5MX5Y HubHzHPJWfw34aTbILxf/+m8qu2ZNGVdt+dq0972CD3W4Z3IN/7fRgNVZ2jiWnvcctMb wqDPTPUhSIuSo3Yql5zNrUa/Bj4Es1OHgR3eASui8MIvB9EOUnHmQ4FBkhB4Uqge/evA zXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=+RhNTdG3sZhXip9jhuj+0eaP8uV70LKtavyxI4TH1vI=; b=ZmqwRd/83IcJLB+JiE3GXrLuexovPvk5D//PVaNSKQH7k4ePVTLIn5BOP5pCZHRv5A N0tRxcSH0GRtd2QKqgwpftIvPh+g4wIHCcQmM51LdD1JeV60AunW0v87rFgeemJYpqEy 2GAMQZ1taabVfeGW4TZNN+MThjJSfXmjinWr0jK/MIaGQfgzTb5X1f67sQh4yiScCbpl fOKjTFmaeTUufvBRELDtk1p3qNsFeBd+AIRACfUyfsHGLBi4xxm5hqHo0LZYbgjKKmEv coeu6PleYgIxeHwYZlxPgtC9MGKMmbLuEdKQdZ4kYzQbNACQOUjEDKh1rJHmwPHo2AAQ 5Mpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=dyNgCud3; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy13si12191073edb.388.2020.06.26.05.27.58; Fri, 26 Jun 2020 05:28:21 -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=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=dyNgCud3; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbgFZLgi (ORCPT + 99 others); Fri, 26 Jun 2020 07:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgFZLgi (ORCPT ); Fri, 26 Jun 2020 07:36:38 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D900C08C5C1 for ; Fri, 26 Jun 2020 04:36:35 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 67so463902pfg.5 for ; Fri, 26 Jun 2020 04:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=+RhNTdG3sZhXip9jhuj+0eaP8uV70LKtavyxI4TH1vI=; b=dyNgCud3V6L2yvfZUK8udQwHpIeh1tUyQrpxnay7y7KstD9KK+rO5mmQ8ftPH01QlI TeVV4Qh7FDXXKMeTJx0sgBiiIWNFhuhwhb6k97TW42JoPjzKWhBKbJbyq9N+g+IeSVRc 6XXJ5A4gRBgPPmeuhtc42p/NEjiNgzG286jZu9DQohZysUoHvGLRi7gYMQe8eekIendB GmDqr12nJ2RHPuYD139/XH3+Wxqy9ITiCDLzOQM/LWKkw7fE9CTJaaPQZCWjUJ3xDtVz Ch0zqHs7yw0veD0+qJk5ANHaHiXvLRtFFq+mjRlcuCPXXVAVnXKGsTGauD69K3Xa8/fE QXJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+RhNTdG3sZhXip9jhuj+0eaP8uV70LKtavyxI4TH1vI=; b=TfyjjacWBwyG1zd8tTi+uw6qZ3Mj9Eca9YraXNOZzItcgMg9fBUpI17snj/FxvuJNZ Yx1zzJEuBAEB/CWAmmLKYBDytHhGG00fkSB8eBETZZHjHUKhyN5V1hOIFI0YrG0N/kro DFujfOTLzDROtMMVsXKRZIzaQl2ggX1AvsKaRB8qyBTaflhI+bj83c+jzjRh/oZHWU37 EgEG/5eWxGdKtnr1QEzulyEJPeIcyFpvDiU8AdpfscUXPxsipn8pp7sMcCXp4qv2GT25 XMw8J3q8l82RhYgP+1AHMhfqW25KMsnXZanO1jchJr9AnP4EzriK4zcsAWfPXS6IboQg Xpzw== X-Gm-Message-State: AOAM5330WNOsgDQ/XgFyVQNnEW5EfgOKbmK9P16irbDk+4u7DytuAKZr su0avDS0sZKo8yLWbzEC6S5M1A== X-Received: by 2002:aa7:9184:: with SMTP id x4mr2324308pfa.271.1593171394715; Fri, 26 Jun 2020 04:36:34 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id i191sm26561943pfe.99.2020.06.26.04.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 04:36:33 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , hverkuil@xs4all.nl Cc: Kaaira Gupta Subject: [PATCH v6 0/3] media: Add colors' order and other info over test image Date: Fri, 26 Jun 2020 17:06:15 +0530 Message-Id: <20200626113618.15280-1-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset aims to add a method to display the correct order of colors for a test image generated. It does so by adding a function which returns a string of correct order of the colors for a test pattern. It then adds a control in vimc which displays the string over test image. It also displays some other information like saturation, hue, contrast brightness and time since the stream started over test image generated by vimc. Changes since v5: In patch 2: - Add missing EXPORT_SYMBOL_GPL() In patch 3: - Renamed varaibles. - use u64 instead of int for getting current time in nanoseconds. - Use enum instead of numbers to describe the state of osd_mode control in code. Changes since v4: - Add another patch which changes char argument to const char in function tpg_gen_text() - Return const char * from function tpg_g_color_order() in patch 2 In 3rd patch: - Check font in probe() instead of s_stream() - Use dev_err instead of pr_err - Fix errors in commit message. - Base VIMC_CID_SHOW_INFO on VIVID_CID_OSD_TEXT_MODE Changes since v3: In 1st patch: -Improved formatting of returned string. In 2nd patch: - Add CID prefix in control name and change it to a more generic name. - Rename bool variable to a generic name. - Disable text rendering instead of stopping stream if no font found. - Display more info like VIVID in VIMC. Changes since v2: In 1st patch: - Create a 'define' to prevent repetition of the common color sequence string. - Use 'fallthrough' on case statement to prevent repetition of code. Changes since v1: - Divided the patch into two patches. - Returned NULL for patterns whose color order cannot be defined. (Reported-by: kernel test robot ) - Made separate switch cases for separate test patterns (Reported-by: kernel test robot ) - Renamed variables from camelcase to use '_' - prefixed 'media' to the patches. Kaaira Gupta (3): media: tpg: change char argument to const char media: tpg: Add function to return colors' order of test image media: vimc: Add a control to display info on test image drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 40 ++++++++++--- drivers/media/test-drivers/vimc/Kconfig | 2 + drivers/media/test-drivers/vimc/vimc-common.h | 1 + drivers/media/test-drivers/vimc/vimc-core.c | 10 ++++ drivers/media/test-drivers/vimc/vimc-sensor.c | 60 +++++++++++++++++++ include/media/tpg/v4l2-tpg.h | 3 +- 6 files changed, 108 insertions(+), 8 deletions(-) -- 2.17.1