From patchwork Thu Jun 18 19:05:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaaira Gupta X-Patchwork-Id: 209365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 063EDC433E1 for ; Thu, 18 Jun 2020 19:05:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD93020720 for ; Thu, 18 Jun 2020 19:05:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=es-iitr-ac-in.20150623.gappssmtp.com header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.b="CPLvpV/n" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729880AbgFRTF2 (ORCPT ); Thu, 18 Jun 2020 15:05:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbgFRTF1 (ORCPT ); Thu, 18 Jun 2020 15:05:27 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 381F0C06174E for ; Thu, 18 Jun 2020 12:05:27 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id b201so3240963pfb.0 for ; Thu, 18 Jun 2020 12:05:27 -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=PX4ebDv3TCy5MpHmaRal/waAqxh6q53MecCJ/An+IiV8ILQvUVSi06TTNtQJlX064c yQD+MbmxIWfQMl46L66CLmwR3jpiDRJEhbTuCHtqnO1qIgrQSMPPWvTpxfiOpVMTdZWK iQ2H4KQYFZ5Cu1cEQqMNo6RoZJhA4j+SJOiDrJQlYkw+wJq36fEvD52+q5XcQuNHfcER oSQHd0OLZVCmvN6dw/KkqjRGxyo0jGlM2OMHQc/VDRFwQ75F+CKx4LR/xjH7jRnshhSo HmajscAzvR1Dk+9oGhFEx2qzMRsWSFEQYseJozt9JSJiB22PLA7W0AhhJ8qw8wq8uDjq PGQw== X-Gm-Message-State: AOAM532eZ3p/fbT5EHdi7cMKIk5ywCFlU40Z5oyvD19JpDtLi+FuuTH0 fs52fRoekmfEVCPAXXaDUliqLA== X-Google-Smtp-Source: ABdhPJwrclI9E2eLwBymsK6MH6jXJMLAE2NmoLJRGgjCNjQ30pznuwQEWjA09xpUKNVz0v/CXw7nSA== 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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(-)