Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-08-05 Thread Ezequiel Garcia
Hi Tomasz, On Tue, 2020-08-04 at 15:35 +0200, Tomasz Figa wrote: > On Mon, Jul 27, 2020 at 9:43 PM Nicolas Dufresne > wrote: > > Le lundi 27 juillet 2020 à 20:10 +0200, Tomasz Figa a écrit : > > > On Mon, Jul 27, 2020 at 6:18 PM Ezequiel Garcia > > > wrote: >

Re: [PATCH 0/3] KT0913 FM/AM driver

2020-08-03 Thread Ezequiel Garcia
Hello Santiago, Nice work and welcome to the kernel community. On Sun, 2020-08-02 at 23:09 -0300, Santiago Hormazabal wrote: > media: adds support for kt0913 FM/AM tuner chip > I don't think this line above should be there. Also, this seems to be v2. You are missing a "PATCH v2" prefix on the

Re: [PATCH 06/10] media: uapi: h264: Cleanup DPB entry interface

2020-07-31 Thread Ezequiel Garcia
Hi Jonas, On Mon, 2020-07-27 at 23:39 +, Jonas Karlman wrote: > Hi, > > On 2020-07-24 21:08, Ezequiel Garcia wrote: > > Hello Jonas, > > > > On Wed, 2020-07-22 at 21:52 +, Jonas Karlman wrote: > > > On 2020-07-15 22:22, Ezequiel Garcia wrote: > &

Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-27 Thread Ezequiel Garcia
On Mon, 2020-07-27 at 16:52 +0200, Tomasz Figa wrote: > On Mon, Jul 27, 2020 at 4:39 PM Ezequiel Garcia > wrote: > > Hi Alexandre, > > > > Thanks a lot for the review. > > > > On Sat, 2020-07-25 at 23:34 +0900, Alexandre Courbot wrote: > > > On

Re: [PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS

2020-07-27 Thread Ezequiel Garcia
Hi Alexandre, Despite you've asked to ignore this review, let me comment on it. On Sat, 2020-07-25 at 23:45 +0900, Alexandre Courbot wrote: > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > wrote: > > Now that slice invariant parameters have been moved, > > the driv

Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-27 Thread Ezequiel Garcia
Hi Alexandre, Thanks a lot for the review. On Sat, 2020-07-25 at 23:34 +0900, Alexandre Courbot wrote: > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > wrote: > > The H.264 specification requires in its "Slice header semantics" > > section that the following val

Re: [PATCH v3 01/16] media: mtk-vcodec: abstract firmware interface

2020-07-27 Thread Ezequiel Garcia
On Mon, 27 Jul 2020 at 06:06, Alexandre Courbot wrote: > > On Thu, Jul 23, 2020 at 6:23 AM Ezequiel Garcia > wrote: > > > > On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot > > wrote: > > > > > > From: Yunfei Dong > > > > > > MT81

Re: [PATCH v3 01/16] media: mtk-vcodec: abstract firmware interface

2020-07-27 Thread Ezequiel Garcia
On Mon, 27 Jul 2020 at 11:24, Ezequiel Garcia wrote: > > On Mon, 27 Jul 2020 at 06:06, Alexandre Courbot wrote: > > > > On Thu, Jul 23, 2020 at 6:23 AM Ezequiel Garcia > > wrote: > > > > > > On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot >

Re: [PATCH v3 02/16] dt-bindings: media: mtk-vcodec: document SCP node

2020-07-27 Thread Ezequiel Garcia
On Mon, 27 Jul 2020 at 06:06, Alexandre Courbot wrote: > > On Thu, Jul 23, 2020 at 6:37 AM Ezequiel Garcia > wrote: > > > > On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot > > wrote: > > > > > > The mediatek codecs can use either the VPU or the SCP

Re: [PATCH v3 03/16] media: mtk-vcodec: add SCP firmware ops

2020-07-27 Thread Ezequiel Garcia
On Mon, 27 Jul 2020 at 06:06, Alexandre Courbot wrote: > > On Thu, Jul 23, 2020 at 6:40 AM Ezequiel Garcia > wrote: > > > > On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot > > wrote: > > > > > > From: Yunfei Dong > > > > >

Re: [PATCH v3 04/16] media: mtk-vcodec: venc: support SCP firmware

2020-07-27 Thread Ezequiel Garcia
. On Mon, 27 Jul 2020 at 06:06, Alexandre Courbot wrote: > > On Sat, Jul 25, 2020 at 6:13 AM Ezequiel Garcia > wrote: > > > > Hi Alexandre, > > > > I'm slowly making progress on the series. Here's some more comments. > > > > On Mon, 13 Jul

Re: [PATCH v2] media: cedrus: Add support for VP8 decoding

2020-07-26 Thread Ezequiel Garcia
On Sun, 26 Jul 2020 at 16:16, Jernej Škrabec wrote: > > Hi Ezequiel! > > Dne sobota, 25. julij 2020 ob 15:08:37 CEST je Ezequiel Garcia napisal(a): > > Hi Jernej, > > > > As you know, I'm not familiar with this hardware, > > but I've tried to take a detai

Re: [PATCH 00/10] media: mtk-vcodec: venc: support for MT8183

2020-07-26 Thread Ezequiel Garcia
+Enric Hello Alexandre, Thanks for the series. On Wed, 20 May 2020 at 05:27, Alexandre Courbot wrote: > > This series adds support for the encoder present on MT8183. It is very similar > to the one in MT8173, but with different capabilities and using a new firmware > interface (SCP, while

Re: [PATCH v3 07/16] media: mtk-vcodec: venc: specify supported formats per-chip

2020-07-26 Thread Ezequiel Garcia
Hi Alexandre, Last review on my side, this series looks mostly good. On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > Different chips have different supported bitrate ranges. Move the list s/bitrate ranges/formats > of supported formats to the platform data, and split the output and

Re: [PATCH v2] media: cedrus: Add support for VP8 decoding

2020-07-25 Thread Ezequiel Garcia
Hi Jernej, As you know, I'm not familiar with this hardware, but I've tried to take a detailed look anyway. The driver looks mostly good to me, I just have some minor comments. More importantly, seems the current uAPI control is supporting this platform nicely, which gives us some confidence to

Re: [PATCH v3 04/16] media: mtk-vcodec: venc: support SCP firmware

2020-07-24 Thread Ezequiel Garcia
Hi Alexandre, I'm slowly making progress on the series. Here's some more comments. On Mon, 13 Jul 2020 at 03:10, Alexandre Courbot wrote: > > From: Yunfei Dong > > Support the new extended firmware used by MT8183's encoder. > If you could add some more information about the MT8183 encoder and

Re: [PATCH 06/10] media: uapi: h264: Cleanup DPB entry interface

2020-07-24 Thread Ezequiel Garcia
Hello Jonas, On Wed, 2020-07-22 at 21:52 +, Jonas Karlman wrote: > On 2020-07-15 22:22, Ezequiel Garcia wrote: > > As discussed recently, the current interface for the > > Decoded Picture Buffer is not enough to properly > > support field coding. > > > &

Re: [PATCH v3 03/16] media: mtk-vcodec: add SCP firmware ops

2020-07-22 Thread Ezequiel Garcia
On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > From: Yunfei Dong > > Add support for communicating with the SCP firmware, which will be used > by MT8183. > > Signed-off-by: Yunfei Dong > [acourbot: refactor, cleanup and split] > Co-developed-by: Alexandre Courbot > Signed-off-by:

Re: [PATCH v3 02/16] dt-bindings: media: mtk-vcodec: document SCP node

2020-07-22 Thread Ezequiel Garcia
On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > The mediatek codecs can use either the VPU or the SCP as their interface > to firmware. Reflect this in the DT bindings. > > Signed-off-by: Alexandre Courbot > Acked-by: Tiffany Lin > --- >

Re: [PATCH v3 01/16] media: mtk-vcodec: abstract firmware interface

2020-07-22 Thread Ezequiel Garcia
On Mon, 13 Jul 2020 at 03:09, Alexandre Courbot wrote: > > From: Yunfei Dong > > MT8183's codec firwmare is run by a different remote processor from > MT8173. While the firmware interface is basically the same, the way to > invoke it differs. Abstract all firmware calls under a layer that will >

Re: [PATCH 06/10] media: uapi: h264: Cleanup DPB entry interface

2020-07-22 Thread Ezequiel Garcia
On Wed, 2020-07-22 at 18:09 +0200, Jernej Škrabec wrote: > Hi! > > Dne sreda, 15. julij 2020 ob 22:22:29 CEST je Ezequiel Garcia napisal(a): > > As discussed recently, the current interface for the > > Decoded Picture Buffer is not enough to properly > > support field c

Re: [PATCH 02/10] media: uapi: h264: Further clarify scaling lists order

2020-07-16 Thread Ezequiel Garcia
On Thu, 2020-07-16 at 09:23 +0200, Hans Verkuil wrote: > On 15/07/2020 22:22, Ezequiel Garcia wrote: > > Commit 0b0393d59eb4a ("media: uapi: h264: clarify > > expected scaling_list_4x4/8x8 order") improved the > > documentation on H264 scaling lists order

Re: [PATCH 03/10] media: uapi: h264: Split prediction weight parameters

2020-07-16 Thread Ezequiel Garcia
On Thu, 2020-07-16 at 09:26 +0200, Hans Verkuil wrote: > On 15/07/2020 22:22, Ezequiel Garcia wrote: > > The prediction weight parameters are only required under > > certain conditions, which depend on slice header parameters. > > > > The slice header syntax sp

[PATCH 10/10] media: rkvdec: Don't require unneeded H264_SLICE_PARAMS

2020-07-15 Thread Ezequiel Garcia
Now that slice invariant parameters have been moved, the driver no longer needs this control, so drop it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkvdec/rkvdec-h264.c | 4 drivers/staging/media/rkvdec/rkvdec.c | 5 - 2 files changed, 9 deletions(-) diff --git

[PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-15 Thread Ezequiel Garcia
x elements dec_ref_pic_marking() and those related to pic order count, remain invariant as well, and therefore, the fields dec_ref_pic_marking_bit_size and pic_order_cnt_bit_size are also common to all slices. Signed-off-by: Ezequiel Garcia Reviewed-by: Nicolas Dufresne --- .../media/v4l/ext-ctrls

[PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS

2020-07-15 Thread Ezequiel Garcia
Now that slice invariant parameters have been moved, the driver no longer needs this control, so drop it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c | 5 - drivers/staging/media/hantro/hantro_h264.c | 5 - drivers/staging/media/hantro/hantro_hw.h | 2

[PATCH 07/10] media: uapi: h264: Increase size of DPB entry pic_num

2020-07-15 Thread Ezequiel Garcia
to be padded to avoid a hole, which might be also useful to allow future uAPI extensions. Signed-off-by: Ezequiel Garcia --- .../userspace-api/media/v4l/ext-ctrls-codec.rst | 5 - drivers/media/v4l2-core/v4l2-ctrls.c| 13 + include/media/h264-ctrls.h

[PATCH 0/7] media: Clean H264 stateless uAPI

2020-07-15 Thread Ezequiel Garcia
. I'm adding here the change from Jernej, and a change from Philipp Zabel which apparently fell thru the cracks. Ezequiel Garcia (8): media: uapi: h264: Further clarify scaling lists order media: uapi: h264: Split prediction weight parameters media: uapi: h264: Increase size

[PATCH 06/10] media: uapi: h264: Cleanup DPB entry interface

2020-07-15 Thread Ezequiel Garcia
As discussed recently, the current interface for the Decoded Picture Buffer is not enough to properly support field coding. This commit introduces enough semantics to support frame and field coding, and to signal how DPB entries are "used for reference". Signed-off-by: Ezequ

[PATCH 04/10] media: uapi: h264: Clarify pic_order_cnt_bit_size field

2020-07-15 Thread Ezequiel Garcia
-by: Philipp Zabel [Ezequiel: rebase] Signed-off-by: Ezequiel Garcia Reviewed-by: Nicolas Dufresne --- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b

[PATCH 02/10] media: uapi: h264: Further clarify scaling lists order

2020-07-15 Thread Ezequiel Garcia
Commit 0b0393d59eb4a ("media: uapi: h264: clarify expected scaling_list_4x4/8x8 order") improved the documentation on H264 scaling lists order. This commit improves the documentation by clarifying that the lists themselves are expected in matrix order. Signed-off-by: Ezequ

[PATCH 05/10] media: uapi: h264: Increase size of 'first_mb_in_slice' field

2020-07-15 Thread Ezequiel Garcia
the H264 specification, 'first_mb_in_slice' can be up to PicSizeInMbs - 1, so increase the size of the field to 32-bits. Note that v4l2_ctrl_h264_slice_params struct will be modified in a follow-up commit, and so we defer its 64-bit padding. Signed-off-by: Ezequiel Garcia --- Documentation

[PATCH 03/10] media: uapi: h264: Split prediction weight parameters

2020-07-15 Thread Ezequiel Garcia
h264_pred_weight is 772 bytes. Signed-off-by: Ezequiel Garcia --- .../userspace-api/media/v4l/ext-ctrls-codec.rst| 14 +- drivers/media/v4l2-core/v4l2-ctrls.c | 6 ++ drivers/staging/media/sunxi/cedrus/cedrus.h| 1 + drivers/staging/media/sunxi/cedrus/cedr

[PATCH 01/10] media: uapi: h264: Update reference lists

2020-07-15 Thread Ezequiel Garcia
Dufresne [Ezequiel: Use a macro for the reference picture list length] Signed-off-by: Ezequiel Garcia --- .../media/v4l/ext-ctrls-codec.rst | 40 ++- .../staging/media/sunxi/cedrus/cedrus_h264.c | 6 +-- include/media/h264-ctrls.h| 20 +++--- 3 files

Re: [PATCH] media: cedrus: Propagate OUTPUT resolution to CAPTURE

2020-07-15 Thread Ezequiel Garcia
Nicolas Dufresne This looks correct. Reviewed-by: Ezequiel Garcia Thanks, Ezequiel > --- > drivers/staging/media/sunxi/cedrus/cedrus_video.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_vi

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-12 Thread Ezequiel Garcia
On Sat, 2020-07-11 at 10:21 +, Jonas Karlman wrote: > On 2020-07-10 23:49, Nicolas Dufresne wrote: > > Le vendredi 10 juillet 2020 à 09:25 -0300, Ezequiel Garcia a écrit : > > > +Nicolas > > > > > > On Fri, 2020-07-10 at 14:05 +0200, Boris Brezillon wrote:

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
+Nicolas On Fri, 2020-07-10 at 14:05 +0200, Boris Brezillon wrote: > On Fri, 10 Jul 2020 08:50:28 -0300 > Ezequiel Garcia wrote: > > > On Fri, 2020-07-10 at 10:13 +0200, Boris Brezillon wrote: > > > On Fri, 10 Jul 2020 01:21:07 -0300 > > > Ezequiel Garcia wr

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
On Fri, 2020-07-10 at 08:48 +, Jonas Karlman wrote: > On 2020-07-10 10:13, Boris Brezillon wrote: > > On Fri, 10 Jul 2020 01:21:07 -0300 > > Ezequiel Garcia wrote: > > > > > Hello Jonas, > > > > > > In the context of the uAPI cleanup, >

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
On Fri, 2020-07-10 at 10:13 +0200, Boris Brezillon wrote: > On Fri, 10 Jul 2020 01:21:07 -0300 > Ezequiel Garcia wrote: > > > Hello Jonas, > > > > In the context of the uAPI cleanup, > > I'm revisiting this patch. > > > > On Sun, 2019-09-01 at 12

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-09 Thread Ezequiel Garcia
Hello Jonas, In the context of the uAPI cleanup, I'm revisiting this patch. On Sun, 2019-09-01 at 12:45 +, Jonas Karlman wrote: > Add DPB entry flags to help indicate when a reference frame is a field picture > and how the DPB entry is referenced, top or bottom field or full frame. > >

[PATCH v2 2/2] hantro: h264: Refuse to decode unsupported bitstream

2020-07-09 Thread Ezequiel Garcia
is provided. Signed-off-by: Ezequiel Garcia Reviewed-by: Philipp Zabel Reviewed-by: Jonas Karlman --- drivers/staging/media/hantro/hantro_drv.c | 29 --- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging

[PATCH v2 1/2] rkvdec: h264: Refuse to decode unsupported bitstream

2020-07-09 Thread Ezequiel Garcia
. Signed-off-by: Ezequiel Garcia Reviewed-by: Jonas Karlman --- drivers/staging/media/rkvdec/rkvdec.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index 225eeca73356..accb4a902fdd 100644

[PATCH v2 0/2] media: hantro/rkvdec handle unsupported H.264 bitstreams

2020-07-09 Thread Ezequiel Garcia
-10 and High-422 bitstreams. This needs more work, so for now they are refused. The same approach can be use on Cedrus, but since I'm not very familiar there, I'll leave that to others. Applies on top of media master. v2: * Use p_new instead of p_cur. * s/PPS/SPS in commit log. Ezequiel Garcia (2

Re: [PATCH 1/3] media: uapi: h264: update reference lists

2020-07-08 Thread Ezequiel Garcia
Hello Jernej, I'd like to post a new H264 uAPI cleanup series soon, would you mind resending this, or otherwise do you mind if I include this patch in the series? See below for a tiny comment. On Thu, 4 Jun 2020 at 15:55, Jernej Skrabec wrote: > > When dealing with with interlaced frames,

Re: [PATCH v2 12/12] media: rkvdec: h264: Support profile and level controls

2020-07-07 Thread Ezequiel Garcia
IDEO_H264_LEVEL control, so that userspace can query the > driver for the list of supported profiles and level. > > Signed-off-by: Jonas Karlman > Reviewed-by: Ezequiel Garcia > --- > Changes in v2: > - Moved to end > - Collect r-b tag > --- > drivers/staging/media

Re: [PATCH v2 10/12] media: rkvdec: Lock capture pixel format in s_ctrl and s_fmt

2020-07-07 Thread Ezequiel Garcia
Hi Jonas, Nice work! On Mon, 2020-07-06 at 21:54 +, Jonas Karlman wrote: > Add an optional valid_fmt operation that should return the valid > pixelformat of CAPTURE buffers. > > This is used in next patch to ensure correct pixelformat is used for 10-bit > and 4:2:2 content. > >

Re: [PATCH 1/2] rkvdec: h264: Refuse to decode unsupported bitstream

2020-07-06 Thread Ezequiel Garcia
On Mon, 2020-07-06 at 09:45 +, Jonas Karlman wrote: > On 2020-06-26 19:11, Ezequiel Garcia wrote: > > The hardware only supports 4:2:2, 4:2:0 or 4:0:0 (monochrome), > > 8-bit or 10-bit depth content. > > > > Verify that the PPS refers to a supported bitstream,

Re: [PATCH 8/9] media: rkvdec: Add validate_fmt ops for pixelformat validation

2020-07-03 Thread Ezequiel Garcia
On Fri, 2020-07-03 at 19:17 +, Jonas Karlman wrote: > On 2020-07-03 16:58, Ezequiel Garcia wrote: > > On Fri, 2020-07-03 at 06:55 +, Jonas Karlman wrote: > > > On 2020-07-03 05:14, Ezequiel Garcia wrote: > > > > Hi Jonas, > > > > > > > &g

Re: [PATCH v2] clk: rockchip: use separate compatibles for rk3288w-cru

2020-07-03 Thread Ezequiel Garcia
due to re-using the main rockchip,rk3288-cru > compatible as entry point. > > The binding change actually describes the compatibles as one or the other > so adapt the code accordingly and add a real second entry-point for the > clock controller. > > Signed-off-by: Heiko Stuebn

Re: [PATCH] clk: rockchip: use separate compatibles for rk3288w-cru

2020-07-03 Thread Ezequiel Garcia
On Fri, 2020-07-03 at 17:28 +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > Commit 1627f683636d ("clk: rockchip: Handle clock tree for rk3288w variant") > added the check for rk3288w-specific clock-tree changes but in turn would > require a double-compatible due to re-using the main

Re: [PATCH v4 1/2] clk: rockchip: rk3288: Handle clock tree for rk3288w

2020-07-03 Thread Ezequiel Garcia
On Fri, 2020-07-03 at 16:11 +0200, Heiko Stuebner wrote: > Hi Jagan, > > Am Montag, 29. Juni 2020, 21:11:03 CEST schrieb Jagan Teki: > > On Tue, Jun 2, 2020 at 1:37 PM Mylène Josserand > > wrote: > > > The revision rk3288w has a different clock tree about "hclk_vio" > > > clock, according to the

Re: [PATCH 8/9] media: rkvdec: Add validate_fmt ops for pixelformat validation

2020-07-03 Thread Ezequiel Garcia
On Fri, 2020-07-03 at 06:55 +, Jonas Karlman wrote: > On 2020-07-03 05:14, Ezequiel Garcia wrote: > > Hi Jonas, > > > > Thanks for working on this. > > > > On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > > > Add an optional valid

Re: [PATCH 7/9] media: rkvdec: h264: Use bytesperline and buffer height to calculate stride

2020-07-02 Thread Ezequiel Garcia
Hi Jonas, On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > Use bytesperline and buffer height to calculate the strides configured. > > This does not really change anything other than ensuring the bytesperline > that is signaled to userspace matches was is configured in HW. > Are you

Re: [PATCH 8/9] media: rkvdec: Add validate_fmt ops for pixelformat validation

2020-07-02 Thread Ezequiel Garcia
Hi Jonas, Thanks for working on this. On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > Add an optional validate_fmt operation that is used to validate the > pixelformat of CAPTURE buffers. > > This is used in next patch to ensure correct pixelformat is used for 10-bit > and 4:2:2

Re: [PATCH 2/9] media: rkvdec: h264: Fix reference frame_num wrap for second field

2020-07-02 Thread Ezequiel Garcia
+Boris On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > When decoding the second field in a complementary field pair the second > field is sharing the same frame_num with the first field. > > Currently the frame_num for the first field is wrapped when it matches the > field being

Re: [PATCH 4/9] media: rkvdec: h264: Fix bit depth wrap in pps packet

2020-07-02 Thread Ezequiel Garcia
; > Correct this by not adding 8 to the luma and chroma bit depth value. > > Signed-off-by: Jonas Karlman Reviewed-by: Ezequiel Garcia Thanks! Ezequiel > --- > drivers/staging/media/rkvdec/rkvdec-h264.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff

Re: [PATCH 2/9] media: rkvdec: h264: Fix reference frame_num wrap for second field

2020-07-02 Thread Ezequiel Garcia
d being decoded, this cause issues to decode the second field in a > complementary field pair. > > Fix this by using inclusive comparison, less than or equal. > > Signed-off-by: Jonas Karlman Reviewed-by: Ezequiel Garcia Thanks! Ezequiel > --- > drivers/staging/media/rkvdec/rk

Re: [PATCH 1/9] media: rkvdec: h264: Support profile and level controls

2020-07-02 Thread Ezequiel Garcia
IDEO_H264_LEVEL control, so that userspace can query the > driver for the list of supported profiles and level. > > In current state only Baseline to High profile is supported by the driver. > > Signed-off-by: Jonas Karlman I think the patch is good so: Reviewed-by: Ezequiel Garci

Re: [PATCH 3/9] media: rkvdec: h264: Fix pic width and height in mbs

2020-07-02 Thread Ezequiel Garcia
On Wed, 2020-07-01 at 21:56 +, Jonas Karlman wrote: > The width and height in mbs is currently configured based on OUTPUT buffer > resolution, this works for frame pictures but can cause issues for field > pictures or when frmsize step_width is changed to support 10-bit decoding. > > When

[PATCH v2 4/6] hantro: Move hantro_enc_buf_finish to JPEG codec_ops.done

2020-07-01 Thread Ezequiel Garcia
sue is currently innocuous because an encoder context only supports JPEG. The codec_ops.done has an argument that codec-specific code shouldn't need, so drop that as well. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 7 drivers/staging/media/hantro/hantro_dr

[PATCH v2 2/6] hantro: h264: Rename scaling list handling function

2020-07-01 Thread Ezequiel Garcia
hich is cleaner. This is just a cosmetic cleanup. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers/staging/media/hantro/hantro_h264.c in

[PATCH v2 3/6] hantro: Rework how encoder and decoder are identified

2020-07-01 Thread Ezequiel Garcia
So far we've been using the .buf_finish hook to distinguish decoder from encoder. This is unnecessarily obfuscated. Moreover, we want to move the buf_finish, so use a cleaner scheme to distinguish the driver decoder/encoder type. Signed-off-by: Ezequiel Garcia --- v2: * Get rid of the helper

[PATCH v2 6/6] hantro: Make sure we don't use post-processor on an encoder

2020-07-01 Thread Ezequiel Garcia
Commit 986eee3a5234f fixed hantro_needs_postproc condition, but missed one case. Encoders don't have any post-processor hardware block, so also can't be disabled. Fix it. Fixes: 986eee3a5234f ("media: hantro: Prevent encoders from using post-processing") Signed-off-by: Ezequ

[PATCH v2 0/6] Hantro low-hanging cleanups

2020-07-01 Thread Ezequiel Garcia
Second iteration, just addressing Philipp's and Robin's feedback on patch 3. Thanks, Ezequiel Ezequiel Garcia (6): hantro: h264: Remove unused macro definition hantro: h264: Rename scaling list handling function hantro: Rework how encoder and decoder are identified hantro: Move

[PATCH v2 5/6] hantro: Remove unused bytesused argument

2020-07-01 Thread Ezequiel Garcia
The driver doesn't need the bytesused argument. For decoders, the plane bytesused is known and therefore, buf_prepare is used to set it. For encoders, it's handled by the codec_ops.done hook. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c| 9 - drivers

[PATCH v2 1/6] hantro: h264: Remove unused macro definition

2020-07-01 Thread Ezequiel Garcia
The generic H264 reference list builder moved all the users of this macro, but left the macro. Remove it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_h264.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers

Re: [RFC 6/7] media: uapi: h264: Clean slice invariants syntax elements

2020-06-26 Thread Ezequiel Garcia
On Thu, 2020-06-25 at 11:05 -0400, Nicolas Dufresne wrote: > Le mardi 23 juin 2020 à 15:28 -0300, Ezequiel Garcia a écrit : > > The H.264 specification requires in its "Slice header semantics" > > section that the following values shall be the

Re: [PATCH 3/6] hantro: Rework how encoder and decoder are identified

2020-06-26 Thread Ezequiel Garcia
On Fri, 2020-06-26 at 10:52 +0100, Robin Murphy wrote: > Hi Ezequiel, > > On 2020-06-25 17:35, Ezequiel Garcia wrote: > > So far we've been using the .buf_finish hook to distinguish > > decoder from encoder. This is unnecessarily obfuscated. > > > > Moreover, w

Re: [PATCH 3/6] hantro: Rework how encoder and decoder are identified

2020-06-26 Thread Ezequiel Garcia
On Fri, 2020-06-26 at 09:58 +0200, Philipp Zabel wrote: > Hi Ezequiel, > > On Thu, 2020-06-25 at 13:35 -0300, Ezequiel Garcia wrote: > > So far we've been using the .buf_finish hook to distinguish > > decoder from encoder. This is unnecessarily obfuscated. > > &g

[PATCH 2/2] hantro: h264: Refuse to decode unsupported bitstream

2020-06-26 Thread Ezequiel Garcia
is provided. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c | 29 --- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index 0db8ad455160..361ffaa821ef

[PATCH 0/2] media: hantro/rkvdec handle unsupported H.264 bitstreams

2020-06-26 Thread Ezequiel Garcia
-10 and High-422 bitstreams. This needs more work, so for now they are refused. The same approach can be use on Cedrus, but since I'm not very familiar there, I'll leave that to others. Applies on top of media master. Ezequiel Garcia (2): rkvdec: h264: Refuse to decode unsupported bitstream

[PATCH 1/2] rkvdec: h264: Refuse to decode unsupported bitstream

2020-06-26 Thread Ezequiel Garcia
. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkvdec/rkvdec.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index 225eeca73356..0f81b47792f6 100644 --- a/drivers/staging/media

Re: [RFC 7/7] media: uapi: make H264 stateless codec interface public

2020-06-25 Thread Ezequiel Garcia
On Thu, 2020-06-25 at 09:52 +0200, Hans Verkuil wrote: > On 23/06/2020 20:28, Ezequiel Garcia wrote: > > The H264 interface is now ready to be part of the official > > public API. > > > > In addition, sanitize header includes. > > > > Signed-off-by: Ezequi

Re: [RFC 2/7] fixup! media: uapi: h264: update reference lists

2020-06-25 Thread Ezequiel Garcia
(Adding Jernej, seems I haven't Cced him!) On Thu, 2020-06-25 at 10:53 -0400, Nicolas Dufresne wrote: > Le mardi 23 juin 2020 à 15:28 -0300, Ezequiel Garcia a écrit : > > Align v4l2_h264_reference to 32-bits, giving some room > > for future extensions. > > > > Sig

Re: [RFC 2/7] fixup! media: uapi: h264: update reference lists

2020-06-25 Thread Ezequiel Garcia
On Thu, 2020-06-25 at 17:30 +0200, Tomasz Figa wrote: > On Tue, Jun 23, 2020 at 8:29 PM Ezequiel Garcia > wrote: > > Align v4l2_h264_reference to 32-bits, giving some room > > for future extensions. > > > > Signed-off-by: Ezequiel Garcia > > --- > &

[PATCH 4/6] hantro: Move hantro_enc_buf_finish to JPEG codec_ops.done

2020-06-25 Thread Ezequiel Garcia
sue is currently innocuous because an encoder context only supports JPEG. The codec_ops.done has an argument that codec-specific code shouldn't need, so drop that as well. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 7 drivers/staging/media/hantro/hantro_dr

[PATCH 6/6] hantro: Make sure we don't use post-processor on an encoder

2020-06-25 Thread Ezequiel Garcia
Commit 986eee3a5234f fixed hantro_needs_postproc condition, but missed one case. Encoders don't have any post-processor hardware block, so also can't be disabled. Fix it. Fixes: 986eee3a5234f ("media: hantro: Prevent encoders from using post-processing") Signed-off-by: Ezequ

[PATCH 1/6] hantro: h264: Remove unused macro definition

2020-06-25 Thread Ezequiel Garcia
The generic H264 reference list builder moved all the users of this macro, but left the macro. Remove it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_h264.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers

[PATCH 5/6] hantro: Remove unused bytesused argument

2020-06-25 Thread Ezequiel Garcia
The driver doesn't need the bytesused argument. For decoders, the plane bytesused is known and therefore, buf_prepare is used to set it. For encoders, it's handled by the codec_ops.done hook. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c| 9 - drivers

[PATCH 2/6] hantro: h264: Rename scaling list handling function

2020-06-25 Thread Ezequiel Garcia
hich is cleaner. This is just a cosmetic cleanup. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_h264.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_h264.c b/drivers/staging/media/hantro/hantro_h264.c in

[PATCH 3/6] hantro: Rework how encoder and decoder are identified

2020-06-25 Thread Ezequiel Garcia
So far we've been using the .buf_finish hook to distinguish decoder from encoder. This is unnecessarily obfuscated. Moreover, we want to move the buf_finish, so use a cleaner scheme to distinguish the driver decoder/encoder type. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro

[PATCH 0/6] Hantro low-hanging cleanups

2020-06-25 Thread Ezequiel Garcia
Tackle some low hanging items. There's not much to say here, see the patches for details. We'll be soon posting more interesting changes :) Thanks, Ezequiel Ezequiel Garcia (6): hantro: h264: Remove unused macro definition hantro: h264: Rename scaling list handling function hantro: Rework

Re: [RFC 4/7] media: uapi: h264: increase size of fields

2020-06-25 Thread Ezequiel Garcia
On Thu, 2020-06-25 at 11:01 -0400, Nicolas Dufresne wrote: > Le mardi 23 juin 2020 à 15:28 -0300, Ezequiel Garcia a écrit : > > Slice header syntax element 'first_mb_in_slice' can point > > to the last macroblock, currently the field can only reference > > 65536 macroblocks

Re: [PATCH v2, 0/2] This patchset add Read-only(Ro) request for capture queue

2020-06-23 Thread Ezequiel Garcia
Hi Yunfei, Thanks for the patch. On Sun, 21 Jun 2020 at 22:55, Yunfei Dong wrote: > > User driver need to get HDR10+ information for each capture buffer; > For some encoder cases, user driver need to get encoded message for > each frame. So add support read-only(Ro) request for capture queue. >

[RFC 7/7] media: uapi: make H264 stateless codec interface public

2020-06-23 Thread Ezequiel Garcia
The H264 interface is now ready to be part of the official public API. In addition, sanitize header includes. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_hw.h | 5 ++--- include/media/v4l2-ctrls.h| 3 ++- include/media

[RFC 6/7] media: uapi: h264: Clean slice invariants syntax elements

2020-06-23 Thread Ezequiel Garcia
x elements dec_ref_pic_marking() and those related to pic order count, remain invariant as well, and therefore, the fields dec_ref_pic_marking_bit_size and pic_order_cnt_bit_size are also common to all slices. Signed-off-by: Ezequiel Garcia --- .../media/v4l/ext-ctrls-codec.rst

[RFC 1/7] media: uapi: h264: update reference lists

2020-06-23 Thread Ezequiel Garcia
From: Jernej Skrabec When dealing with with interlaced frames, reference lists must tell if each particular reference is meant for top or bottom field. This info is currently not provided at all in the H264 related controls. Make reference lists hold a structure which will also hold flags along

[RFC 3/7] media: uapi: h264: clarify pic_order_cnt_bit_size field

2020-06-23 Thread Ezequiel Garcia
-by: Philipp Zabel [Ezequiel: rebase] Signed-off-by: Ezequiel Garcia --- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst b/Documentation/userspace-api/media/v4l/ext

[RFC 0/7] media: Clean and make H264 stateless uAPI public

2020-06-23 Thread Ezequiel Garcia
git/+/refs/heads/master/media/gpu/v4l2/ Ezequiel Garcia (5): fixup! media: uapi: h264: update reference lists media: uapi: h264: increase size of fields media: uapi: h264: pad v4l2_ctrl_h264_pps to 64-bit media: uapi: h264: Clean slice invariants syntax elements media: uapi: make H264 state

[RFC 5/7] media: uapi: h264: pad v4l2_ctrl_h264_pps to 64-bit

2020-06-23 Thread Ezequiel Garcia
The struct does not contain 64-bit types, and therefore doesn't suffer from compatibility issues. However, having it aligned to 64-bits is cleaner and has the advantage of allowing future extensions. Signed-off-by: Ezequiel Garcia --- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst

[RFC 4/7] media: uapi: h264: increase size of fields

2020-06-23 Thread Ezequiel Garcia
'first_mb_in_slice' and 'pic_num'. The v4l2_h264_dpb_entry struct needs to be padded to avoid a hole, which will be useful to allow future uAPI extensions. Note that v4l2_ctrl_h264_slice_params struct will be modified in a follow-up commit, and so we defer its 64-bit padding. Signed-off-by: Ezequiel

[RFC 2/7] fixup! media: uapi: h264: update reference lists

2020-06-23 Thread Ezequiel Garcia
Align v4l2_h264_reference to 32-bits, giving some room for future extensions. Signed-off-by: Ezequiel Garcia --- .../userspace-api/media/v4l/ext-ctrls-codec.rst | 3 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 16 include/media/h264-ctrls.h

Re: [PATCH 1/5] media: videodev2: add Compressed Framebuffer pixel formats

2020-06-09 Thread Ezequiel Garcia
Adding Helen to the discussion. On Tue, 9 Jun 2020 at 04:43, Neil Armstrong wrote: > > Hi Nicolas, > > On 08/06/2020 20:59, Nicolas Dufresne wrote: > > Le lundi 08 juin 2020 à 16:43 +0200, Hans Verkuil a écrit : > >> On 08/06/2020 16:14, Neil Armstrong wrote: > >>> On 08/06/2020 11:26, Hans

Re: [PATCH 0/3] media: uapi: cedrus: Fix decoding interlaced H264 content

2020-06-06 Thread Ezequiel Garcia
Hi Jernej, On Thu, 4 Jun 2020 at 15:55, Jernej Skrabec wrote: > > Currently H264 interlaced content it's not properly decoded on Cedrus. > There are two reasons for this: > 1. slice parameters control doesn't provide enough information > 2. bug in frame list construction in Cedrus driver > > As

Re: [PATCH] media: cedrus: Add support for additional output formats

2020-06-05 Thread Ezequiel Garcia
Hello Jernej, Thanks for the patch. On Wed, 20 May 2020 at 14:12, Jernej Skrabec wrote: > > If VPU supports untiled output, it actually supports several different > YUV 4:2:0 layouts, namely NV12, NV21, YUV420 and YVU420. > > Add support for all of them. > > Signed-off-by: Jernej Skrabec > ---

Re: [PATCH] media: rkvdec: Fix H264 scaling list order

2020-06-01 Thread Ezequiel Garcia
t; + struct rkvdec_scaling_matrix scaling_list; > u32 rps[RKV_RPS_SIZE]; > struct rkvdec_sps_pps_packet param_set[256]; > u8 err_info[RKV_ERROR_INFO_SIZE]; In particular, I wonder if the error info stuff is really required. I guess we'll want to merge a simple fix, so no need to add

Re: [PATCH v2 2/3] media: rockchip: Introduce driver for Rockhip's camera interface

2020-05-31 Thread Ezequiel Garcia
Hi Maxime, Thanks for posting this patch. I think you can still improve it, but it's a neat first try! :-) On Fri, 29 May 2020 at 10:05, Maxime Chevallier wrote: > > Introduce a driver for the camera interface on some Rockchip platforms. > > This controller supports CSI2, Parallel and BT656

Re: [PATCH v4 1/3] media: rkvdec: Fix .buf_prepare

2020-05-20 Thread Ezequiel Garcia
On Wed, 2020-05-20 at 15:07 +0200, Hans Verkuil wrote: > On 18/05/2020 19:40, Ezequiel Garcia wrote: > > The driver should only set the payload on .buf_prepare > > if the buffer is CAPTURE type, or if an OUTPUT buffer > > has a zeroed payload. > > > > Fix it. >

[PATCH v4 1/3] media: rkvdec: Fix .buf_prepare

2020-05-18 Thread Ezequiel Garcia
The driver should only set the payload on .buf_prepare if the buffer is CAPTURE type, or if an OUTPUT buffer has a zeroed payload. Fix it. Fixes: cd33c830448ba ("media: rkvdec: Add the rkvdec driver") Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkvdec/rkvdec.c | 10 +++

Re: [PATCH 3/3] media: rkvdec: Add the VP9 backend

2020-05-18 Thread Ezequiel Garcia
On Mon, 2020-05-18 at 14:40 -0300, Ezequiel Garcia wrote: > [PATCH 3/3] media: rkvdec: Add the VP9 backend Oops, ^ should be v4 here. Thanks, Ezequiel

<    1   2   3   4   5   6   7   8   9   10   >