Re: [PATCH v5] [media] vimc: Virtual Media Controller core, capture and sensor

2016-09-04 Thread Helen Koike
18/2016 12:09 AM, Helen Koike wrote: From: Helen Fornazier First version of the Virtual Media Controller. Add a simple version of the core of the driver, the capture and sensor nodes in the topology, generating a grey image in a hardcoded format. Signed-off-by: Helen Koike +

[PATCH v6] [media] vimc: Virtual Media Controller core, capture and sensor

2016-09-04 Thread Helen Koike
From: Helen Fornazier First version of the Virtual Media Controller. Add a simple version of the core of the driver, the capture and sensor nodes in the topology, generating a grey image in a hardcoded format. Signed-off-by: Helen Koike --- Patch based in media/master tree, and available

[PATCH] [media] MAINTAINERS: add vimc entry

2016-09-12 Thread Helen Koike
Signed-off-by: Helen Koike --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0a16a82..43e0eb4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12540,6 +12540,14 @@ W: https://linuxtv.org S: Maintained F: drivers/media/platform

[PATCH] [v4l-utils] libv4l2subdev: Propagate format deep in the topology

2016-09-13 Thread Helen Koike
The format was only being propagated to the subdevices directly connected to the node being changed. Continue propagating the format to all the subdevices in the video pipe. Signed-off-by: Helen Koike --- Only one level of propagation was not that useful for me so I made it to completely

Question regarding optimizing pipeline in Vimc

2018-08-21 Thread Helen Koike
Hello, One of the discussions we had when developing Vimc, was regarding optimizing image generation. The ideia was to generate the images directly in the capture instead of propagating through the pipeline (to make things faster). But my question is: if this optimization is on, and if there is a

Re: Question regarding optimizing pipeline in Vimc

2018-08-29 Thread Helen Koike
On 8/22/18 3:49 AM, Hans Verkuil wrote: > On 08/22/2018 05:35 AM, Helen Koike wrote: >> Hello, >> >> One of the discussions we had when developing Vimc, was regarding >> optimizing image generation. >> The ideia was to generate the images directly in the

Re: [ANN] Draft Agenda for the media summit on Thursday Oct 25th in Edinburgh

2018-09-26 Thread Helen Koike
Hi Hans and Mauro, On 9/24/18 11:42 AM, Hans Verkuil wrote: > Hi all, > > We are organizing a media mini-summit on Thursday October 25th in > Edinburgh, Edinburgh International Conference Centre. > > If you plan to attend, please let Mauro know. It is open for all, but > we have a limited numbe

Re: [PATCH vicodec] media: pvrusb2: replace `printk` with `pr_*`

2018-10-07 Thread Helen Koike
Hi Dafna, Thanks for you patch. On 10/6/18 4:21 PM, Dafna Hirschfeld wrote: > Replace calls to `printk` with the appropriate `pr_*` > macro. > > Signed-off-by: Dafna Hirschfeld > --- > drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 8 > drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c |

Re: VIVID/VIMC and media fuzzing

2018-10-31 Thread Helen Koike
Hi Dmitry, On 10/31/18 7:46 AM, Hans Verkuil wrote: > On 10/30/2018 03:02 PM, Dmitry Vyukov wrote: >> Hello Helen and linux-media, >> >> I've attended your talk "Shifting Media App Development into High >> Gear" on OSS Summit last week and approached you with some questions >> if/how this can be u

Re: VIVID/VIMC and media fuzzing

2018-12-07 Thread Helen Koike
Hi Dmitry, On 10/31/18 9:49 AM, Helen Koike wrote: > Hi Dmitry, > > On 10/31/18 7:46 AM, Hans Verkuil wrote: >> On 10/30/2018 03:02 PM, Dmitry Vyukov wrote: >>> Hello Helen and linux-media, >>> >>> I've attended your talk "Shifting Media Ap

Re: [PATCH] media: vivid: Improve timestamping

2018-10-09 Thread Helen Koike
Hi Gabriel, Thanks for your patch. On 10/9/18 9:49 PM, Gabriel Francisco Mandaji wrote: > Simulate a more precise timestamp by calculating it based on the > current framerate. > > Signed-off-by: Gabriel Francisco Mandaji > --- > drivers/media/platform/vivid/vivid-core.h| 1 + > driver

Re: [PATCH 2/2] media: vimc: constify structures stored in fields of v4l2_subdev_ops structure

2018-11-01 Thread Helen Koike
; > Signed-off-by: Julia Lawall Acked-by: Helen Koike > > --- > drivers/media/platform/vimc/vimc-sensor.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/vimc/vimc-sensor.c > b/drivers/media/platform/vimc/vimc-sensor.c

[PATCH] media: vimc: fix start stream when link is disabled

2018-12-07 Thread Helen Koike
If link is disabled, media_entity_remote_pad returns NULL, causing a NULL pointer deference. Ignore links that are not enabled instead. Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vimc

[PATCH] media: vimc: add configfs API to configure the topology

2018-12-07 Thread Helen Koike
Add API to allow userspace to create any type of topology in vimc using basic system calls such as mkdir/rmdir/read/write. Signed-off-by: Helen Koike --- Hi, This patch introduces the configufs API for configuring the topology in vimc while it removes the hardcoded topology, so now, when you

Re: [PATCH] media: vimc: add configfs API to configure the topology

2018-12-10 Thread Helen Koike
Hi Hans, On 12/10/18 9:31 AM, Hans Verkuil wrote: > On 12/7/18 7:22 PM, Helen Koike wrote: >> Add API to allow userspace to create any type of topology in vimc using >> basic system calls such as mkdir/rmdir/read/write. >> >> Signed-off-by: Helen Koike >&g

Re: [Lkcamp][PATCH] media: vimc: Add vimc-streamer for stream control

2018-12-15 Thread Helen Koike
Hi Mauro, On 12/15/18 4:01 PM, Mauro Carvalho Chehab wrote: > Hi Lucas, > > > Em Sat, 15 Dec 2018 14:46:31 -0200 > Lucas A. M. Magalhães escreveu: > >> The previous code pipeline used the stack to walk on the graph and >> process a frame. Basically the vimc-sensor entity starts a thread that >

Re: [Lkcamp][PATCH] media: vimc: Add vimc-streamer for stream control

2018-12-15 Thread Helen Koike
Hi Lucas, Thank you for your patch, just some small comments below. On 12/15/18 2:46 PM, Lucas A. M. Magalhães wrote: > The previous code pipeline used the stack to walk on the graph and > process a frame. Basically the vimc-sensor entity starts a thread that > generates the frames and calls the

Re: [PATCH v4] media: vicodec: add support for CROP and COMPOSE selection

2018-12-26 Thread Helen Koike
Hi Dafna, Thanks for the patch, just a few comments, mostly regarding coding style, I'll let Hans review the major logic. On 12/23/18 6:36 PM, Dafna Hirschfeld wrote: > Add support for the selection api for the crop and compose targets. > The driver rounds up the coded width and height such that

Re: vimc kernel warning and kernel oops

2019-01-14 Thread Helen Koike
Hi Hans On 1/11/19 1:25 PM, Hans Verkuil wrote: > Hi Helen, > > I've started work to fix the last compliance failures with vimc so that > vimc can be used in regression tests. > > But I found a kernel warning and a kernel oops using vimc from our master > tree. > > To test, load vimc, then run

Re: [PATCH] vimc: add USERPTR support

2019-01-14 Thread Helen Koike
Hi Hans, Thanks for the patch. On 1/14/19 12:58 PM, Hans Verkuil wrote: > Add VB2_USERPTR to the vimc capture device. > > Signed-off-by: Hans Verkuil > --- > diff --git a/drivers/media/platform/vimc/vimc-capture.c > b/drivers/media/platform/vimc/vimc-capture.c > index 3f7e9ed56633..35c730f484a

Re: [PATCH v2] media: vimc: Add vimc-streamer for stream control

2019-01-15 Thread Helen Koike
Hi Lucas, Thank you for this patch, please see my comments below. On 1/14/19 10:19 PM, Lucas A. M. Magalhaes wrote: > Add a linear pipeline logic for the stream control. It's created by > walking backwards on the entity graph. When the stream starts it will > simply loop through the pipeline call

Re: [PATCH v3] media: vimc: Add vimc-streamer for stream control

2019-01-18 Thread Helen Koike
On 1/17/19 8:15 PM, Lucas A. M. Magalhaes wrote: > Add a linear pipeline logic for the stream control. It's created by > walking backwards on the entity graph. When the stream starts it will > simply loop through the pipeline calling the respective process_frame > function of each entity. > > F

Re: [PATCH v4] media: vimc: Add vimc-streamer for stream control

2019-01-22 Thread Helen Koike
function of each entity. > > Fixes: f2fe89061d797 ("vimc: Virtual Media Controller core, capture > and sensor") > Cc: sta...@vger.kernel.org # for v4.20 > Signed-off-by: Lucas A. M. Magalhães lgtm, thanks for the patch. Acked-by: Helen Koike Regards, Helen > --- >

Re: [PATCH v4 04/14] media: Move sp2mp functions to v4l2-common

2019-04-26 Thread Helen Koike
On 4/25/19 10:22 PM, André Almeida wrote: > Move sp2mp functions from vivid code to v4l2-common as it will be reused > by vimc driver for multiplanar support. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Changes in v4: none > > Changes in v3:

Re: [PATCH v4 05/14] media: vimc: cap: refactor singleplanar as a subset of multiplanar

2019-04-26 Thread Helen Koike
m_planes = 1), re-use the multiplanar code, and > transform them back to single planar. This is implemented with > v4l2_fmt_sp2mp_func(). > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Changes in v4: > - Add comment that was in wrong commit > - Check the ret

Re: [PATCH v4 08/14] media: vimc: cap: Add multiplanar default format

2019-04-26 Thread Helen Koike
> Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Change in v4: none > > Changes in v3: > - Fix typo on commit message > - Add `_sp` to single planar default format > - Modify identation > > Change in v2: > - Move here the default format is set to veri

Re: [PATCH v4 06/14] media: vimc: cap: Add handler for multiplanar fmt ioctls

2019-04-26 Thread Helen Koike
On 4/25/19 10:22 PM, André Almeida wrote: > Add functions to handle multiplanar format ioctls, calling > the generic format ioctls functions when possible. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Change in v4: > - Split from multiplanar par

Re: [PATCH v4 10/14] media: vimc: Add and use new struct vimc_frame

2019-04-26 Thread Helen Koike
bdevices work with > the frame. > > Change the return and argument type of process_frame from void* to > vimc_frame*. Change the frame in subdevices structs from u8* to vimc_frame. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Changes in v4: > - Remo

Re: [PATCH v4 11/14] media: vimc: sen: Add support for multiplanar formats

2019-04-26 Thread Helen Koike
On 4/25/19 10:22 PM, André Almeida wrote: > This commit adapts vimc-sensor to handle multiplanar pixel formats, > adapting the memory allocation and TPG configuration. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Changes in v4: > - Correct `unsigned

Re: [PATCH v4 12/14] media: vimc: sca: Add support for multiplanar formats

2019-04-26 Thread Helen Koike
On 4/25/19 10:22 PM, André Almeida wrote: > Change the scaling functions in order to scale planes. This change makes > easier to support multiplanar pixel formats. > > Signed-off-by: André Almeida > --- > Changes in v4: > - Rename `frame_size` to `plane_size` > - Correct `unsigned int ret` to

Re: [PATCH v4 14/14] media: vimc: Create multiplanar parameter

2019-04-26 Thread Helen Koike
CAP_VIDEO_CAPTURE and CAP_VIDEO_CAPTURE_MPLANAR at the > same time. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Change in v4: > - Split commit with "Add handler for multiplanar fmt ioctls" > > Change in v3: > - Squash commit with "Ad

Re: [PATCH v4 13/14] media: vimc: cap: Add support for multiplanar formats

2019-04-26 Thread Helen Koike
On 4/25/19 10:22 PM, André Almeida wrote: > Adapt vimc-capture to support multiplanar formats, copying > each plane to the correct buffer. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Change in v4: > - Move variables to inside the for loop > -

Re: [PATCH v5 12/14] media: vimc: sca: Add support for multiplanar formats

2019-04-26 Thread Helen Koike
On 4/26/19 4:51 PM, André Almeida wrote: > Change the scaling functions in order to scale planes. This change makes > easier to support multiplanar pixel formats. > > Signed-off-by: André Almeida Acked-by: Helen Koike > --- > Changes in v5: > - Remove bpp from vimc_s

Re: Linux 5.2 - vimc streaming fails with format error

2019-07-08 Thread Helen Koike
Hi Shuah, On 7/2/19 10:44 PM, shuah wrote: > On 5/23/19 9:07 AM, shuah wrote: >> Hi Hans and Helen, >> >> vimc streaming fails on Linux 5.2-rc1 >> >> vimc: format doesn't match in link Scaler->RGB/YUV Capture >> >> You can reproduce this easily with v4l2-ctl >> >> Streaming works fine on Linux 5.1

Re: [PATCH 3/3] vimc: Join pipeline if one already exists

2019-07-09 Thread Helen Koike
Hi Niklas, Thanks for the patch (and sorry for my late reply). On 5/17/19 10:07 PM, Niklas Söderlund wrote: > A sensor which is running is already part of a pipeline and trying to > start a new pipeline is not possible. This prevents two capture devices > connected to the same sensor from running

Re: [PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-25 Thread Helen Koike
On 7/25/19 3:41 PM, Mauro Carvalho Chehab wrote: > Em Fri, 26 Jul 2019 01:29:58 +0800 > Chen-Yu Tsai escreveu: > >> On Fri, Jul 26, 2019 at 1:06 AM Ezequiel Garcia >> wrote: >>> >>> On Thu, 2019-07-25 at 12:57 -0300, Mauro Carvalho Chehab wrote: Em Mon, 15 Jul 2019 18:23:16 -0300

Re: [PATCH] vimc: fill in bus_info in media_device_info

2019-02-07 Thread Helen Koike
On 1/30/19 11:43 AM, Hans Verkuil wrote: > It is good practice to fill in bus_info. > > Also just use 'platform:vimc' when filling in the bus_info in querycap: > the bus_info has nothing to do with the video device name. > > Signed-off-by: Hans Verkuil Acked-by

Re: [PATCH] vimc: add USERPTR support

2019-02-07 Thread Helen Koike
Hi Hans, Sorry about my delay. On 1/14/19 3:05 PM, Hans Verkuil wrote: > On 1/14/19 6:04 PM, Helen Koike wrote: >> Hi Hans, >> >> Thanks for the patch. >> >> On 1/14/19 12:58 PM, Hans Verkuil wrote: >>> Add VB2_USERPTR to the vimc capture device. >

[PATCH 0/8] media: vimc: remove media bus code limitation

2019-03-06 Thread Helen Koike
eries depends on "[PATCH] media: Introduce helpers to fill pixel format structs " Thanks, Helen Helen Koike (8): media: vimc: deb: fix default sink bayer format media: vimc: stream: fix thread state before sleep media: vimc: cap: fix step width/height in enum framesize media: v

[PATCH 1/8] media: vimc: deb: fix default sink bayer format

2019-03-06 Thread Helen Koike
The format of the sink pad should be a bayer mbus format. This fixes a kernel NULL pointer dereference error that was caused when the stream starts because the configured format was not found in the pixelmap table. Reported-by: Hans Verkuil Signed-off-by: Helen Koike --- drivers/media

[PATCH 2/8] media: vimc: stream: fix thread state before sleep

2019-03-06 Thread Helen Koike
in __might_sleep() call, as it's expecting the task to be in TASK_RUNNING state just before changing the state to a sleeping state. Reported-by: Hans Verkuil Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-streamer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 3/8] media: vimc: cap: fix step width/height in enum framesize

2019-03-06 Thread Helen Koike
The type V4L2_FRMSIZE_TYPE_CONTINUOUS expects a step of 1. This fixes v4l2-compliance test error: fail: v4l2-test-formats.cpp(184): invalid step_width/height for continuous framesize test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL Signed-off-by: Helen Koike --- drivers/media

[PATCH 4/8] media: v4l2-common: add bayer formats in v4l2_format_info

2019-03-06 Thread Helen Koike
Add bayer format information in struct v4l2_format_info table. Signed-off-by: Helen Koike --- drivers/media/v4l2-core/v4l2-common.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c index

[PATCH 6/8] media: vimc: stream: add docs to struct vimc_stream

2019-03-06 Thread Helen Koike
Add missing documentation for struct vimc_stream Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-streamer.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/media/platform/vimc/vimc-streamer.h b/drivers/media/platform/vimc/vimc-streamer.h index

[PATCH 5/8] media: vimc: stream: cleanup frame field from struct vimc_stream

2019-03-06 Thread Helen Koike
There is no need to have the frame field in the vimc_stream struct. Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-streamer.c | 10 -- drivers/media/platform/vimc/vimc-streamer.h | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/media

[PATCH 7/8] media: vimc: stream: init/terminate the first entity

2019-03-06 Thread Helen Koike
previous code was not a problem because the first entity is a video device and not a subdevice, but this patch prepares vimc to allow setting some configuration in the entity before calling s_stream. Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-streamer.c | 25

[PATCH 8/8] media: vimc: propagate pixel format in the stream

2019-03-06 Thread Helen Koike
in a given pixelformat. So we can allow almost any media bus format to be configured between pads, except for debayer that expects a media bus code of type bayer in the sink pad. Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-capture.c | 76 +++-- drivers/media/platform/vimc

Re: [PATCH v3 09/14] media: vimc: Propagate multiplanar state in the stream

2019-04-24 Thread Helen Koike
Hi André, thanks for the patch. On 4/24/19 10:56 AM, André Almeida wrote: > Add a multiplanar flag in vimc_stream in order to propagate the > state (singleplanar/multiplanar) to subdevices at the stream. This shouldn't be required as you are using multiplanar only between the subdevices :) Helen

Re: [PATCH v3 10/14] media: vimc: Add and use new struct vimc_frame

2019-04-24 Thread Helen Koike
Hi André On 4/24/19 10:56 AM, André Almeida wrote: > Struct vimc_frame is intended to hold metadata about a frame, > such as memory address of a plane, number of planes and size > of each plane, to better integrated with the multiplanar operations. > The struct can be also used with singleplanar f

Re: [PATCH v3 11/14] media: vimc: sen: Add support for multiplanar formats

2019-04-24 Thread Helen Koike
Hi André, On 4/24/19 10:56 AM, André Almeida wrote: > This commit adapts vimc-sensor to handle multiplanar pixel formats, > adapting the memory allocation and TPG configuration. > > Signed-off-by: André Almeida > --- > Changes in v3: > - Adapt to new vimc_frame > > Changes in v2: > - Fix alignm

Re: [PATCH v3 12/14] media: vimc: sca: Add support for multiplanar formats

2019-04-24 Thread Helen Koike
Hi André, Thanks for the patch, please see my comments below. On 4/24/19 10:56 AM, André Almeida wrote: > Change the scaling functions in order to scale planes. This change makes > easier to support multiplanar pixel formats. > > Signed-off-by: André Almeida > --- > Change in v3: > - Adapt to n

Re: [PATCH v3 13/14] media: vimc: cap: Add support for multiplanar formats

2019-04-24 Thread Helen Koike
Hi André, On 4/24/19 10:56 AM, André Almeida wrote: > Adapt vimc-capture to support multiplanar formats, copying > each plane to the correct buffer. > > Signed-off-by: André Almeida > --- > Change in v3: > - Adapt to new vimc_frame > > Change in v2: none > > drivers/media/platform/vimc/vimc-c

Re: [PATCH v3 14/14] media: vimc: Create multiplanar parameter and ioctls

2019-04-24 Thread Helen Koike
Hi André, Thanks for the patch, please see my comments below. On 4/24/19 10:56 AM, André Almeida wrote: > Create multiplanar kernel module parameter to define if the driver is > running in single planar or in multiplanar mode. Define the device > capabilities and format ioctls according to the mu

Re: [PATCH v3 05/14] media: vimc: cap: refactor singleplanar as a subset of multiplanar

2019-04-24 Thread Helen Koike
On 4/24/19 10:56 AM, André Almeida wrote: > Since multiplanar is a superset of single planar formats, instead of > having different implementations for them, treat all formats as > multiplanar. If we need to work with single planar formats, convert them to > multiplanar (with num_planes = 1), re

Re: [PATCH v3 14/14] media: vimc: Create multiplanar parameter and ioctls

2019-04-24 Thread Helen Koike
On 4/24/19 8:03 PM, André Almeida wrote: > Hello Helen, > > Thanks for your review! > > On 4/24/19 6:32 PM, Helen Koike wrote: >> Hi André, >> >> Thanks for the patch, please see my comments below. >> >> On 4/24/19 10:56 AM, André Almeida wrote: &

Re: [PATCH] media: vimc: upon streaming, check that the pipeline starts with a source entity

2019-08-30 Thread Helen Koike
Hi Dafna, Thanks for the patch. Just small comments below. On 8/29/19 8:00 AM, Dafna Hirschfeld wrote: > Userspace can disable links and create pipelines that > do not start with a source entity. Trying to stream > from such a pipeline should fail with -EPIPE > currently this is not handled and c

Re: [PATCH 0/4] Enable Hantro G1 post-processor

2019-09-16 Thread Helen Koike
Hello, On 9/12/19 8:35 AM, Ezequiel Garcia wrote: > On Thu, 2019-09-12 at 14:52 +0900, Tomasz Figa wrote: >> On Thu, Sep 12, 2019 at 4:49 AM Nicolas Dufresne >> wrote: >>> Le mercredi 11 septembre 2019 à 09:27 +0100, Ezequiel Garcia a écrit : On Mon, 2019-09-09 at 16:07 +0900, Tomasz Figa w

Re: [ANN] Media sessions in Lyon in October: libcamera

2019-09-24 Thread Helen Koike
;>>> Attendees for this session: >>>>>> >>>>>> Kieran Bingham >>>> >>>> Unfortunately I can no longer attend ELCE. >>>> >>>> (My second baby will be a bit too new for an extended stay away from home) >>>

[PATCH] v4l2-ctl: add missing subdev usage in --help-all

2019-09-25 Thread Helen Koike
--help-all option was not displaying options from --help-subdev. Add missing subdev_usage() in usage_all() to fix it. Signed-off-by: Helen Koike --- utils/v4l2-ctl/v4l2-ctl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp index

Re: [PATCH] media: vimc: Implement get/set selection

2019-09-25 Thread Helen Koike
+Hans +Shuah Hi Guilherme and Danilo, Thank you for the patch, please see my comments below. On 9/9/19 1:08 AM, Guilherme Alcarde Gallo wrote: > Add support for the scaler subdevice to respond VIDIOC_G_SELECTION and > VIDIOC_S_SELECTION ioctls with the following targets: > V4L2_SEL_TGT_COMPOSE_B

Re: [ANN] Media sessions in Lyon in October: codecs

2019-09-25 Thread Helen Koike
8:30 (tentative, might change) to 12:00 (we have to vacate the room at that >> time). >> >> Confirmed attendees for this session: >> >> Boris Brezillon >> Alexandre Courbot >> Nicolas Dufresne >> Tomasz Figa >> Ezequiel Garcia >> Daniel G

Re: [PATCH 1/3] media: vimc: initialize vim entity pointers to NULL

2019-10-01 Thread Helen Koike
Hi Dafna, On 10/1/19 1:50 PM, Dafna Hirschfeld wrote: > since NULL value for vimc entity pointer indicates > that entity creation failed and this is tested, the > pointers should be initialized to NULL. Nice catch :) > > Signed-off-by: Dafna Hirschfeld > --- > drivers/media/platform/vimc/vimc

Re: [PATCH 2/3] media: vimc: sensor: register subdevice only after initialization

2019-10-01 Thread Helen Koike
tration also frees vsen. > > Signed-off-by: Dafna Hirschfeld Acked-by: Helen Koike > --- > drivers/media/platform/vimc/vimc-sensor.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/media/platform/vimc/vimc-sensor.c >

Re: [PATCH 3/3] media: vimc: move media_entity_cleanup to release callbacks

2019-10-01 Thread Helen Koike
Hi Dafna, Thanks for your patch On 10/1/19 1:50 PM, Dafna Hirschfeld wrote: > according to the docs, this function must be called during > the cleanup phase after unregistering the entity. > > Signed-off-by: Dafna Hirschfeld Acked-by: Helen Koike I just have on

Re: [PATCH 1/3] media: vimc: initialize vim entity pointers to NULL

2019-10-01 Thread Helen Koike
On 10/1/19 2:25 PM, Andrzej Pietrasiewicz wrote: > Hi Dafna, hi Helen, > > W dniu 01.10.2019 o 19:19, Helen Koike pisze: >> Hi Dafna, >> >> On 10/1/19 1:50 PM, Dafna Hirschfeld wrote: >>> since NULL value for vimc entity pointer indicates >>> that e

Re: [PATCH] media: vimc: embed the pads of entities in the entities' structs

2019-10-01 Thread Helen Koike
Hi Dafna, Thanks for your patch, just some comments below. On 10/1/19 2:07 PM, Dafna Hirschfeld wrote: > since the pads array is of known small size, there is no reason to > allocate it separately. Instead, it is embedded in the entity struct. > This also conforms to the media controller doc: > '

Re: [PATCH v2 1/5] media: vimc: initialize vim entity pointers to NULL

2019-10-03 Thread Helen Koike
On 10/3/19 7:44 AM, Dafna Hirschfeld wrote: > since NULL value for vimc entity pointer indicates > that entity creation failed and this is tested, the > pointers should be initialized to NULL. > > Signed-off-by: Dafna Hirschfeld Acked-by: Helen Koike > --- > driver

Re: [PATCH v2 2/5] media: vimc: cleanup code that assigns entity in entities array

2019-10-03 Thread Helen Koike
ng like: "media: vimc: remove unnecessary var when adding entities" It makes clear what you are doing and where, what do you think? With this: Acked-by: Helen Koike > --- > drivers/media/platform/vimc/vimc-core.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(

Re: [PATCH v2 3/5] media: vimc: sensor: register subdevice only after initialization

2019-10-03 Thread Helen Koike
unregisters the subdevice > and then frees vsen, this cause double free since the release > callback that follows subdevice unregistration also frees vsen. > > Signed-off-by: Dafna Hirschfeld > Acked-by: Helen Koike > --- > drivers/media/platform/vimc/vimc-sensor.c | 20 +

Re: [PATCH v2 5/5] media: vimc: remove the helper function vimc_ent_sd_unregister

2019-10-03 Thread Helen Koike
On 10/3/19 7:44 AM, Dafna Hirschfeld wrote: > since this function only calls v4l2_device_unregister_subdev, > it is pointless. > > Signed-off-by: Dafna Hirschfeld Acked-by: Helen Koike > --- > drivers/media/platform/vimc/vimc-common.c | 5 - > drivers/med

Re: [PATCH -next] media: vimc: Fix error return code in vimc_register_devices()

2019-10-08 Thread Helen Koike
; Signed-off-by: Wei Yongjun Acked-by: Helen Koike Thank you Helen > --- > drivers/media/platform/vimc/vimc-core.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/vimc/vimc-core.c > b/drivers/media/platform/vimc/vimc-co

Re: [ANN v2] Media sessions in Lyon in October: libcamera

2019-10-20 Thread Helen Koike
t;> The second session deals with libcamera and is on Wednesday morning >> from 9:00 to 13:00. >> >> Attendees for this session: >> >> Nicolas Dufresne >> Tomasz Figa >> Ezequiel Garcia >> Dafna Hirschfeld > > I beliebe Dafna and I s

Re: [PATCH v2] [media] tpg: Export the tpg code from vivid as a module

2016-04-06 Thread Helen Koike
Hi On 01/04/2016 15:22, Mauro Carvalho Chehab wrote: Hi Helen, This is just a quick look on it. See below. Em Fri, 1 Apr 2016 14:18:13 -0300 Helen Mae Koike Fornazier escreveu: The test pattern generator will be used by other drivers as the virtual media controller (vimc) Signed-off-by: He

[GIT PULL] two patches: pipeline validation error code

2016-04-27 Thread Helen Koike
Hi Mauro, Please pull the following patches correcting the returned error codes and respective docs in the pipeline validation. Regards, Helen The following changes since commit 45c175c4ae9695d6d2f30a45ab7f3866cfac184b: [media] tw686x: avoid going past array (2016-04-26 06:38:53 -0300) ar

Re: [RFC PATCH v3 08/11] [media] vimc: Optimize frame generation through the pipe

2017-06-06 Thread Helen Koike
On 2017-06-02 11:58 PM, Helen Koike wrote: Add a parameter called vsen_tpg, if true then vimc will work as before: frames will be generated in the sensor nodes then propagated through the pipe and processed by each node until a capture node is reached. If vsen_tpg is false, then the frame is

Re: [PATCH RFC 1/2] [media] v4l2: add V4L2_INPUT_TYPE_DEFAULT

2017-06-06 Thread Helen Koike
Hi All, Just reviving this discussion On 2017-04-07 06:53 AM, Laurent Pinchart wrote: Hi Hans, On Friday 07 Apr 2017 11:46:48 Hans Verkuil wrote: On 04/04/2017 03:22 PM, Sakari Ailus wrote: On Mon, Apr 03, 2017 at 12:11:54PM -0300, Helen Koike wrote: On 2017-03-31 06:57 AM, Mauro Carvalho

Re: [RFC PATCH] [media] v4l2-subdev: check colorimetry in link validate

2017-06-06 Thread Helen Koike
Hi Sakari, Thanks for replying On 2017-05-31 03:31 AM, Sakari Ailus wrote: Hi Helen, On Tue, May 30, 2017 at 04:08:08PM -0300, Helen Koike wrote: colorspace, ycbcr_enc, quantization and xfer_func must match across the link. Check if they match in v4l2_subdev_link_validate_default unless

Re: [RFC PATCH] [media] v4l2-subdev: check colorimetry in link validate

2017-06-08 Thread Helen Koike
Hi On 2017-06-08 08:41 AM, Mauro Carvalho Chehab wrote: Em Tue, 6 Jun 2017 19:15:34 -0300 Helen Koike escreveu: Hi Sakari, Thanks for replying On 2017-05-31 03:31 AM, Sakari Ailus wrote: Hi Helen, On Tue, May 30, 2017 at 04:08:08PM -0300, Helen Koike wrote: colorspace, ycbcr_enc

[PATCH v2] [media] v4l2-subdev: check colorimetry in link validate

2017-06-08 Thread Helen Koike
colorspace, ycbcr_enc, quantization and xfer_func must match across the link. Check if they match in v4l2_subdev_link_validate_default unless they are set as _DEFAULT. Signed-off-by: Helen Koike --- Hi, As discussed previously, I added a warn message instead of returning error to give drivers

Re: [RFC PATCH v3 05/11] [media] vimc: common: Add vimc_link_validate

2017-06-12 Thread Helen Koike
Hi Hans, Thanks for your review, just a question below On 2017-06-12 06:50 AM, Hans Verkuil wrote: On 06/03/2017 04:58 AM, Helen Koike wrote: All links will be checked in the same way. Adding a helper function for that Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: common

Re: [RFC PATCH v3 08/11] [media] vimc: Optimize frame generation through the pipe

2017-06-12 Thread Helen Koike
Hi Hans, Thank you for your review On 2017-06-12 07:03 AM, Hans Verkuil wrote: On 06/03/2017 04:58 AM, Helen Koike wrote: Add a parameter called vsen_tpg, if true then vimc will work as before: frames will be generated in the sensor nodes then propagated through the pipe and processed by each

Re: [RFC PATCH v3 09/11] [media] vimc: Subdevices as modules

2017-06-12 Thread Helen Koike
Hi Hans, Thank you for your review. Please check my comments below On 2017-06-12 07:37 AM, Hans Verkuil wrote: On 06/03/2017 04:58 AM, Helen Koike wrote: Change the core structure for adding subdevices in the topology. Instead of calling the specific create function for each subdevice, inject

Re: [RFC PATCH v3 09/11] [media] vimc: Subdevices as modules

2017-06-13 Thread Helen Koike
Hi Hans, On 2017-06-13 03:49 AM, Hans Verkuil wrote: On 06/12/2017 10:35 PM, Helen Koike wrote: Hi Hans, Thank you for your review. Please check my comments below On 2017-06-12 07:37 AM, Hans Verkuil wrote: On 06/03/2017 04:58 AM, Helen Koike wrote: +static struct component_match

[PATCH v4 00/11] [media]: vimc: Virtual Media Control VPU's

2017-06-13 Thread Helen Koike
- remove vsd struct - add IS_SRC and IS_SINK macros - add sca_mult as a parameter of the module - check set_fmt default parameters for quantization, colorspace ... - add more dev_dbg Helen Koike (11): [media] vimc: sen: Integrate the tpg on the sensor [m

[PATCH v4 07/11] [media] vimc: sen: Support several image formats

2017-06-13 Thread Helen Koike
Allow user space to change the image format as the frame size, the media bus pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: sen: Support several image formats - use

[PATCH v4 09/11] [media] vimc: Subdevices as modules

2017-06-13 Thread Helen Koike
_device in the system. It also facilitates other implementations of different nodes without touching the core code and remove the need of a header file for each type of node. Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: Subdevices as modules - Rebase without [media] vimc

[PATCH v4 08/11] [media] vimc: cap: Support several image formats

2017-06-13 Thread Helen Koike
Allow user space to change the image format as the frame size, the pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: cap: Support several image formats - add vimc_colorimetry_clamp macro

[PATCH v4 06/11] [media] vimc: common: Add vimc_colorimetry_clamp

2017-06-13 Thread Helen Koike
Colorimetry value will always be checked in the same way. Adding a helper macro for that Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: common: Add vimc_colorimetry_clamp - this is a new patch in the series Changes in v3: None Changes in v2: None --- drivers/media

[PATCH v4 10/11] [media] vimc: deb: Add debayer filter

2017-06-13 Thread Helen Koike
Implement the debayer filter and integrate it with the core Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: deb: Add debayer filter - Rebase without [media] vimc: Optimize frame generation through pipe - use vimc_colorimetry_clamp - replace

[PATCH v4 11/11] [media] vimc: sca: Add scaler

2017-06-13 Thread Helen Koike
Implement scaler and integrated with the core Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: sca: Add scaler - use vimc_colorimetry_clamp - replace V4L2_COLORSPACE_SRGB by V4L2_COLORSPACE_DEFAULT in the default format struct - use struct

[PATCH v4 05/11] [media] vimc: common: Add vimc_link_validate

2017-06-13 Thread Helen Koike
All links will be checked in the same way. Adding a helper function for that Signed-off-by: Helen Koike --- Changes in v4: [media] vimc: common: Add vimc_link_validate - remove vimc_fmt_pix_to_mbus(), replaced by v4l2_fill_mbus_format() - remove EXPORT_SYMBOL

[PATCH v4 03/11] [media] vimc: common: Add vimc_ent_sd_* helper

2017-06-13 Thread Helen Koike
As all the subdevices in the topology will be initialized in the same way, to avoid code repetition the vimc_ent_sd_{register, unregister} helper functions were created Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: common: Add vimc_ent_sd_* helper

[PATCH v4 04/11] [media] vimc: common: Add vimc_pipeline_s_stream helper

2017-06-13 Thread Helen Koike
Move the vimc_cap_pipeline_s_stream from the vimc-cap.c to vimc-common.c as this core will be reused by other subdevices to activate the stream in their directly connected nodes Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: Add vimc_pipeline_s_stream in the

[PATCH v4 01/11] [media] vimc: sen: Integrate the tpg on the sensor

2017-06-13 Thread Helen Koike
Initialize the test pattern generator on the sensor Generate a colored bar image instead of a grey one Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: sen: Integrate the tpg on the sensor - Declare frame_size as a local variable - Set tpg frame

[PATCH v4 02/11] [media] vimc: Move common code from the core

2017-06-13 Thread Helen Koike
Remove helper functions from vimc-core and add it in vimc-common to clean up the core. Signed-off-by: Helen Koike --- Changes in v4: None Changes in v3: [media] vimc: Move common code from the core - This is a new patch in the series Changes in v2: None --- drivers/media/platform

[PATCH v2] [media] v4l2: add V4L2_CAP_IO_MC

2017-06-13 Thread Helen Koike
-by: Helen Koike --- Changes in v2:: - replace the type by capability - erase V4L2_INPUT_TYPE_DEFAULT - also consider output - plug helpers in the ops automatically so drivers doesn't need to set it by hand - update docs - commit messag

[PATCH v5 00/12] [media]: vimc: Virtual Media Control VPU's

2017-06-19 Thread Helen Koike
return EBUSY when trying to set the format while stream is on - remove vsd struct - add IS_SRC and IS_SINK macros - add sca_mult as a parameter of the module - check set_fmt default parameters for quantization, colorspace ... - add more dev_dbg Helen Ko

[PATCH v5 03/12] [media] vimc: common: Add vimc_ent_sd_* helper

2017-06-19 Thread Helen Koike
As all the subdevices in the topology will be initialized in the same way, to avoid code repetition the vimc_ent_sd_{register, unregister} helper functions were created Signed-off-by: Helen Koike --- Changes in v5: None Changes in v4: None Changes in v3: [media] vimc: common: Add vimc_ent_sd_

[PATCH v5 12/12] [media] vimc: sen: Declare vimc_sen_video_ops as static

2017-06-19 Thread Helen Koike
Declare vimc_sen_video_ops as static, remove warning from sparse tool Signed-off-by: Helen Koike --- Changes in v5: [media] vimc: sen: Declare vimc_sen_video_ops as static - This is a new patch in the series Changes in v4: None Changes in v3: None Changes in v2: None --- drivers

[PATCH v5 11/12] [media] vimc: sca: Add scaler

2017-06-19 Thread Helen Koike
Implement scaler and integrated with the core Signed-off-by: Helen Koike --- Changes in v5: [media] vimc: sca: Add scaler - declare vimc_sca_video_ops as static, remove sparse warning Changes in v4: [media] vimc: sca: Add scaler - use vimc_colorimetry_clamp - replace

  1   2   >