Re: [PATCH 00/14] Stateful/stateless codec core support (resend)

2019-07-26 Thread Maxime Jourdan
exandre Courbot (1): > media: docs-rst: Document m2m stateless video decoder interface > > Hans Verkuil (6): > v4l2-ioctl.c: OR flags in v4l_fill_fmtdesc(), not don't overwrite > videodev2.h: add V4L2_FMT_FLAG_HAS_BITSTREAM_PARSER > videodev2.h.rst.exceptions: tymecode -&

Re: [RFC PATCH 0/5] Add enum_fmt flag for coded formats with dynamic resolution switching

2019-07-24 Thread Maxime Jourdan
On Thu, Jul 18, 2019 at 11:22 AM Hans Verkuil wrote: > > On 7/18/19 10:39 AM, Maxime Jourdan wrote: > > On Mon, Jul 15, 2019 at 2:37 PM Hans Verkuil wrote: > >> > >> On 6/11/19 10:13 AM, Hans Verkuil wrote: > >>> On 6/9/19 4:38 PM, Maxime Jourdan w

Re: [RFC PATCH 0/5] Add enum_fmt flag for coded formats with dynamic resolution switching

2019-07-18 Thread Maxime Jourdan
On Mon, Jul 15, 2019 at 2:37 PM Hans Verkuil wrote: > > On 6/11/19 10:13 AM, Hans Verkuil wrote: > > On 6/9/19 4:38 PM, Maxime Jourdan wrote: > >> Hello, > >> > >> This RFC proposes a new format flag - V4L2_FMT_FLAG_DYN_RESOLUTION - used > >> to

Re: [PATCH][next] staging: media: meson: remove redundant initialization of mpeg12

2019-06-13 Thread Maxime Jourdan
buf_idx) > static int codec_mpeg12_start(struct amvdec_session *sess) > { > struct amvdec_core *core = sess->core; > - struct codec_mpeg12 *mpeg12 = sess->priv; > + struct codec_mpeg12 *mpeg12; > int ret; > > mpeg12 = kzalloc(sizeof(*mpeg12), GFP_KERNEL); > -- > 2.20.1 > Thank you for the patch. Acked-by: Maxime Jourdan

Re: [RFC PATCH 0/5] Add enum_fmt flag for coded formats with dynamic resolution switching

2019-06-11 Thread Maxime Jourdan
On Tue, Jun 11, 2019 at 10:13 AM Hans Verkuil wrote: > > On 6/9/19 4:38 PM, Maxime Jourdan wrote: > > Hello, > > > > This RFC proposes a new format flag - V4L2_FMT_FLAG_DYN_RESOLUTION - used > > to tag coded formats for which the device supports dynamic

Re: [RFC PATCH 1/5] media: videodev2: add V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-11 Thread Maxime Jourdan
Hi Tomasz, On Mon, Jun 10, 2019 at 5:48 AM Tomasz Figa wrote: > > Hi Maxime, > > On Sun, Jun 9, 2019 at 11:38 PM Maxime Jourdan wrote: > > > > Add a enum_fmt format flag to specifically tag coded formats where > > dynamic resolution switching is supported by the

[RFC PATCH 1/5] media: videodev2: add V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-09 Thread Maxime Jourdan
hould extract the video parameters itself, or if it can rely on the device to send V4L2_EVENT_SOURCE_CHANGE when such changes are detected. Signed-off-by: Maxime Jourdan --- Documentation/media/uapi/v4l/vidioc-enum-fmt.rst | 7 +++ include/uapi/linux/videodev2.h | 5 +++-- 2

[RFC PATCH 0/5] Add enum_fmt flag for coded formats with dynamic resolution switching

2019-06-09 Thread Maxime Jourdan
ed to have your opinion on this late addition. The RFC patches also adds support for this flag for the 4 following stateful decoder drivers: - venus - s5p-mfc - mtk-vcodec - vicodec Maxime Jourdan (5): media: videodev2: add V4L2_FMT_FLAG_DYN_RESOLUTION media: venus: vdec: flag OUTPUT fo

[RFC PATCH 5/5] media: vicodec: flag vdec/stateful OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-09 Thread Maxime Jourdan
Tag all the coded formats where the vicodec stateful decoder supports dynamic resolution switching. Signed-off-by: Maxime Jourdan --- drivers/media/platform/vicodec/vicodec-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers

[RFC PATCH 3/5] media: s5p_mfc_dec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-09 Thread Maxime Jourdan
Tag all the coded formats where the s5p_mfc decoder supports dynamic resolution switching. Signed-off-by: Maxime Jourdan --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 1 + drivers/media/platform/s5p-mfc/s5p_mfc_dec.c| 13 + 2 files changed, 14 insertions(+) diff --git

[RFC PATCH 4/5] media: mtk-vcodec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-09 Thread Maxime Jourdan
Tag all the coded formats where the mtk-vcodec decoder supports dynamic resolution switching. Signed-off-by: Maxime Jourdan --- 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

[RFC PATCH 2/5] media: venus: vdec: flag OUTPUT formats with V4L2_FMT_FLAG_DYN_RESOLUTION

2019-06-09 Thread Maxime Jourdan
Tag all the coded formats where the venus vdec supports dynamic resolution switching. Signed-off-by: Maxime Jourdan --- drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/vdec.c | 11 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/media

Re: [PATCH] media: videodev2: add V4L2_FMT_FLAG_NO_SOURCE_CHANGE

2018-12-07 Thread Maxime Jourdan
Hi Hans, Tomasz, Sorry I missed your messages last week..! On Fri, Nov 30, 2018 at 8:35 AM Hans Verkuil wrote: > > On 11/29/2018 08:35 PM, Tomasz Figa wrote: > > On Thu, Nov 29, 2018 at 1:01 AM Hans Verkuil wrote: > >> > >> On 10/04/2018 03:37 PM, Maxime Jourdan w

[PATCH v4 0/3] Add Amlogic video decoder driver

2018-11-06 Thread Maxime Jourdan
- Implement PAR reporting via VIDIOC_CROPCAP [2] https://lore.kernel.org/patchwork/cover/993093/ [1] https://patchwork.kernel.org/cover/10595803/ [0] https://patchwork.kernel.org/cover/10583391/ Maxime Jourdan (3): dt-bindings: media: add Amlogic Video Decoder Bindings media: meson: add v4l2 m

[PATCH v4 2/3] media: meson: add v4l2 m2m video decoder driver

2018-11-05 Thread Maxime Jourdan
(S912) There is also a hardware bitstream parser (ESPARSER) that is handled here. Signed-off-by: Maxime Jourdan --- drivers/media/platform/Kconfig| 10 + drivers/media/platform/meson/Makefile |1 + drivers/media/platform/meson/vdec/Makefile|8 + .../media

[PATCH v4 3/3] MAINTAINERS: Add meson video decoder

2018-11-05 Thread Maxime Jourdan
Add an entry for the meson video decoder for amlogic SoCs. Signed-off-by: Maxime Jourdan --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f4855974f325..df013e7758b6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9621,6 +9621,14 @@ F

[PATCH v4 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings

2018-11-05 Thread Maxime Jourdan
Add documentation for the meson vdec dts node. Signed-off-by: Maxime Jourdan Reviewed-by: Rob Herring --- .../bindings/media/amlogic,vdec.txt | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/amlogic,vdec.txt diff

Re: [PATCH] media: videodev2: add V4L2_FMT_FLAG_NO_SOURCE_CHANGE

2018-10-09 Thread Maxime Jourdan
Hi Tomasz, On Tue, Oct 9, 2018 at 9:59 AM Tomasz Figa wrote: > > Hi Maxime, > > On Thu, Oct 4, 2018 at 10:38 PM Maxime Jourdan wrote: > > > > When a v4l2 driver exposes V4L2_EVENT_SOURCE_CHANGE, some (usually > > OUTPUT) formats may not be able to trigger this

Re: [RFC PATCH] media: v4l2-ctrl: Add control for specific V4L2_EVENT_SRC_CH_RESOLUTION support

2018-10-03 Thread Maxime Jourdan
On Tue, Oct 2, 2018 at 1:43 PM Hans Verkuil wrote: > > On 10/02/18 13:31, Maxime Jourdan wrote: > > For drivers that expose both an OUTPUT queue and > > V4L2_EVENT_SRC_CH_RESOLUTION such as video decoders, it is > > possible that support for this event is limited to a subs

[RFC PATCH] media: v4l2-ctrl: Add control for specific V4L2_EVENT_SRC_CH_RESOLUTION support

2018-10-02 Thread Maxime Jourdan
the latter formats, userspace is expected to set the resolution via S_FMT prior to decoding. Signed-off-by: Maxime Jourdan --- Documentation/media/uapi/v4l/control.rst | 7 +++ drivers/media/v4l2-core/v4l2-ctrls.c | 3 +++ include/uapi/linux/v4l2-controls.h | 4 +++- 3 files c

Re: [linux-firmware] [GIT PULL] amlogic: add video decoder firmwares

2018-10-01 Thread Maxime Jourdan
On Mon, Oct 1, 2018 at 5:36 PM Josh Boyer wrote: > > On Mon, Oct 1, 2018 at 11:27 AM Maxime Jourdan wrote: > > > > Hello, > > > > Below is a pull request to add the firmwares required by the Amlogic video > > decoder. > > > > The firmwares wer

[linux-firmware] [GIT PULL] amlogic: add video decoder firmwares

2018-10-01 Thread Maxime Jourdan
4f6c71cb6b42e58: amlogic: add video decoder firmwares (2018-10-01 17:06:18 +0200) -------- Maxime Jourdan (1): amlogic: add video decoder firmwares WHENCE | 16 amlogic/gx/h263_mc | Bin 0 -> 16384

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Maxime Jourdan
2018-08-06 11:13 GMT+02:00 Paul Kocialkowski : > Hi, > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: >> On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: >> > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> > > Regarding point 3: I think this should be documented next to the pix

Re: [RFC 1/4] media: meson: add v4l2 m2m video decoder driver

2018-08-02 Thread Maxime Jourdan
2018-08-02 12:30 GMT+02:00 Jerome Brunet : > > Ouch! > > Your architecture seems pretty modular. Maybe you could split this patch a > little ? One patch of the 'backbone' then one for each codec ? Hehe, it's a big baby. Sure I'll split it codec by codec. > > I suppose this will go away with : > h

Re: [RFC 0/4] media: meson: add video decoder driver

2018-08-02 Thread Maxime Jourdan
Hi Jerome, Neil, Hans, Thanks a lot for all the insights. 2018-08-02 8:59 GMT+02:00 Hans Verkuil : >> fail: >> ../../../v4l-utils-1.12.3/utils/v4l2-compliance/v4l2-test-buffers.cpp(571): >> q.has_expbuf(node) >> test VIDIOC_EXPBUF: FAIL > > Not sure, might well be a knock-on result

Re: [RFC 4/4] dt-bindings: media: add Amlogic Meson Video Decoder Bindings

2018-08-02 Thread Maxime Jourdan
Hi Martin & Jerome, 2018-08-02 12:33 GMT+02:00 Jerome Brunet : > Maxime, when formatting your patchset, remember to put the bindings > documentation before actually using them. This patch could be the first one of > your series. Noted, thanks. 2018-08-01 22:13 GMT+02:00 Martin Blumenstingl : >>

[RFC 3/4] ARM64: dts: meson: add vdec entries

2018-08-01 Thread Maxime Jourdan
This enables the video decoder for gxbb, gxl and gxm chips Signed-off-by: Maxime Jourdan --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 8 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 8 arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 4 3 files changed, 20 insertions

[RFC 0/4] media: meson: add video decoder driver

2018-08-01 Thread Maxime Jourdan
test-buffers.cpp(571): q.has_expbuf(node) test VIDIOC_EXPBUF: FAIL And of course, I will gladly accept any kind of other feedback you would have. Thanks! Maxime Jourdan (4): media: meson: add v4l2 m2m video decoder driver ARM64: dts: meson-gx: add vdec entry ARM64: dts: meson: add vde

[RFC 2/4] ARM64: dts: meson-gx: add vdec entry

2018-08-01 Thread Maxime Jourdan
Add the video decoder dts entry Signed-off-by: Maxime Jourdan --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index b8dc4dbb391b..248052737aa7

[RFC 4/4] dt-bindings: media: add Amlogic Meson Video Decoder Bindings

2018-08-01 Thread Maxime Jourdan
Add documentation for the meson vdec dts node. Signed-off-by: Maxime Jourdan --- .../bindings/media/amlogic,meson-vdec.txt | 60 +++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/amlogic,meson-vdec.txt diff --git a