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

2019-09-25 Thread Alexandre Courbot
ion deals with libcamera and is on Wednesday morning > > >>>>> from 9:00 to 13:00. > > >>>>> > > >>>>> Attendees for this session: > > >>>>> > > >>>>> Kieran Bingham > > >&g

Re: [ANN] Topics for a media summit in Lyon in October

2019-09-03 Thread Alexandre Courbot
around on the Monday and > mail the details of where to meet then. > > Confirmed attendees: > > Boris Brezillon > Alexandre Courbot > Nicolas Dufresne > Tomasz Figa > Ezequiel Garcia > Eugen Hristev > Paul Kocialkowski > Helen Koike > Jacopo Mondi >

Re: [PATCHv2 11/12] media: docs-rst: Document m2m stateless video decoder interface

2019-08-16 Thread Alexandre Courbot
On Fri, Aug 16, 2019 at 3:59 PM Hans Verkuil wrote: > > On 8/16/19 7:49 AM, Alexandre Courbot wrote: > > On Mon, Aug 12, 2019 at 8:07 PM Hans Verkuil > > wrote: > >> > >> From: Alexandre Courbot > >> > >> Documents the protocol that

Re: [ANN] Media summit in Lisbon at September

2019-08-15 Thread Alexandre Courbot
On Wed, Aug 14, 2019 at 6:40 PM Laurent Pinchart wrote: > > On Wed, Aug 14, 2019 at 05:35:48PM +0900, Alexandre Courbot wrote: > > That could be nice. Of course something more informal is also fine. > > Anyone else planning to attend? I suspect Laurent and people living in &

Re: [PATCHv2 11/12] media: docs-rst: Document m2m stateless video decoder interface

2019-08-15 Thread Alexandre Courbot
On Mon, Aug 12, 2019 at 8:07 PM Hans Verkuil wrote: > > From: Alexandre Courbot > > Documents the protocol that user-space should follow when > communicating with stateless video decoders. > > The stateless video decoding API makes use of the new request and tags >

Re: [PATCHv2 09/12] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-08-15 Thread Alexandre Courbot
On Thu, Aug 15, 2019 at 8:53 PM Hans Verkuil wrote: > > On 8/15/19 10:12 AM, Alexandre Courbot wrote: > > On Mon, Aug 12, 2019 at 8:06 PM Hans Verkuil > > wrote: > >> > >> This RFC patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

Re: [PATCHv2 11/12] media: docs-rst: Document m2m stateless video decoder interface

2019-08-15 Thread Alexandre Courbot
On Mon, Aug 12, 2019 at 8:07 PM Hans Verkuil wrote: > > From: Alexandre Courbot > > Documents the protocol that user-space should follow when > communicating with stateless video decoders. > > The stateless video decoding API makes use of the new request and tags >

Re: [PATCHv2 01/12] videodev2.h: add V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM

2019-08-15 Thread Alexandre Courbot
On Thu, Aug 15, 2019 at 5:11 PM Alexandre Courbot wrote: > > On Mon, Aug 12, 2019 at 8:05 PM Hans Verkuil wrote: > > > > Add an enum_fmt format flag to specifically tag coded formats where > > full bytestream parsing is supported by the device. > > > > Some st

Re: [PATCHv2 09/12] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-08-15 Thread Alexandre Courbot
On Mon, Aug 12, 2019 at 8:06 PM Hans Verkuil wrote: > > This RFC patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF flag. > It also adds a new V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability and > a v4l2_m2m_release_capture_buf() helper function. > > Drivers should set vb2_queue->

Re: [PATCHv2 10/12] videodev2.h: add V4L2_DEC_CMD_FLUSH

2019-08-15 Thread Alexandre Courbot
On Mon, Aug 12, 2019 at 8:07 PM Hans Verkuil wrote: > > Add this new V4L2_DEC_CMD_FLUSH decoder command and document it. > > Signed-off-by: Hans Verkuil > --- > Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | 11 ++- > Documentation/media/videodev2.h.rst.exceptions | 1 + > i

Re: [PATCHv2 01/12] videodev2.h: add V4L2_FMT_FLAG_CONTINUOUS_BYTESTREAM

2019-08-15 Thread Alexandre Courbot
erspace pre-parses the bytestream into > frames or fields (see the corresponding pixelformat descriptions > for details). Reviewed-by: Alexandre Courbot This patch does not update the pixelformat descriptions though, are we planning on doing this? > > If this flag is set, then this pr

Re: [PATCHv2 05/12] media: mtk-vcodec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION

2019-08-15 Thread Alexandre Courbot
ver in Chrome this seems to be correct. Reviewed-by: Alexandre Courbot > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 4 > drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/drivers/media/platform/m

Re: [PATCHv2 02/12] videodev2.h: add V4L2_FMT_FLAG_DYN_RESOLUTION

2019-08-15 Thread Alexandre Courbot
his can't apply to stateless decoders. Even though this can be inferred from reading the specs, I think it would be reasonable to explicitly mention it though. I also wonder, since this flag does not make sense for encoders, maybe we can use more precise vocabulary in the patch description and doc? I.e. s/codec/decoder. With that, Reviewed-by: Alexandre Courbot

Re: [ANN] Media summit in Lisbon at September

2019-08-14 Thread Alexandre Courbot
That could be nice. Of course something more informal is also fine. Anyone else planning to attend? I suspect Laurent and people living in France might be there? On Mon, Aug 12, 2019 at 4:28 PM Hans Verkuil wrote: > > On 8/12/19 6:00 AM, Alexandre Courbot wrote: > > On Thu, Aug 8,

Re: [ANN] Media summit in Lisbon at September

2019-08-11 Thread Alexandre Courbot
On Thu, Aug 8, 2019 at 9:55 PM Mauro Carvalho Chehab wrote: > > Em Thu, 1 Aug 2019 09:34:00 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Sun, 30 Jun 2019 13:44:04 -0300 > > Mauro Carvalho Chehab escreveu: > > > > > Hi all, > > > > > > We are organizing a media mini-summit in Lisbon to happen

Re: [RFC v2 4/4] media: platform: mtk-mdp3: Add Mediatek MDP3 driver

2019-06-19 Thread Alexandre Courbot
On Tue, Jun 4, 2019 at 8:20 PM Tomasz Figa wrote: > > + > > + ret = mdp_vpu_get_locked(mdp); > > + if (ret < 0) > > + goto err_load_vpu; > > This shouldn't happen in open(), but rather the latest possible point in > time. If one needs to keep the VPU running for the time of str

Re: [RFC v2 4/4] media: platform: mtk-mdp3: Add Mediatek MDP3 driver

2019-06-19 Thread Alexandre Courbot
Hi Daoyuan, sorry for having been so long to come back to this! I know you have another version prepared, but here are a few extra things that may need attention. On Thu, May 16, 2019 at 12:25 PM Daoyuan Huang wrote: > > From: daoyuan huang > > This patch adds driver for Media Data Path 3 (MDP3

Re: [RFC PATCH] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-05-16 Thread Alexandre Courbot
On Tue, May 14, 2019 at 7:59 PM Hans Verkuil wrote: > > On 5/14/19 12:01 PM, Alexandre Courbot wrote: > > From: Hans Verkuil > > Date: Mon, May 13, 2019 at 6:36 PM > > To: Linux Media Mailing List, Paul Kocialkowski, Tomasz Figa, Nicolas > > Dufresne, Alexandre Co

Re: [RFC PATCH] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-05-14 Thread Alexandre Courbot
From: Hans Verkuil Date: Mon, May 13, 2019 at 6:36 PM To: Linux Media Mailing List, Paul Kocialkowski, Tomasz Figa, Nicolas Dufresne, Alexandre Courbot, Boris Brezillon, Maxime Ripard, Thierry Reding > On 4/30/19 10:31 AM, Hans Verkuil wrote: > > This RFC patch adds suppor

Re: [PATCH 0/2] media: Introduce pixel format helpers

2019-04-01 Thread Alexandre Courbot
On Fri, Mar 29, 2019 at 3:08 AM Ezequiel Garcia wrote: > > Following the "Add MPEG-2 decoding to Rockchip VPU"[1], and given we want to > start > using the pixel format helpers rather soon, I've decided to submit them > separatedly. > > Aside from documenting the block_w and block_h, as suggeste

[PATCH v4] media: docs-rst: Document m2m stateless video decoder interface

2019-03-06 Thread Alexandre Courbot
short while. Signed-off-by: Alexandre Courbot --- Changes since v3: * Rephrased the conditions under which reference buffers must be queued back (hopefully) more accurately. Documentation/media/uapi/v4l/dev-mem2mem.rst | 5 + .../media/uapi/v4l/dev-stateless-decoder.rst | 386

[PATCH] media: mtk-vcodec: fix access to vb2_v4l2_buffer struct

2019-03-05 Thread Alexandre Courbot
ed. Fixes: 0650a91499e0 ("media: mtk-vcodec: Correct return type for mem2mem buffer helpers") Signed-off-by: Alexandre Courbot --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-vcodec

[PATCH] media: venus: core: fix max load for msm8996 and sdm845

2019-02-26 Thread Alexandre Courbot
5") Signed-off-by: Alexandre Courbot --- drivers/media/platform/qcom/venus/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 739366744e0f..435c7b68bbed 100644 --- a/drivers

Re: [PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2019-02-25 Thread Alexandre Courbot
09:59 +0100, Hans Verkuil wrote: > > > > On 2/13/19 6:58 AM, Alexandre Courbot wrote: > > > > > On Wed, Feb 13, 2019 at 2:53 PM Alexandre Courbot > > > > > wrote: > > > > > > [snip] > > > > > > +Buffers used as referenc

Re: [PATCHv2 3/3] vb2: add 'match' arg to vb2_find_buffer()

2019-02-13 Thread Alexandre Courbot
On Mon, Feb 4, 2019 at 7:11 PM wrote: > > From: Hans Verkuil > > When finding a buffer vb2_find_buffer() should also check if the I think this is about vb2_find_timestamp() rather than vb2_find_buffer()? (also in the mail title and in patch 0/3). > properties of the found buffer (i.e. number of

Re: [PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2019-02-12 Thread Alexandre Courbot
On Wed, Feb 13, 2019 at 2:53 PM Alexandre Courbot wrote: > [snip] > +Buffers used as reference frames can be queued back to the ``CAPTURE`` queue > as > +soon as all the frames they are affecting have been queued to the ``OUTPUT`` > +queue. The driver will refrain from using the r

[PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2019-02-12 Thread Alexandre Courbot
short while. Signed-off-by: Alexandre Courbot --- Changes since v2: * Go back to one frame worth of encoded data as the quantity to be passed per request, while leaving the door open to other quantities. * Remove requirement for the client to not queue CAPTURE buffers until all the frames

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Alexandre Courbot
On Wed, Jan 30, 2019 at 6:41 AM Nicolas Dufresne wrote: > > Le mardi 29 janvier 2019 à 16:44 +0900, Alexandre Courbot a écrit : > > On Fri, Jan 25, 2019 at 10:04 PM Paul Kocialkowski > > wrote: > > > Hi, > > > > > > On Thu, 2019-01-24 at 20:23

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-28 Thread Alexandre Courbot
On Fri, Jan 25, 2019 at 10:04 PM Paul Kocialkowski wrote: > > Hi, > > On Thu, 2019-01-24 at 20:23 +0800, Ayaka wrote: > > > > Sent from my iPad > > > > > On Jan 24, 2019, at 6:27 PM, Paul Kocialkowski > > > wrote: > > > > > > Hi, > > > > > > > On Thu, 2019-01-10 at 21:32 +0800, ayaka wrote: > >

Re: [PATCH v2 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-01-27 Thread Alexandre Courbot
On Thu, Nov 15, 2018 at 11:56 PM Maxime Ripard wrote: > > From: Pawel Osciak > > Stateless video codecs will require both the H264 metadata and slices in > order to be able to decode frames. > > This introduces the definitions for a new pixel format for H264 slices that > have been parsed, as wel

Re: [PATCH 00/10] Venus stateful Codec API

2019-01-27 Thread Alexandre Courbot
On Fri, Jan 25, 2019 at 7:35 PM Stanimir Varbanov wrote: > > Hi Alex, > > On 1/25/19 7:34 AM, Alexandre Courbot wrote: > > On Thu, Jan 24, 2019 at 7:13 PM Stanimir Varbanov > > wrote: > >> > >> Hi Alex, > >> > >> Thank you for

Re: [PATCHv2 3/3] Documentation/media: rename "Codec Interface"

2019-01-24 Thread Alexandre Courbot
porated Tomasz' comments. > > Note that I moved the section about codec controls to the end. The idea > is that when we add the codec specs this section is updated and the > links to those specs is added there. Makes sense indeed! Acked-by: Alexandre Courbot > --- > .../med

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 9:34 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the comments! > > On 1/24/19 10:44 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This refactored

Re: [PATCH 07/10] venus: helpers: add three more helper functions

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 5:54 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the review! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> This adds three mor

Re: [PATCH 09/10] venus: vdec: allow bigger sizeimage set by clients

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 7:05 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thanks for the comments! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov > > wrote: > >> > >> In most of the cases th

Re: [PATCH 00/10] Venus stateful Codec API

2019-01-24 Thread Alexandre Courbot
On Thu, Jan 24, 2019 at 7:13 PM Stanimir Varbanov wrote: > > Hi Alex, > > Thank you for review and valuable comments! > > On 1/24/19 10:43 AM, Alexandre Courbot wrote: > > Hi Stanimir, > > > > On Fri, Jan 18, 2019 at 1:20 AM Stanimir Varbanov > > wrot

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2019-01-24 Thread Alexandre Courbot
On Wed, Jan 23, 2019 at 7:42 PM Paul Kocialkowski wrote: > > Hi Alex, > > On Wed, 2019-01-23 at 18:43 +0900, Alexandre Courbot wrote: > > On Tue, Jan 22, 2019 at 7:10 PM Paul Kocialkowski > > wrote: > > > Hi, > > > > > > On Tue, 2019-01-22

Re: [PATCHv2] vb2: vb2_find_timestamp: drop restriction on buffer state

2019-01-24 Thread Alexandre Courbot
opy timestamps. > > This change allows for more efficient pipelining (i.e. you can use > a buffer for a reference frame even when it is queued). > > Signed-off-by: Hans Verkuil Reviewed-by: Alexandre Courbot

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-24 Thread Alexandre Courbot
On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > This refactored code for start/stop streaming vb2 operations and s/refactored/refactors? > adds a state machine handling similar to the one in stateful codec > API documentation. One major change is that now the HFI session is > starte

Re: [PATCH 07/10] venus: helpers: add three more helper functions

2019-01-24 Thread Alexandre Courbot
On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > This adds three more helper functions: > * for internal buffers reallocation, applicable when we are doing > dynamic resolution change > * for initial buffer processing of capture and output queue buffer > types > > All of them will be

Re: [PATCH 03/10] venus: helpers: export few helper functions

2019-01-24 Thread Alexandre Courbot
On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > Here we export few helper function to use them from decoder to > implement more granular control needed for stateful Codec API > compliance. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/helpers.c | 29

Re: [PATCH 08/10] venus: vdec_ctrls: get real minimum buffers for capture

2019-01-24 Thread Alexandre Courbot
On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > Until now we returned num_output_bufs set during reqbuf but > that could be wrong when we implement stateful Codec API. So > get the minimum buffers for capture from HFI. This is supposed > to be called after stream header parsing, i.e.

Re: [PATCH 00/10] Venus stateful Codec API

2019-01-24 Thread Alexandre Courbot
Hi Stanimir, On Fri, Jan 18, 2019 at 1:20 AM Stanimir Varbanov wrote: > > Hello, > > This aims to make Venus decoder compliant with stateful Codec API [1]. > The patches 1-9 are preparation for the cherry on the cake patch 10 > which implements the decoder state machine similar to the one in the

Re: [PATCH 09/10] venus: vdec: allow bigger sizeimage set by clients

2019-01-24 Thread Alexandre Courbot
On Fri, Jan 18, 2019 at 1:21 AM Stanimir Varbanov wrote: > > In most of the cases the client will know better what could be > the maximum size for compressed data buffers. Change the driver > to permit the user to set bigger size for the compressed buffer > but make reasonable sanitation. > > Sign

Re: [PATCH] vb2: vb2_find_timestamp: drop restriction on buffer state

2019-01-23 Thread Alexandre Courbot
On Wed, Jan 23, 2019 at 5:30 PM Hans Verkuil wrote: > > There really is no reason why vb2_find_timestamp can't just find > buffers in any state. Drop that part of the test. > > This also means that vb->timestamp should only be set to 0 when a > capture buffer is queued AND when the driver doesn't

Re: [PATCH] media: docs-rst: Document m2m stateless video decoder interface

2019-01-23 Thread Alexandre Courbot
s for this new version! I only have one comment left, see below. > > > > > > On Wed, 2018-12-05 at 19:01 +0900, Alexandre Courbot wrote: > > > > Documents the protocol that user-space should follow when > > > > communicating with stateless video decoders. >

Re: [PATCH 1/4] venus: firmware: check fw size against DT memory region size

2019-01-22 Thread Alexandre Courbot
S_FW_START_ADDR, mem_phys, mem_size, > IOMMU_READ | IOMMU_WRITE | IOMMU_PRIV); > @@ -151,7 +157,7 @@ static int venus_boot_no_tz(struct venus_core *core, > phys_addr_t mem_phys, > static int venus_shutdown_no_tz(struct venus_core *core) > { > struct iommu_domain *iommu; > - size_t unmapped; > + size_t unmapped, mapped = core->fw.mapped_mem_size; mapped should probably be const here. With these minor comments: Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot For the 4 patches in this series. I could see the improvement in decoder performance introduced by patches 2 and 3, thanks!

Re: [PATCH 2/4] venus: core: corect maximum hardware load for sdm845

2019-01-22 Thread Alexandre Courbot
On Wed, Jan 9, 2019 at 5:46 PM Stanimir Varbanov wrote: > > This corects maximum hardware load constant in per SoC resources s/corect/correct. Same typo is present in patch title. > for sdm845 aka Venus v4. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/core.c

Re: [PATCH 4/4] venus: helpers: drop setting of timestap invalid flag

2019-01-22 Thread Alexandre Courbot
On Wed, Jan 9, 2019 at 5:46 PM Stanimir Varbanov wrote: > > The zero timestap is really a valid so not sure why I discarded it. Fix s/timestap/timestamp, also in patch title. > that mistake by drop the code which checks for zero timestamp. s/drop/dropping > > Signed-off-by: Stanimir Varbanov

Re: [PATCH v2] media: docs-rst: Document m2m stateless video decoder interface

2019-01-22 Thread Alexandre Courbot
On Tue, Jan 22, 2019 at 5:06 PM Hans Verkuil wrote: > > On 01/22/2019 07:26 AM, Alexandre Courbot wrote: > > Documents the protocol that user-space should follow when > > communicating with stateless video decoders. > > > > The stateless video decoding API makes u

[PATCH v2] media: docs-rst: Document m2m stateless video decoder interface

2019-01-21 Thread Alexandre Courbot
short while. Signed-off-by: Alexandre Courbot --- Changes since v1: * Use timestamps instead of tags to reference frames, * Applied Paul's suggestions to not require one frame worth of data per OUTPUT buffer One of the effects of requiring sub-frame units to be submitted per request is tha

Re: Invite for IRC meeting: Re: [PATCHv4 01/10] videodev2.h: add tag support

2018-12-07 Thread Alexandre Courbot
Hi Hans, On Fri, Dec 7, 2018 at 12:08 AM Hans Verkuil wrote: > > Mauro raised a number of objections on irc regarding tags: > > https://linuxtv.org/irc/irclogger_log/media-maint?date=2018-12-06,Thu > > I would like to setup an irc meeting to discuss this and come to a > conclusion, since we need

[PATCH] media: docs-rst: Document m2m stateless video decoder interface

2018-12-05 Thread Alexandre Courbot
short while. Signed-off-by: Alexandre Courbot --- Removing the RFC flag this time. Changes since RFCv3: * Included Tomasz and Hans feedback, * Expanded the decoding section to better describe the use of requests, * Use the tags API. Documentation/media/uapi/v4l/dev-codec.rst| 5 + .../media

Re: [PATCH v3] media: venus: amend buffer size for bitstream plane

2018-11-27 Thread Alexandre Courbot
; a format for it and the format returned by it would have the sizeimage > >>> as hardcoded in the driver... > >> > >> ??? > >> > >> Userspace can change the sizeimage to whatever it wants before calling > >> CREATE_BUFS as long as it is >= the sizeimage of the current format. > >> > >> If we want to allow smaller sizes, then I think that would not be > >> unreasonable for stateful codecs. I actually think that drivers can > >> already do this in queue_setup(), but the spec would have to be updated > >> a bit. > > > > Existing applications rely on REQBUFS honoring the size they set in > > sizeimage, though... > > REQBUFS, yes. But not CREATE_BUFS. Which is why that ioctl was added in the > first place. > > However (and now I remember the real problem with CREATE_BUFS) the spec for > CREATE_BUFS says that it will not change the provided sizeimage value. So > any adjustments required due to specific alignment requirements won't be > applied, all CREATE_BUFS can do is to reject it. > > So what this boils down to is a change to the spec: > > For compressed formats (and only those!) userspace can set sizeimage to a > proposed value. The driver may either ignore it and just set its own value, > or modify it to satisfy HW requirements. The returned value will be used > by REQBUFS when it allocates buffers. > > I think this is reasonable, provided the spec is updated accordingly. > > As far as I can tell this shouldn't cause any backwards compatibility > problems, and it should be easy to test in v4l2-compliance. Do you mean that this patch is acceptable provided the stateful codec specification is updated accordingly? For our (Chromium) needs this seems to do the job, so: Tested-by: Alexandre Courbot Although I would like to also have the equivalent for the decoder's OUTPUT queue, either as a v4 or a follow-up patch.

Re: [PATCH] arm64: dts: sdm845: add video nodes

2018-11-26 Thread Alexandre Courbot
On Tue, Nov 20, 2018 at 7:08 PM Malathi Gottam wrote: > > This adds video nodes to sdm845 based on the examples > in the bindings. > > Signed-off-by: Malathi Gottam > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 34 ++ > 1 file changed, 34 insertions(+) > > diff -

Re: [PATCH] media: venus: fix reported size of 0-length buffers

2018-11-26 Thread Alexandre Courbot
On Fri, Nov 23, 2018 at 8:53 AM Nicolas Dufresne wrote: > > Le jeudi 22 novembre 2018 à 17:31 +0900, Alexandre Courbot a écrit : > > On Fri, Nov 16, 2018 at 1:49 AM Nicolas Dufresne > > wrote: > > > Le mercredi 14 novembre 2018 à 13:12 +0900, Alexandre Courbot a écr

Re: [PATCH v2] media: venus: amend buffer size for bitstream plane

2018-11-26 Thread Alexandre Courbot
Hi Malathi, On Tue, Nov 20, 2018 at 3:53 PM Malathi Gottam wrote: > > Accept the buffer size requested by client and compare it > against driver calculated size and set the maximum to > bitstream plane. > > Signed-off-by: Malathi Gottam > --- > drivers/media/platform/qcom/venus/venc.c | 13

Re: [PATCH] media: venus: fix reported size of 0-length buffers

2018-11-22 Thread Alexandre Courbot
On Fri, Nov 16, 2018 at 1:49 AM Nicolas Dufresne wrote: > > Le mercredi 14 novembre 2018 à 13:12 +0900, Alexandre Courbot a écrit : > > On Wed, Nov 14, 2018 at 3:54 AM Nicolas Dufresne > > wrote: > > > > > > > > > Le mar. 13 nov. 2018 04 h 30, Al

Re: [PATCHv2 0/9] vb2/cedrus: add tag support

2018-11-21 Thread Alexandre Courbot
tag feature. > v4l2-mem2mem: add v4l2_m2m_buf_copy_data helper function > vb2: add new supports_tags queue flag > vim2m: add tag support > vicodec: add tag support > cedrus: add tag support Good call on the v4l2_m2m_buf_copy_data() function! Reviewed-by: Alexandre Cou

Re: [PATCH] media: venus: fix reported size of 0-length buffers

2018-11-13 Thread Alexandre Courbot
On Wed, Nov 14, 2018 at 3:54 AM Nicolas Dufresne wrote: > > > > Le mar. 13 nov. 2018 04 h 30, Alexandre Courbot a > écrit : >> >> The last buffer is often signaled by an empty buffer with the >> V4L2_BUF_FLAG_LAST flag set. Such buffers were returned with the &

Re: [PATCH v1 5/5] media: venus: update number of bytes used field properly for EOS frames

2018-11-13 Thread Alexandre Courbot
On Mon, Nov 12, 2018 at 9:20 PM Stanimir Varbanov wrote: > > Hi Alex, > > On 11/12/18 10:12 AM, Alexandre Courbot wrote: > > Hi Stan, > > > > On Thu, Nov 8, 2018 at 7:16 PM Stanimir Varbanov > > wrote: > >> > >> Hi, > >> >

[PATCH] media: venus: fix reported size of 0-length buffers

2018-11-13 Thread Alexandre Courbot
reported used by the firmware. Signed-off-by: Alexandre Courbot --- drivers/media/platform/qcom/venus/vdec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 189ec975c6bb..282de21cf2e1

Re: [PATCH v2] media: venus: add support for selection rectangles

2018-11-12 Thread Alexandre Courbot
On Fri, Nov 9, 2018 at 7:31 PM Tomasz Figa wrote: > > Hi Malathi, > > On Fri, Nov 9, 2018 at 6:20 PM wrote: > > > > On 2018-11-09 07:56, Tomasz Figa wrote: > > > Hi Malathi, > > > > > > On Fri, Nov 9, 2018 at 4:39 PM Malathi Gottam > > > wrote: > > >> > > >> Handles target type crop by setting t

Re: [PATCH v1 5/5] media: venus: update number of bytes used field properly for EOS frames

2018-11-12 Thread Alexandre Courbot
Hi Stan, On Thu, Nov 8, 2018 at 7:16 PM Stanimir Varbanov wrote: > > Hi, > > On 9/29/18 3:00 PM, Srinu Gorle wrote: > > - In video decoder session, update number of bytes used for > > yuv buffers appropriately for EOS buffers. > > > > Signed-off-by: Srinu Gorle > > --- > > drivers/media/platf

Re: [RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-11 Thread Alexandre Courbot
Hi Hans, On Fri, Nov 9, 2018 at 6:56 PM Hans Verkuil wrote: > > As was discussed here (among other places): > > https://lkml.org/lkml/2018/10/19/440 > > using capture queue buffer indices to refer to reference frames is > not a good idea. A better idea is to use 'cookies' (a better name is > welc

Re: [RFC PATCH 1/5] videodev2.h: add cookie support

2018-11-11 Thread Alexandre Courbot
On Fri, Nov 9, 2018 at 6:56 PM Hans Verkuil wrote: > > From: Hans Verkuil > > Add support for 'cookies' to struct v4l2_buffer. These can be used to This "to" seems unneeded.

Re: [RFC] Stateless codecs: how to refer to reference frames

2018-10-26 Thread Alexandre Courbot
Hi Hans, On Wed, Oct 24, 2018 at 6:52 PM Hans Verkuil wrote: > > HI Alexandre, > > On 10/24/2018 10:16 AM, Alexandre Courbot wrote: > > Hi Hans, > > > > On Fri, Oct 19, 2018 at 6:40 PM Hans Verkuil wrote: > >> > >> From Alexandre's &#

Re: [RFC] Stateless codecs: how to refer to reference frames

2018-10-24 Thread Alexandre Courbot
Hi Hans, On Fri, Oct 19, 2018 at 6:40 PM Hans Verkuil wrote: > > From Alexandre's '[RFC PATCH v3] media: docs-rst: Document m2m stateless > video decoder interface': > > On 10/19/18 10:09, Alexandre Courbot wrote: > > Two points being currently dis

Re: [PATCH v2] media: venus: handle peak bitrate set property

2018-10-23 Thread Alexandre Courbot
am This seems to work, thanks! Tested-by: Alexandre Courbot > --- > drivers/media/platform/qcom/venus/hfi_cmds.c | 2 +- > drivers/media/platform/qcom/venus/hfi_venus.c | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom

Re: [RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-22 Thread Alexandre Courbot
On Mon, Oct 22, 2018 at 3:51 PM Tomasz Figa wrote: > > On Mon, Oct 22, 2018 at 3:39 PM Alexandre Courbot > wrote: > > > > On Mon, Oct 22, 2018 at 3:22 PM Tomasz Figa wrote: > > > > > > On Mon, Oct 22, 2018 at 3:05 PM Alexandre Courbot > > > wro

Re: [RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-21 Thread Alexandre Courbot
On Mon, Oct 22, 2018 at 3:22 PM Tomasz Figa wrote: > > On Mon, Oct 22, 2018 at 3:05 PM Alexandre Courbot > wrote: > > > > On Fri, Oct 19, 2018 at 5:44 PM Hans Verkuil wrote: > > > > > > On 10/19/18 10:09, Alexandre Courbot wrote: > > > >

Re: [PATCH] media: venus: add support for key frame

2018-10-21 Thread Alexandre Courbot
On Fri, Oct 12, 2018 at 5:10 PM Stanimir Varbanov wrote: > > > > On 10/12/2018 11:06 AM, Alexandre Courbot wrote: > > On Fri, Oct 12, 2018 at 4:37 PM Stanimir Varbanov > > wrote: > >> > >> Hi Alex, > >> > >> On 10/12/2018 08:26 AM, A

Re: [PATCH] media: venus: amend buffer size for bitstream plane

2018-10-21 Thread Alexandre Courbot
some issues we had with low-resolution VP8 encoding. Maybe this can be refined some more for higher resolutions, but the current version at least works. Tested-by: Alexandre Courbot > --- > drivers/media/platform/qcom/venus/helpers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-21 Thread Alexandre Courbot
On Fri, Oct 19, 2018 at 5:44 PM Hans Verkuil wrote: > > On 10/19/18 10:09, Alexandre Courbot wrote: > > Thanks everyone for the feedback on v2! I have not replied to all the > > individual emails but hope this v3 will address some of the problems > > raised and become a co

Re: [PATCH v12 0/5] Venus updates - PIL

2018-10-21 Thread Alexandre Courbot
t; drivers/media/platform/qcom/venus/hfi_venus.c | 13 +- > drivers/media/platform/qcom/venus/hfi_venus_io.h | 8 + > 7 files changed, 274 insertions(+), 43 deletions(-) The series: Reviewed-by: Alexandre Courbot Tested-by: Alexandre Courbot

[RFC PATCH v3] media: docs-rst: Document m2m stateless video decoder interface

2018-10-19 Thread Alexandre Courbot
where this scenario would not work? As usual, thanks for the insightful comments, and let's make sure we are ready for a fruitful discussion during the Summit! :) Signed-off-by: Alexandre Courbot --- .../media/uapi/v4l/dev-stateless-decoder.rst | 360 ++ Documentation/media/uapi/

Re: [PATCH] media: venus: add support for key frame

2018-10-12 Thread Alexandre Courbot
On Fri, Oct 12, 2018 at 4:37 PM Stanimir Varbanov wrote: > > Hi Alex, > > On 10/12/2018 08:26 AM, Alexandre Courbot wrote: > > On Tue, Oct 9, 2018 at 4:54 PM Malathi Gottam > > wrote: > >> > >> When client requests for a keyframe, set the property &

Re: [PATCH] media: venus: add support for key frame

2018-10-11 Thread Alexandre Courbot
On Tue, Oct 9, 2018 at 4:54 PM Malathi Gottam wrote: > > When client requests for a keyframe, set the property > to hardware to generate the sync frame. > > Signed-off-by: Malathi Gottam > --- > drivers/media/platform/qcom/venus/venc_ctrls.c | 13 + > 1 file changed, 13 insertions(+)

Re: [PATCH] media: venus: support VB2_USERPTR IO mode

2018-10-11 Thread Alexandre Courbot
On Thu, Oct 11, 2018 at 5:26 PM Stanimir Varbanov wrote: > > Hi Alex, > > On 10/11/2018 09:50 AM, Alexandre Courbot wrote: > > Please ignore this patch - I did not notice that a similar one has > > been sent before. > > The difference is that you made it for decoder

Re: [PATCH] media: venus: add support for USERPTR to queue

2018-10-10 Thread Alexandre Courbot
On Tue, Oct 9, 2018 at 4:52 PM Malathi Gottam wrote: > > Add USERPTR to queue access methods by adding this > support to io_modes on both the planes. > > Signed-off-by: Malathi Gottam Tested-by: Alexandre Courbot

Re: [PATCH] media: venus: support VB2_USERPTR IO mode

2018-10-10 Thread Alexandre Courbot
Please ignore this patch - I did not notice that a similar one has been sent before. >_< On Thu, Oct 11, 2018 at 3:46 PM Alexandre Courbot wrote: > > The venus codec can work just fine with USERPTR buffers. Enable this > possibility. > > Signed-off-by: Alexandre Courbot &

[PATCH] media: venus: support VB2_USERPTR IO mode

2018-10-10 Thread Alexandre Courbot
The venus codec can work just fine with USERPTR buffers. Enable this possibility. Signed-off-by: Alexandre Courbot --- drivers/media/platform/qcom/venus/vdec.c | 4 ++-- drivers/media/platform/qcom/venus/venc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

Re: [PATCH v2] venus: vdec: fix decoded data size

2018-10-10 Thread Alexandre Courbot
ge ensures that the bytesused is assigned > to actual payload size, when available. > > Signed-off-by: Vikash Garodia Tested-by: Alexandre Courbot

Re: [RFC] Request API and V4L2 capabilities

2018-08-21 Thread Alexandre Courbot
On Tue, Aug 21, 2018 at 6:15 PM Tomasz Figa wrote: > > On Wed, Aug 15, 2018 at 11:18 PM Hans Verkuil wrote: > > > > On 15/08/18 14:11, Mauro Carvalho Chehab wrote: > > > Em Sat, 4 Aug 2018 15:50:04 +0200 > > > Hans Verkuil escreveu: > > > > > >> Hi all, > > >> > > >> While the Request API patch

Re: [ANN v2] Complex Camera Workshop - Tokyo - Jun, 19

2018-06-07 Thread Alexandre Courbot
e to design a modular camera stack, and try to make > most components as platform-independent as possible. This should include: > > - the kernel drivers (V4L2-compliant and usable without any closed-source > userspace component); > - the 3A library > - any other component that could

Re: [PATCH v2 02/10] media-request: Add a request complete operation to allow m2m scheduling

2018-04-20 Thread Alexandre Courbot
On Fri, Apr 20, 2018 at 12:43 AM Paul Kocialkowski < paul.kocialkow...@bootlin.com> wrote: > When using the request API in the context of a m2m driver, the > operations that come with a m2m run scheduling call in their > (m2m-specific) ioctl handler are delayed until the request is queued > (for i

Re: [RFCv11 PATCH 00/29] Request API

2018-04-17 Thread Alexandre Courbot
On Tue, Apr 17, 2018 at 8:41 PM Paul Kocialkowski < paul.kocialkow...@bootlin.com> wrote: > Hi, > On Tue, 2018-04-17 at 06:17 +0000, Alexandre Courbot wrote: > > On Tue, Apr 17, 2018 at 3:12 PM Hans Verkuil > > wrote: > > > > > On 04/17/2018 06:33 AM,

Re: [RFCv11 PATCH 00/29] Request API

2018-04-16 Thread Alexandre Courbot
On Tue, Apr 17, 2018 at 3:12 PM Hans Verkuil wrote: > On 04/17/2018 06:33 AM, Alexandre Courbot wrote: > > On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > > > >> From: Hans Verkuil > > > >> Hi all, > > > >> This is a cleaned up ve

Re: [RFCv11 PATCH 25/29] media: vim2m: add media device

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > From: Alexandre Courbot > Request API requires a media node. Add one to the vim2m driver so we can > use requests with it. > This probably needs a bit more work to correctly represent m2m > hardware in the media topology.

Re: [RFCv11 PATCH 27/29] vim2m: support requests

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > From: Hans Verkuil > Add support for requests to vim2m. > Signed-off-by: Hans Verkuil > --- > drivers/media/platform/vim2m.c | 25 + > 1 file changed, 25 insertions(+) > diff --git a/drivers/media/platform/vim2m

Re: [RFCv11 PATCH 20/29] videobuf2-v4l2: integrate with media requests

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:21 PM Hans Verkuil wrote: > From: Hans Verkuil > This implements the V4L2 part of the request support. The main > change is that vb2_qbuf and vb2_prepare_buf now have a new > media_device pointer. This required changes to several drivers > that did not use the vb2_ioct

Re: [RFCv11 PATCH 07/29] media-request: add media_request_object_find

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:21 PM Hans Verkuil wrote: > From: Hans Verkuil > Add media_request_object_find to find a request object inside a > request based on ops and/or priv values. > Objects of the same type (vb2 buffer, control handler) will have > the same ops value. And objects that refer

Re: [RFCv11 PATCH 04/29] media-request: core request support

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:21 PM Hans Verkuil wrote: > From: Hans Verkuil > Implement the core of the media request processing. > Drivers can bind request objects to a request. These objects > can then be marked completed if the driver finished using them, > or just be unbound if the results do

Re: [RFCv11 PATCH 01/29] v4l2-device.h: always expose mdev

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:21 PM Hans Verkuil wrote: > From: Hans Verkuil > The mdev field is only present if CONFIG_MEDIA_CONTROLLER is set. > But since we will need to pass the media_device to vb2 snd the Typo: s/snd/and > control framework it is very convenient to just make this field > ava

Re: [RFCv11 PATCH 02/29] uapi/linux/media.h: add request API

2018-04-16 Thread Alexandre Courbot
river and to re-initialize the > request. > Signed-off-by: Hans Verkuil Like it that the API stays simple, with request ioctls tied to request FDs. Acked-by: Alexandre Courbot > --- > include/uapi/linux/media.h | 8 > 1 file changed, 8 insertions(+) > diff --g

Re: [RFCv11 PATCH 00/29] Request API

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > From: Hans Verkuil > Hi all, > This is a cleaned up version of the v10 series (never posted to > the list since it was messy). Hi Hans, It took me a while to test and review this, but finally have been able to do it. First the result of

Re: [RFCv11 PATCH 03/29] media-request: allocate media requests

2018-04-16 Thread Alexandre Courbot
On Mon, Apr 9, 2018 at 11:20 PM Hans Verkuil wrote: > From: Hans Verkuil > Add support for allocating a new request. This is only supported > if mdev->ops->req_queue is set, i.e. the driver indicates that it > supports queueing requests. > Signed-off-by: Hans Verkuil > --- > drivers/media/M

Re: [RFC v2 00/10] Preparing the request API

2018-03-25 Thread Alexandre Courbot
RR when polling the request in order to know that something went wrong. When this happens, an extra ioctl on the request fd (e.g. REQUEST_GET_ERROR) could be used to get more information about what has failed. Due to the extensible nature of requests, we should be careful to make this ioctl widely e

[PATCH v2] venus: vdec: fix format enumeration

2018-03-19 Thread Alexandre Courbot
this by moving the call to venus_helper_check_codec() into the loop, and keep enumerating when it fails. Fixes: 29f0133ec6 media: venus: use helper function to check supported codecs Signed-off-by: Alexandre Courbot --- drivers/media/platform/qcom/venus/vdec.c | 13 +++-- drivers/media

Re: [PATCH] venus: vdec: fix format enumeration

2018-03-19 Thread Alexandre Courbot
On Thu, Mar 15, 2018 at 6:52 PM, Stanimir Varbanov wrote: > Hi Alex, > > Thanks for the patch! > > On 13.03.2018 11:11, Alexandre Courbot wrote: >> find_format_by_index() stops enumerating formats as soon as the index >> matches, and returns NULL if venus_helper_c

  1   2   3   >