Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1591140ybt; Thu, 18 Jun 2020 12:18:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM9irGnmLAJxD0kL7GJtLdjhO0DjfQ/trQHrYfuIGCvbUKdq5fX43e/pY36Td+pc2lNZqO X-Received: by 2002:a50:fd05:: with SMTP id i5mr5415748eds.79.1592507891615; Thu, 18 Jun 2020 12:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592507891; cv=none; d=google.com; s=arc-20160816; b=uvQFyulSAYn6VkWtIn0IkccvHILR15xmYtJd2JsgAUWuEQz33+rSr3X4JrQJm0G2nC 6JOnG23y0LliLESt9qZhI9EMXMvIMALNgmiSz6WzNDWaXiojPV375KepW8Y7f7cjMsFR PMxFOATEIOTZLgEhn/7G/8X8HcIclI/KgoUzVHL6GcKIP3hEfuyQMeIGKcT30EppcF3B FO36uEQYhTZa4TzrEv6hD/u9rpfD3lOZorvYEe/xlqOnjWVp9YYMIn9yCFd/7FfyF02n igspgXJ0XjuTRiG+TfHRe9OoxcxPn/DGqQ4piKOr6w4YCjCzaTInpWFIcCtwAqUZqNZF b1VQ== 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=2jZnrCVzaH4szDYMWZ5PiS2L9jLICMdrrO0jRmkMbuE=; b=yyYKmafbA7aOaw5BeNmyEi9UEik3T5nTGxzeVAtTihq1NH5Ww5vQL+37YD/P6tg5Om yqNdzlQigflOH4ZrynTAP92F+ENrVaJncucQ1AuUV1PkeySpg8wO/Ro+5ajjAX+so5kp tXa7RTcx9iuIyynT8tohdQ7EKOAVT79sJRpcew2VJ6TsF6bt74nHnOVTG3NzMFU6GiEP xoxR1f6c9KjZ3UNj1OX3+pVc7ZV8d1L4DfprdJsTFVL0JKo2GPDWun+SblLBjPC/cJlg V7lyOiCfn/7ynOJQHEUcvb84Vb0aCURR4jZx2J2865rwUz3pBjMaMH+173PR918K6e7z vc+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b="CPLvpV/n"; 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 v26si2507846ejb.491.2020.06.18.12.17.49; Thu, 18 Jun 2020 12:18:11 -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="CPLvpV/n"; 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 S1729814AbgFRTF1 (ORCPT + 99 others); Thu, 18 Jun 2020 15:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbgFRTF0 (ORCPT ); Thu, 18 Jun 2020 15:05:26 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C8BCC06174E for ; Thu, 18 Jun 2020 12:05:26 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id p3so641733pgh.3 for ; Thu, 18 Jun 2020 12:05:26 -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=2jZnrCVzaH4szDYMWZ5PiS2L9jLICMdrrO0jRmkMbuE=; b=CPLvpV/nHRMd5eOVVx6yEomCe+h6phWOx0hUrK287aTOQ4NCN3OuHjSjXTrnLtM1NG ZNmj43L/btSpuRkxVLrwcoPJhDT6DlNgKeNk9KzCaF6J8RxoVr052N6HzJApH93Au9G6 kM2W0IJaMoGiybJmg9zBc2MVTZMk/YrsXst2M+6YtfMkIzY89Oq7+P5+59EaG1KuaezP anBG+aWlsnVOKOQfSt8Xym0FK/8nRmc35zBw2ZbTjgx/BLa/4nu1JqY1keD0s0pq6a35 VoXy6lhMMcVxgoy+7VA48BxXKNfGoXBeHN9r4N70xYJvDgQjEmknbn+Jkue9/MX/Wzxn TZ0g== 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=2jZnrCVzaH4szDYMWZ5PiS2L9jLICMdrrO0jRmkMbuE=; b=kynlP8BA/Rp/tjZgW/iw/sXKSlNZ8vgRj//h09RRyUtBhtBe6TG0zmTSupVdsMrt7E FwabxoChMYBg+dzyQ2wx65rMJpK8h7zWYPNddpnKOPLIUr8aSItN3bKRnd7kNPUPLF8e 8C9IwxOdxd/phFxeJOoS/I1pbWa4HIQ8NaJQnnclmgRnIhiLy1hSCCIjRx4HhI7vd7aE xaT8VpCEoTo3ukjjECg7DubSoYqZ/sHLSte10qkkaHLJQnpD3U0vybAJjTDtp3wukIi5 oZ05BF3x7sDZ6R1kiLN94mIUPABFc9NJFzRT6MN36IHm9Yl+GZlfBoqfkRJHQ9+7ET3+ te7w== X-Gm-Message-State: AOAM531FXzYzMXmjieiMi6br6xkPbTKMWVW1l9MeiS9V5eWx1fcRwpQ3 svsBymESJRCzsIdoPIK7K8AGMg== X-Received: by 2002:a63:f00d:: with SMTP id k13mr28265pgh.263.1592507125612; Thu, 18 Jun 2020 12:05:25 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id f14sm3178937pjq.36.2020.06.18.12.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 12:05:24 -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 v3 0/2] media: Add colors' order and other info over test image Date: Fri, 19 Jun 2020 00:35:04 +0530 Message-Id: <20200618190506.11892-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 and brightness over test image generated by vimc. 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 (2): 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 | 32 ++++++++++++- drivers/media/test-drivers/vimc/Kconfig | 2 + drivers/media/test-drivers/vimc/vimc-common.h | 1 + drivers/media/test-drivers/vimc/vimc-sensor.c | 47 ++++++++++++++++++- include/media/tpg/v4l2-tpg.h | 1 + 5 files changed, 80 insertions(+), 3 deletions(-) -- 2.17.1