Re: [RFC] media: uapi: Add VP8 low-level decoder API compound controls.

2019-02-24 Thread Tomasz Figa
On Fri, Feb 15, 2019 at 9:06 AM Ezequiel Garcia wrote: > > On Wed, 2019-02-13 at 21:35 -0500, Nicolas Dufresne wrote: > > Le mer. 13 févr. 2019 à 16:23, Ezequiel Garcia > > a écrit : > > > Hi, > > > > > > On Wed, 2019-02-13 at 18:15 -0300, Ezequiel Garcia wrote: [snip] > > > > + __u8 version;

cron job: media_tree daily build: OK

2019-02-24 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Mon Feb 25 05:00:11 CET 2019 media-tree git hash:9fabe1d108ca4755a880de43f751f1c054f8894d media_build git

Re: [PATCH v3 2/3] [media] allegro: add Allegro DVT video IP core driver

2019-02-24 Thread kbuild test robot
Hi Michael, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v5.0-rc4 next-20190222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-

[PATCH v3 00/18] add support to stateless decoder

2019-02-24 Thread Dafna Hirschfeld
main changes from v2: - fixes according to the review. - changes in 'copy_cap_to_ref' and to support NV24/42 types - changes in the codec-fwht.c functions to support reference frame which is not internal so stride and chroma_stride for the refernce frame should be function parameters. - patches 1,2

[PATCH v3 15/18] media: vicodec: Introducing stateless fwht defs and structs

2019-02-24 Thread Dafna Hirschfeld
Add structs and definitions needed to implement stateless decoder for fwht. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 15 +--- drivers/media/v4l2-core/v4l2-ctrls.c | 10 ++ include/media/fwht-ctrls.h| 35 +

[PATCH v3 16/18] media: vicodec: Register another node for stateless decoder

2019-02-24 Thread Dafna Hirschfeld
Add stateless decoder instance field to the dev struct and register another node for the statelsess decoder. The stateless API for the node will be implemented in further patches. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 46 +-- 1 file c

[PATCH v3 07/18] media: vicodec: bugfix - call v4l2_m2m_buf_copy_metadata also if decoding fails

2019-02-24 Thread Dafna Hirschfeld
The function 'v4l2_m2m_buf_copy_metadata' should be called even if decoding/encoding ends with status VB2_BUF_STATE_ERROR, so that the metadata is copied from the source buffer to the dest buffer. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 17 +---

[PATCH v3 08/18] media: vicodec: bugfix: free compressed_frame upon device release

2019-02-24 Thread Dafna Hirschfeld
Free compressed_frame buffer upon device release. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index cd08f0cd4cf

[PATCH v3 14/18] media: vicodec: add struct for encoder/decoder instance

2019-02-24 Thread Dafna Hirschfeld
Add struct 'vicodec_dev_instance' for the fields in vicodec_dev that have have both decoder and encoder versions. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 194 +- 1 file changed, 92 insertions(+), 102 deletions(-) diff --git a/drivers/m

[PATCH v3 12/18] media: vicodec: Validate version dependent header values in a separate function

2019-02-24 Thread Dafna Hirschfeld
Move the code that validates version dependent header values to a separate function 'validate_by_version' Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 31 --- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/drivers/media/plat

[PATCH v3 13/18] media: vicodec: rename v4l2_fwht_default_fmt to v4l2_fwht_find_nth_fmt

2019-02-24 Thread Dafna Hirschfeld
Rename 'v4l2_fwht_default_fmt' to 'v4l2_fwht_find_nth_fmt' and add a function 'v4l2_fwht_validate_fmt' to check if a format info matches the parameters. This function will also be used to validate the stateless params when adding support for stateless codecs. Signed-off-by: Dafna Hirschfeld ---

[PATCH v3 09/18] media: vicodec: Move raw frame preparation code to a function

2019-02-24 Thread Dafna Hirschfeld
Introduce 'prepare_raw_frame' function that fills the values of a raw frame struct according to the format. Signed-off-by: Dafna Hirschfeld --- .../media/platform/vicodec/codec-v4l2-fwht.c | 143 ++ 1 file changed, 78 insertions(+), 65 deletions(-) diff --git a/drivers/media/pl

[PATCH v3 11/18] media: vicodec: keep the ref frame according to the format in decoder

2019-02-24 Thread Dafna Hirschfeld
In the decoder, save the inner reference frame in the same format as the capture buffer. The decoder writes directly to the capture buffer and then the capture buffer is copied to the reference buffer. This will simplify the stateless decoder. Signed-off-by: Dafna Hirschfeld --- drivers/media/pl

[PATCH v3 17/18] media: vicodec: Add support for stateless decoder.

2019-02-24 Thread Dafna Hirschfeld
Implement a stateless decoder for the new node. Signed-off-by: Dafna Hirschfeld --- .../media/platform/vicodec/codec-v4l2-fwht.h | 1 + drivers/media/platform/vicodec/vicodec-core.c | 286 -- 2 files changed, 263 insertions(+), 24 deletions(-) diff --git a/drivers/media/platf

[PATCH v3 10/18] media: vicodec: add field 'buf' to fwht_raw_frame

2019-02-24 Thread Dafna Hirschfeld
Add the field 'buf' to fwht_raw_frame to indicate the start of the raw frame buffer. This field will be used to copy the capture buffer to the reference buffer in the next patch. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 1 + drivers/media/platform/vicod

[PATCH v3 00/18] add support to stateless decoder

2019-02-24 Thread Dafna Hirschfeld
main changes from v2: - fixes according to the review. - changes in 'copy_cap_to_ref' and to support NV24/42 types - changes in the codec-fwht.c functions to support reference frame which is not internal so stride and chroma_stride for the refernce frame should be function parameters. - patches 1,2

[PATCH v3 05/18] media: v4l2-ctrl: v4l2_ctrl_request_setup returns with error upon failure

2019-02-24 Thread Dafna Hirschfeld
If one of the controls fails to set, then 'v4l2_ctrl_request_setup' immediately returns with the error code. Signed-off-by: Dafna Hirschfeld --- drivers/media/v4l2-core/v4l2-ctrls.c | 18 +++--- include/media/v4l2-ctrls.h | 2 +- 2 files changed, 12 insertions(+), 8 deleti

[PATCH v3 02/18] videodev2.h: add V4L2_BUF_CAP_REQUIRES_REQUESTS

2019-02-24 Thread Dafna Hirschfeld
From: Hans Verkuil Add capability to indicate that requests are required instead of merely supported. Signed-off-by: Hans Verkuil --- Documentation/media/uapi/v4l/vidioc-reqbufs.rst | 4 include/uapi/linux/videodev2.h | 1 + 2 files changed, 5 insertions(+) diff --git a/

[PATCH v3 01/18] vb2: add requires_requests bit for stateless codecs

2019-02-24 Thread Dafna Hirschfeld
From: Hans Verkuil Stateless codecs require the use of the Request API as opposed of it being optional. So add a bit to indicate this and let vb2 check for this. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 5 - drivers/media/common/videobuf2/videobuf2

[PATCH v3 06/18] media: vicodec: change variable name for the return value of v4l2_fwht_encode

2019-02-24 Thread Dafna Hirschfeld
v4l2_fwht_encode returns either an error code on failure or the size of the compressed frame on success. So change the var assigned to it from 'ret' to 'comp_sz_or_errcode' to clarify that. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 9 + 1 file ch

[PATCH v3 04/18] media: vicodec: selection api should only check signal buffer types

2019-02-24 Thread Dafna Hirschfeld
The selection api should check only signal buffer types because multiplanar types are converted to signal in drivers/media/v4l2-core/v4l2-ioctl.c Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 20 +++ 1 file changed, 3 insertions(+), 17 deleti

[PATCH v3 03/18] cedrus: set requires_requests

2019-02-24 Thread Dafna Hirschfeld
From: Hans Verkuil The cedrus stateless decoder requires the use of request, so indicate this by setting requires_requests to 1. Signed-off-by: Hans Verkuil --- drivers/staging/media/sunxi/cedrus/cedrus_video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/sunxi/ced

[v4l-utils PATCH v3 8/8] v4l2-ctl: Add implementation for the stateless fwht decoder.

2019-02-24 Thread Dafna Hirschfeld
Add code to support the stateless decoder and the function 'stateless_m2m' that implements it. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 236 +- 1 file changed, 233 insertions(+), 3 deletions(-) diff --git a/utils/v4l2-ctl/v4l2-ctl-strea

[v4l-utils PATCH v3 1/8] v4l2-ctl: rename variable 'vic_fmt' to 'info'

2019-02-24 Thread Dafna Hirschfeld
This is a better name for 'v4l2_fwht_pixfmt_info' type and it is not confused with 'cv4l_fmt' type. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp

[v4l-utils PATCH v3 6/8] v4l-utils: copy fwht-ctrls.h from kernel dir

2019-02-24 Thread Dafna Hirschfeld
copy fwht-ctrls.h from the kernel dir when running 'sync' and add typedef for u64 in codec-fwht.h Signed-off-by: Dafna Hirschfeld --- Makefile.am | 1 + utils/common/codec-fwht.patch | 7 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makef

[v4l-utils PATCH v3 3/8] v4l2-ctl: test if do_setup_out_buffers returns -1 instead of non zero

2019-02-24 Thread Dafna Hirschfeld
If 'do_setup_out_buffers' returns -2 it means that it finished queuing all output stream buffers and the program should not terminate in that case. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/

[v4l-utils PATCH v3 5/8] (c)v4l-helpers.h: Add support for the request api

2019-02-24 Thread Dafna Hirschfeld
Add an array of request file descriptors to v4l_queue and add methods to allocate and get them. Signed-off-by: Dafna Hirschfeld --- utils/common/cv4l-helpers.h | 5 + utils/common/v4l-helpers.h | 22 ++ 2 files changed, 27 insertions(+) diff --git a/utils/common/cv4l-h

[v4l-utils PATCH v3 2/8] v4l2-ctl: bugfix: correctly read/write V4L2_PIX_FMT_NV24 padded buffer

2019-02-24 Thread Dafna Hirschfeld
For V4L2_PIX_FMT_NV24/42 types the chroma stride is twice the luma stride. Add support for it in 'read_write_padded_frame' Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/utils/v4l2-

[v4l-utils PATCH v3 4/8] v4l2-ctl: move stateful m2m decode code to a separate function

2019-02-24 Thread Dafna Hirschfeld
Add the function stateful_m2m that implements the stateful codec api. This is a preparation for having both stateful and stateless implementations Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 95 ++- 1 file changed, 50 insertions(+), 45 dele

[v4l-utils PATCH v3 7/8] v4l2-ctl: Add functions and variables to support fwht stateless decoder

2019-02-24 Thread Dafna Hirschfeld
Add the variable 'last_fwht_bf_ts' and the array 'fwht_reqs' to allow the fwht stateless decoder to maintain the requests. Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 121 ++ 1 file changed, 121 insertions(+) diff --git a/utils/v4l2-ctl/v4

[v4l-utils PATCH v3 0/8] add support to stateless decoder

2019-02-24 Thread Dafna Hirschfeld
Changes from v2: patches 1,2,3,6 are new Dafna Hirschfeld (8): v4l2-ctl: rename variable 'vic_fmt' to 'info' v4l2-ctl: bugfix: correctly read/write V4L2_PIX_FMT_NV24 padded buffer v4l2-ctl: test if do_setup_out_buffers returns -1 instead of non zero v4l2-ctl: move stateful m2m decode code