[RFC 07/10] sunxi-cedrus: Add a MPEG 2 codec

2016-08-25 Thread Florent Revest
This patch introduces the support of MPEG2 video decoding to the sunxi-cedrus video decoder driver. Signed-off-by: Florent Revest --- drivers/media/platform/sunxi-cedrus/Makefile | 2 +- drivers/media/platform/sunxi-cedrus/sunxi_cedrus.c | 26 +++- .../platform/sunxi-cedrus

[RFC 10/10] sunxi-cedrus: Add device tree binding document

2016-08-25 Thread Florent Revest
Device Tree bindings for the Allwinner's video engine Signed-off-by: Florent Revest --- .../devicetree/bindings/media/sunxi-cedrus.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sunxi-cedrus.txt diff --

[RFC 08/10] sunxi-cedrus: Add a MPEG 4 codec

2016-08-25 Thread Florent Revest
This patch introduces the support of MPEG4 video decoding to the sunxi-cedrus video decoder driver. Signed-off-by: Florent Revest --- drivers/media/platform/sunxi-cedrus/Makefile | 3 +- drivers/media/platform/sunxi-cedrus/sunxi_cedrus.c | 15 +++ .../platform/sunxi-cedrus

[RFC 05/10] v4l: Add MPEG4 low-level decoder API control

2016-08-25 Thread Florent Revest
This control is to be used with the new low-level decoder API for MPEG4 to provide additional parameters for the hardware that cannot parse the input stream. Some fields are still missing for this structure to be complete. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c

[RFC 09/10] ARM: dts: sun5i: Use video-engine node

2016-08-25 Thread Florent Revest
Now that we have a driver matching "allwinner,sun5i-a13-video-engine" we can load it. The "video-engine" node depends on the new sunxi-ng's CCU clock and reset bindings. This patch also includes a ve_reserved DMA pool for videobuf2 buffer allocations in sunxi-cedrus

[RFC 04/10] v4l: Add MPEG2 low-level decoder API control

2016-08-25 Thread Florent Revest
This control is to be used with the new low-level decoder API for MPEG2 to provide additional parameters for the hardware that cannot parse the input stream. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 11 +++ drivers/media/v4l2-core/v4l2-ioctl.c | 1

[RFC 06/10] media: platform: Add Sunxi Cedrus decoder driver

2016-08-25 Thread Florent Revest
rse engineering on which I based my work comes from the "Cedrus" project: http://linux-sunxi.org/Cedrus The driver currently only runs on the A13 and this patch doesn't include any codec. Signed-off-by: Florent Revest --- drivers/media/platform/Kconfig |

[RFC 00/10] Add Sunxi Cedrus Video Decoder Driver

2016-08-25 Thread Florent Revest
le.com/presentation/d/1RLkH3QxdmrcW_t41KllEvUmVsrHMbMOgd6CqAgzR7U4/pub?slide=id.p [3] https://lwn.net/Articles/688585/ [4] https://lwn.net/Articles/641204/ [5] https://github.com/FlorentRevest/linux-sunxi-cedrus [6] https://github.com/FlorentRevest/sunxi-cedrus-drv-video Florent Revest (9): clk: su

[RFC 03/10] v4l: Add sunxi Video Engine pixel format

2016-08-25 Thread Florent Revest
Add support for the allwinner's proprietary pixel format described in details here: http://linux-sunxi.org/File:Ve_tile_format_v1.pdf This format is similar to V4L2_PIX_FMT_NV12M but the planes are divided in tiles of 32x32px. Signed-off-by: Florent Revest --- include/uapi/linux/videod

[RFC 01/10] clk: sunxi-ng: Add a couple of A13 clocks

2016-08-25 Thread Florent Revest
Add a new style driver for the clock control unit in Allwinner A13. Only AVS and VE are supported since they weren't provided until now and are needed for "sunxi-cedrus". Signed-off-by: Florent Revest --- .../devicetree/bindings/clock/sunxi-ccu.txt| 1 + arch/arm/boo

[RFC 02/10] v4l: Add private compound control type.

2016-08-25 Thread Florent Revest
From: Pawel Osciak V4L2_CTRL_TYPE_PRIVATE is to be used for private driver compound controls that use the "ptr" member of struct v4l2_ext_control. Signed-off-by: Pawel Osciak Signed-off-by: Jung Zhao Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 4 +++

Re: Questions about userspace, request and frame API in your Rockchip VPU driver

2016-07-26 Thread Florent Revest
I, which you are interested in. The class responsible > for talking the V4L2 frame/slice API is > v4l2_slice_video_decode_accelerator.cc and there should be also some > modules responsible for parsing the bitstream, but I don't have enough > knowledge on this code to point exactl