cron job: media_tree daily build: OK

2018-07-19 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: Fri Jul 20 05:00:12 CEST 2018 media-tree git hash:39fbb88165b2bbbc77ea7acab5f10632a31526e6 media_build gi

Re: [PATCH 1/2] v4l2-core: Simplify v4l2_m2m_try_{schedule,run}

2018-07-19 Thread Ezequiel Garcia
On Wed, 2018-07-18 at 12:23 +0200, Hans Verkuil wrote: > On 12/07/18 17:43, Ezequiel Garcia wrote: > > v4l2_m2m_try_run() has only one caller and so it's possible > > to move its contents. > > > > Although this de-modularization change could reduce clarity, > > in this case it allows to remove a s

Re: [PATCH 2/2] v4l2-mem2mem: Avoid calling .device_run in v4l2_m2m_job_finish

2018-07-19 Thread Ezequiel Garcia
On Wed, 2018-07-18 at 12:21 +0200, Hans Verkuil wrote: > On 12/07/18 17:43, Ezequiel Garcia wrote: > > v4l2_m2m_job_finish() is typically called in interrupt context. > > > > Some implementation of .device_run might sleep, and so it's > > desirable to avoid calling it directly from > > v4l2_m2m_jo

the editing

2018-07-19 Thread Jeremy
How are you doing today? We have not heard from you yet. Are you still interested in our photo retouching services? We mainly do: e-commerce products photo retouching jewelry photos retouching model beauty/skin retouching wedding photo editing also photo cutting out, clipping path You may choos

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread Hans Verkuil
On 07/19/2018 05:39 PM, Sakari Ailus wrote: > On Thu, Jul 19, 2018 at 03:20:22PM +0200, Hans Verkuil wrote: >> On 07/19/18 15:15, sakari.ai...@iki.fi wrote: >>> On Thu, Jul 19, 2018 at 02:13:50PM +0200, Hans Verkuil wrote: From: Hans Verkuil Add a new pixelformat for the vicodec sof

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread Sakari Ailus
On Thu, Jul 19, 2018 at 03:20:22PM +0200, Hans Verkuil wrote: > On 07/19/18 15:15, sakari.ai...@iki.fi wrote: > > On Thu, Jul 19, 2018 at 02:13:50PM +0200, Hans Verkuil wrote: > >> From: Hans Verkuil > >> > >> Add a new pixelformat for the vicodec software codec using the > >> Fast Walsh Hadamard

[PATCH v2 11/16] gpu: ipu-v3: image-convert: relax input alignment restrictions

2018-07-19 Thread Philipp Zabel
If we allow the 8-pixel DMA bursts to overshoot the end of the line, the only input alignment restrictions are dictated by the pixel format and 8-byte aligned line start address. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 7 --- 1 file changed, 7 deletions(-)

[PATCH v2 10/16] gpu: ipu-v3: image-convert: relax tile width alignment for NV12 and NV16

2018-07-19 Thread Philipp Zabel
For the planar but U/V-packed formats NV12 and NV16, 8 pixel width alignment is good enough to fulfill the 8 byte stride requirement. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/ipu-v3/ipu

[PATCH v2 08/16] gpu: ipu-v3: image-convert: select optimal seam positions

2018-07-19 Thread Philipp Zabel
Select seam positions that minimize distortions during seam hiding while satifying input and output IDMAC, rotator, and image format constraints. This code looks for aligned output seam positions that minimize the difference between the fractional corresponding ideal input positions and the input

[PATCH v2 05/16] gpu: ipu-v3: image-convert: store tile top/left position

2018-07-19 Thread Philipp Zabel
Store tile top/left position in pixels in the tile structure. This will allow overlapping tiles with different sizes later. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 27 ++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/dri

[PATCH v2 07/16] gpu: ipu-v3: image-convert: move tile alignment helpers

2018-07-19 Thread Philipp Zabel
Move tile_width_align and tile_height_align up so they can be used by the tile edge position calculation code. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 54 +- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/ipu-

[PATCH v2 06/16] gpu: ipu-v3: image-convert: calculate tile dimensions and offsets outside fill_image

2018-07-19 Thread Philipp Zabel
This will allow to calculate seam positions after initializing the ipu_image base structure but before calculating tile dimensions. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drive

[PATCH v2 15/16] gpu: ipu-v3: image-convert: disable double buffering if necessary

2018-07-19 Thread Philipp Zabel
Double-buffering only works if tile sizes are the same and the resizing coefficient does not change between tiles, even for non-planar formats. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 27 -- 1 file changed, 25 insertions(+), 2 deletions(-

[PATCH v2 01/16] gpu: ipu-v3: ipu-ic: allow to manually set resize coefficients

2018-07-19 Thread Philipp Zabel
For tiled scaling, we want to compute the scaling coefficients externally in such a way that the interpolation overshoots tile boundaries and samples up to the first pixel of the next tile. Prepare to override the resizing coefficients from the image conversion code. Signed-off-by: Philipp Zabel

[PATCH v2 09/16] gpu: ipu-v3: image-convert: fix debug output for varying tile sizes

2018-07-19 Thread Philipp Zabel
Since tile dimensions now vary between tiles, add debug output for each tile's position and dimensions. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c

[PATCH v2 16/16] media: imx: add mem2mem device

2018-07-19 Thread Philipp Zabel
Add a single imx-media mem2mem video device that uses the IPU IC PP (image converter post processing) task for scaling and colorspace conversion. On i.MX6Q/DL SoCs with two IPUs currently only the first IPU is used. The hardware only supports writing to destination buffers up to 1024x1024 pixels i

[PATCH v2 13/16] gpu: ipu-v3: image-convert: fix bytesperline adjustment

2018-07-19 Thread Philipp Zabel
For planar formats, bytesperline does not depend on BPP. It must always be larger than width and aligned to tile width alignment restrictions. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --

[PATCH v2 00/16] i.MX media mem2mem scaler

2018-07-19 Thread Philipp Zabel
Hi, this is the second version of the i.MX mem2mem scaler series. Patches 8 and 16 have been modified. Changes since v1: - Fix inverted allow_overshoot logic - Correctly switch horizontal / vertical tile alignment when determining seam positions with the 90° rotator active. - Fix SPDX-Licen

[PATCH v2 02/16] gpu: ipu-v3: image-convert: prepare for per-tile configuration

2018-07-19 Thread Philipp Zabel
Let convert_start start from a given tile index, allocate intermediate tile with maximum tile size. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 60 +++--- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-imag

[PATCH v2 04/16] gpu: ipu-v3: image-convert: reconfigure IC per tile

2018-07-19 Thread Philipp Zabel
For differently sized tiles or if the resizing coefficients change, we have to stop, reconfigure, and restart the IC between tiles. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 65 +- 1 file changed, 44 insertions(+), 21 deletions(-) diff --g

[PATCH v2 12/16] gpu: ipu-v3: image-convert: relax output alignment restrictions

2018-07-19 Thread Philipp Zabel
If we allow different tile sizes, the output tile with / height alignment doesn't need to be multiplied by number of columns / rows. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/ipu-v3

[PATCH v2 14/16] gpu: ipu-v3: image-convert: add some ASCII art to the exposition

2018-07-19 Thread Philipp Zabel
Visualize the scaling and rotation pipeline with some ASCII art diagrams. Remove the FIXME comment about missing seam prevention. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-image-convert.c | 39 +++--- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git

[PATCH v2 03/16] gpu: ipu-v3: image-convert: calculate per-tile resize coefficients

2018-07-19 Thread Philipp Zabel
Slightly modifying resize coefficients per-tile allows to completely hide the seams between tiles and to sample the correct input pixels at the bottom and right edges of the image. Tiling requires a bilinear interpolator reset at each tile start, which causes the image to be slightly shifted if th

photos

2018-07-19 Thread Jeremy
How are you doing today? We have not heard from you yet. Are you still interested in our photo retouching services? We mainly do: e-commerce products photo retouching jewelry photos retouching model beauty/skin retouching wedding photo editing also photo cutting out, clipping path You may choos

Re: [PATCH] media: imx208: Add imx208 camera sensor driver

2018-07-19 Thread Tomasz Figa
Hi Ping-chung, On Tue, Jul 17, 2018 at 3:53 PM Chen, Ping-chung wrote: > > Hi Sakari, > > Some of suggestions below has been added in to [PATCH v2] or [PATCH v3]. > We will fix others in PATCH v4 soon. I don't see v2 or v3 on linux-media (or my inbox). Where were they sent? I'd like to review t

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread Hans Verkuil
On 07/19/18 15:15, sakari.ai...@iki.fi wrote: > On Thu, Jul 19, 2018 at 02:13:50PM +0200, Hans Verkuil wrote: >> From: Hans Verkuil >> >> Add a new pixelformat for the vicodec software codec using the >> Fast Walsh Hadamard Transform. >> >> Signed-off-by: Hans Verkuil > > Could you add documenta

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread sakari . ailus
On Thu, Jul 19, 2018 at 02:13:50PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Add a new pixelformat for the vicodec software codec using the > Fast Walsh Hadamard Transform. > > Signed-off-by: Hans Verkuil Apart from the docs: Acked-by: Sakari Ailus -- Sakari Ailus e-mail: sakari.

Re: [PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread sakari . ailus
On Thu, Jul 19, 2018 at 02:13:50PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Add a new pixelformat for the vicodec software codec using the > Fast Walsh Hadamard Transform. > > Signed-off-by: Hans Verkuil Could you add documentation for this format, please? -- Sakari Ailus e-mail:

Re: [PATCH 1/5] media.h: add encoder/decoder functions for codecs

2018-07-19 Thread sakari . ailus
Hi Hans, On Thu, Jul 19, 2018 at 02:13:49PM +0200, Hans Verkuil wrote: > From: Hans Verkuil > > Add MEDIA_ENT_F_PROC_VIDEO_EN/DECODER to be used for the encoder > and decoder entities of codec hardware. > > Signed-off-by: Hans Verkuil > --- > Documentation/media/uapi/mediactl/media-types.rst

[PATCH 5/5] vicodec: add the virtual codec driver

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil Add the virtual codec driver that uses the Fast Walsh Hadamard Transform. Signed-off-by: Hans Verkuil --- MAINTAINERS |8 + drivers/media/platform/Kconfig|3 + drivers/media/platform/Makefile |1 + d

[PATCH 4/5] vicodec: add the FWHT software codec

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil Add a software codec based on the Fast Walsh Hadamard Transform. Signed-off-by: Tom aan de Wiel Signed-off-by: Hans Verkuil --- .../media/platform/vicodec/vicodec-codec.c| 791 ++ .../media/platform/vicodec/vicodec-codec.h| 95 +++ 2 files changed,

[PATCH 3/5] v4l2-mem2mem: add v4l2_m2m_last_buf()

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil This can be used to mark the last queued source buffer as the last buffer. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c | 18 include/media/v4l2-mem2mem.h | 29 ++ 2 files changed, 47 insertions(+)

[PATCH 1/5] media.h: add encoder/decoder functions for codecs

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil Add MEDIA_ENT_F_PROC_VIDEO_EN/DECODER to be used for the encoder and decoder entities of codec hardware. Signed-off-by: Hans Verkuil --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 2 ++ 2 files cha

[PATCH 2/5] videodev.h: add PIX_FMT_FWHT for use with vicodec

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil Add a new pixelformat for the vicodec software codec using the Fast Walsh Hadamard Transform. Signed-off-by: Hans Verkuil --- Documentation/media/uapi/v4l/pixfmt-compressed.rst | 7 +++ drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/videodev

[PATCH 0/5] vicodec: the Virtual Codec driver

2018-07-19 Thread Hans Verkuil
From: Hans Verkuil This is the first non-RFC version of the new vicodec driver, a driver that emulates a HW codec. The software codec was developed two years ago by Tom aan de Wiel as a university project for this specific purpose but it took until now to turn it into a proper driver. Many thank

[PATCH 1/1] dt-bindings: dw9714, dw9807-vcm: Add files to MAINTAINERS, rename files

2018-07-19 Thread Sakari Ailus
Add the DT binding documentation for dw9714 and dw9807-vcm to the MAINTAINERS file. The dw9807-vcm binding documentation file is renamed to match the dw9807's VCM bit's compatible string. Signed-off-by: Sakari Ailus --- .../bindings/media/i2c/{dongwoon,dw9807.txt => dongwoon,dw9807-vcm.txt} | 0

Re: [PATCH 1/3] media: Add JPEG_RAW format

2018-07-19 Thread Hans Verkuil
On 07/18/18 11:51, Hans Verkuil wrote: > On 05/07/18 19:28, Ezequiel Garcia wrote: >> From: Shunqian Zheng >> >> Add V4L2_PIX_FMT_JPEG_RAW format that does not contain >> JPEG header in the output frame. >> >> Signed-off-by: Shunqian Zheng >> --- >> Documentation/media/uapi/v4l/pixfmt-compressed

Re: [PATCH] media: coda: add missing h.264 levels

2018-07-19 Thread Hans Verkuil
On 07/19/18 12:50, Philipp Zabel wrote: > On Thu, 2018-07-19 at 12:39 +0200, Hans Verkuil wrote: >> On 07/19/18 12:32, Philipp Zabel wrote: >>> Hi, >>> >>> On Thu, 2018-06-28 at 13:01 +0200, Philipp Zabel wrote: This enables reordering support for h.264 main profile level 4.2, 5.0, and 5.

Re: [PATCH] media: coda: add missing h.264 levels

2018-07-19 Thread Philipp Zabel
On Thu, 2018-07-19 at 12:39 +0200, Hans Verkuil wrote: > On 07/19/18 12:32, Philipp Zabel wrote: > > Hi, > > > > On Thu, 2018-06-28 at 13:01 +0200, Philipp Zabel wrote: > > > This enables reordering support for h.264 main profile level 4.2, > > > 5.0, and 5.1 streams. Even though we likely can't p

[PATCH v2] media: coda: add SPS fixup code for frame sizes that are not multiples of 16

2018-07-19 Thread Philipp Zabel
The CODA7541 firmware does not set the SPS frame cropping fields to properly describe coded h.264 streams with frame sizes that are not a multiple of the macroblock size. This adds RBSP parsing code and a SPS fixup routine to manually replace the cropping information in the headers produced by the

[PATCH] media: coda: let CODA960 firmware set frame cropping in SPS header

2018-07-19 Thread Philipp Zabel
When encoding h.264, if visible resolution is not aligned to macroblock size, frame cropping has to be set in the SPS header to produce correct streams. The CODA960 firmware can do this on its own if asked to. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 19 +

Re: [PATCH] media: coda: add missing h.264 levels

2018-07-19 Thread Hans Verkuil
On 07/19/18 12:32, Philipp Zabel wrote: > Hi, > > On Thu, 2018-06-28 at 13:01 +0200, Philipp Zabel wrote: >> This enables reordering support for h.264 main profile level 4.2, >> 5.0, and 5.1 streams. Even though we likely can't play back such >> streams at full speed, we should still recognize the

Re: [PATCH] media: coda: add missing h.264 levels

2018-07-19 Thread Philipp Zabel
Hi, On Thu, 2018-06-28 at 13:01 +0200, Philipp Zabel wrote: > This enables reordering support for h.264 main profile level 4.2, > 5.0, and 5.1 streams. Even though we likely can't play back such > streams at full speed, we should still recognize them correctly. > > Signed-off-by: Philipp Zabel >