Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp636432ima; Fri, 15 Mar 2019 10:30:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzUq2uFMZX9VCCLiijK832H/32Cc1gqflR9GuFmsRVNsMCFCMiPBm7dZFTtBE7ruKIww4P X-Received: by 2002:a63:c34a:: with SMTP id e10mr4554694pgd.194.1552671054391; Fri, 15 Mar 2019 10:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552671054; cv=none; d=google.com; s=arc-20160816; b=fKLiadumv7IWolaFkKmlEmytrwjNrumWgmrjwEZoFgxCFZIH4j+5x3AhJVkSQQ6FCF 23Z+lo6tPU4lINOsVM0AmIGUQhYDYAPbWcit79PRFYX7hZ7wZJh9IDHJQVHhhFQlDnDv VoMu7TrZxlfAmCesBbQxPmgN8y0zDPGLVs+rpGGm8UwcwGOYDTKXoplkmcGTiqYAxXsK fqUNtAFDhUoBgM5OQP2+j4IAqr0avPSg9YwYwnaiOzYL7fLtTLWwPOe70hbjtfjxEcG0 B6SoVzFdGTTgajHVuIuMsQrlgg0397ylY5ZxD8Vd4O0p5y7I8XGTitLm0izeIEMzE7gc T9wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=c1AmoQCVyoFzXQg+e3XkqZokhuB7gE/ntAhdWmMW5h0=; b=rIYajAqtNaHwoyIWNAN/HbaUurMxiBlnpU49xiUqQDGssF/QukXHqpUUEZSo+fvpiE Xi5ZmeDxlq8NadZq9VgL5/MRMEknVmrgC47TD2S51PGNrB3+UUaVBl+woCnNgavcI8gf 1DCqm7UXqO58o5o0zkzRooBDjrIg7nXYF6qNlqOMhBJpv+C1RrhJwqUiUAT7cTf72hOg ES+v/9gpVBpGOGGJyp/zFhKCqocEYPrq9OEp52zN767lYI9Sj4fhsvGEPs5PXTL37fTU u2n0UMrG/woGvM3nwabDxaCZpIcwUtH1RWrnchSUlXjJe5I4I05gSY6/TIMAB4xPVwgj UlIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a125si2509207pfb.46.2019.03.15.10.30.38; Fri, 15 Mar 2019 10:30:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729729AbfCORaC (ORCPT + 99 others); Fri, 15 Mar 2019 13:30:02 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:49266 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729517AbfCORaB (ORCPT ); Fri, 15 Mar 2019 13:30:01 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 23EC8281581 Subject: Re: [PATCH 00/16] media: vimc: Add support for multiplanar formats From: =?UTF-8?Q?Andr=c3=a9_Almeida?= To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, hverkuil@xs4all.nl, helen.koike@collabora.com, lucmaga@gmail.com, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20190315164359.626-1-andrealmeid@collabora.com> Message-ID: Date: Fri, 15 Mar 2019 14:29:03 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190315164359.626-1-andrealmeid@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/15/19 1:43 PM, André Almeida wrote: > Hello, > > This series implements support for multiplane pixel formats at vimc. > A lot of changes were required since vimc support for singleplane > was "hardcoded". The code has been adapted in order to support both > formats. When was possible, the functions were written generically, > avoiding functions for just one type of pixel format (single/multi) > and favoring code reuse. > > The debayer subdevice is the only one that currently doesn't supports > multiplanar formats. Documentation to each device will be made in a > future patch. > Forgot to mention that this patch series depends on this one: "[PATCH] media: vimc: propagate pixel format in the stream" > Thanks, > André > > André Almeida (16): > media: Move sp2mp functions to v4l2-common > media: vimc: Remove unnecessary stream check > media: vimc: Check if the stream is on using ved.stream > media: vimc: cap: Change vimc_cap_device.format type > media: vimc: Create multiplanar parameter > media: vimc: cap: Dynamically define stream pixelformat > media: vimc: cap: Add handler for singleplanar fmt ioctls > media: vimc: cap: Add handler for multiplanar fmt ioctls > media: vimc: cap: Add multiplanar formats > media: vimc: cap: Add multiplanar default format > media: vimc: cap: Allocate and verify mplanar buffers > media: vimc: Add and use new struct vimc_frame > media: vimc: sen: Add support for multiplanar formats > media: vimc: sca: Add support for multiplanar formats > media: vimc: cap: Add support for multiplanar formats > media: vimc: cap: Dynamically define device caps > > drivers/media/platform/vimc/vimc-capture.c | 310 +++++++++++++++--- > drivers/media/platform/vimc/vimc-common.c | 37 +++ > drivers/media/platform/vimc/vimc-common.h | 50 ++- > drivers/media/platform/vimc/vimc-core.c | 8 + > drivers/media/platform/vimc/vimc-debayer.c | 38 +-- > drivers/media/platform/vimc/vimc-scaler.c | 125 ++++--- > drivers/media/platform/vimc/vimc-sensor.c | 62 ++-- > drivers/media/platform/vimc/vimc-streamer.c | 2 +- > drivers/media/platform/vivid/vivid-vid-cap.c | 6 +- > .../media/platform/vivid/vivid-vid-common.c | 59 ---- > .../media/platform/vivid/vivid-vid-common.h | 9 - > drivers/media/platform/vivid/vivid-vid-out.c | 6 +- > drivers/media/v4l2-core/v4l2-common.c | 62 ++++ > include/media/v4l2-common.h | 31 ++ > 14 files changed, 580 insertions(+), 225 deletions(-) >