Re: [PATCH v6 2/2] [media] s5p-mfc: Handle 'v4l2_pix_format:field' in try_fmt and g_fmt

2017-03-01 Thread Thibault Saunier
Hello, On 03/01/2017 11:35 AM, Nicolas Dufresne wrote: Le mercredi 01 mars 2017 à 14:12 +0100, Andrzej Hajda a écrit : On 01.03.2017 12:51, Thibault Saunier wrote: It is required by the standard that the field order is set by the driver, default to NONE in case any is provided, but we can

Re: [PATCH v6 2/2] [media] s5p-mfc: Handle 'v4l2_pix_format:field' in try_fmt and g_fmt

2017-03-01 Thread Thibault Saunier
Hello, On 03/01/2017 10:12 AM, Andrzej Hajda wrote: On 01.03.2017 12:51, Thibault Saunier wrote: It is required by the standard that the field order is set by the driver, default to NONE in case any is provided, but we can basically accept any value provided by the userspace as we will anyway

[PATCH v6 1/2] [media] exynos-gsc: Use user configured colorspace if provided

2017-03-01 Thread Thibault Saunier
do no make it up, we might later while processing need to figure out the colorspace, which is possible depending on the frame size but do not ever guess and leak that guess to the userspace. Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> Signed-off-by: Thibault S

[PATCH v6 2/2] [media] s5p-mfc: Handle 'v4l2_pix_format:field' in try_fmt and g_fmt

2017-03-01 Thread Thibault Saunier
provided by userspace from the output to the capture side of the device so that the information is given back to userspace. This way it can handle it and potentially deinterlace afterward. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v6: - Pass user output

[PATCH v6 0/2] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-03-01 Thread Thibault Saunier
value on the capture side. This is the sixth version of the patch serie. Best regards, Thibault Saunier Changes in v6: - Do not ever guess colorspace - Pass user output field value to the capture as the device is not doing any deinterlacing and thus decoded content will still be interlaced

Re: [PATCH v5 1/3] [media] exynos-gsc: Use user configured colorspace if provided

2017-02-22 Thread Thibault Saunier
On 02/22/2017 05:03 PM, Nicolas Dufresne wrote: Le mercredi 22 février 2017 à 15:57 -0300, Thibault Saunier a écrit : On 02/22/2017 03:06 PM, Hans Verkuil wrote: On 02/22/2017 05:05 AM, Thibault Saunier wrote: Hello, On 02/21/2017 11:19 PM, Hans Verkuil wrote: On 02/21/2017 11:20 AM

Re: [PATCH v5 1/3] [media] exynos-gsc: Use user configured colorspace if provided

2017-02-22 Thread Thibault Saunier
On 02/22/2017 03:06 PM, Hans Verkuil wrote: On 02/22/2017 05:05 AM, Thibault Saunier wrote: Hello, On 02/21/2017 11:19 PM, Hans Verkuil wrote: On 02/21/2017 11:20 AM, Thibault Saunier wrote: Use colorspace provided by the user as we are only doing scaling and color encoding conversion, we

Re: [PATCH v5 3/3] [media] s5p-mfc: Check and set 'v4l2_pix_format:field' field in try_fmt

2017-02-22 Thread Thibault Saunier
Hello, On 02/22/2017 06:29 AM, Andrzej Hajda wrote: On 21.02.2017 20:20, Thibault Saunier wrote: It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v5: - Just adapt the field and

Re: [PATCH v5 1/3] [media] exynos-gsc: Use user configured colorspace if provided

2017-02-22 Thread Thibault Saunier
Hello, On 02/21/2017 11:19 PM, Hans Verkuil wrote: On 02/21/2017 11:20 AM, Thibault Saunier wrote: Use colorspace provided by the user as we are only doing scaling and color encoding conversion, we won't be able to transform the colorspace itself and the colorspace won't mater

[PATCH v5 3/3] [media] s5p-mfc: Check and set 'v4l2_pix_format:field' field in try_fmt

2017-02-21 Thread Thibault Saunier
It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v5: - Just adapt the field and never error out. Changes in v4: None Changes in v3: - Do not check values in the g_fmt functions as A

[PATCH v5 2/3] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT if DEFAULT provided

2017-02-21 Thread Thibault Saunier
by EIA CEA 861B. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v5: None Changes in v4: - Set the colorspace only if the user passed V4L2_COLORSPACE_DEFAULT, in all other cases just use what userspace provided. Changes in v3: - Do not check values in the

[PATCH v5 1/3] [media] exynos-gsc: Use user configured colorspace if provided

2017-02-21 Thread Thibault Saunier
off-by: Javier Martinez Canillas <jav...@osg.samsung.com> Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> --- Changes in v5: - Squash commit to always use output colorspace on the capture side inside this one

[PATCH v5 0/3] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-02-21 Thread Thibault Saunier
spamming error at us about the driver not following the standard. This is the fifth version of the patch serie. Best regards, Thibault Saunier Changes in v5: - Squash commit to always use output colorspace on the capture side inside this one - Fix typo in commit message - Just adapt the field

Re: [PATCH v4 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-21 Thread Thibault Saunier
Hello Andrzej, On 02/21/2017 06:56 AM, Andrzej Hajda wrote: On 13.02.2017 20:08, Thibault Saunier wrote: From: Javier Martinez Canillas <jav...@osg.samsung.com> The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_

[PATCH v4 0/4] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-02-13 Thread Thibault Saunier
spamming error at us about the driver not following the standard. This is the third version of the patch serie. Best regards, Thibault Saunier Changes in v4: - Reword commit message to better back our assumptions on specifications - Use any colorspace provided by the user as it won't affect the way

[PATCH v4 3/4] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT if DEFAULT provided

2017-02-13 Thread Thibault Saunier
by EIA CEA 861B. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v4: - Set the colorspace only if the user passed V4L2_COLORSPACE_DEFAULT, in all other cases just use what userspace provided. Changes in v3: - Do not check values in the g_fmt functions as A

[PATCH v4 2/4] [media] exynos-gsc: Respect userspace colorspace setting in try_fmt

2017-02-13 Thread Thibault Saunier
User userspace provided by the user as we are only doing scaling and color encoding conversion, we won't be able to transform the colorspace itself and the colorspace won't mater in that operation. Also always use output colorspace on the capture side. Signed-off-by: Thibault Saunier

[PATCH v4 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-13 Thread Thibault Saunier
y setting the V4L2_COLORSPACE_REC709 colorspace. Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> --- Changes in v4: - Reword commit message to better back our as

[PATCH v4 4/4] [media] s5p-mfc: Check and set 'v4l2_pix_format:field' field in try_fmt

2017-02-13 Thread Thibault Saunier
It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v4: None Changes in v3: - Do not check values in the g_fmt functions as Andrzej explained in previous review Changes in v2: - Fix a

Re: [PATCH v3 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-10 Thread Thibault Saunier
On 02/10/2017 12:07 PM, Hans Verkuil wrote: On 02/10/2017 03:10 PM, Thibault Saunier wrote: From: Javier Martinez Canillas <jav...@osg.samsung.com> The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 fo

[PATCH v3 2/4] [media] exynos-gsc: Respect userspace colorspace setting in try_fmt

2017-02-10 Thread Thibault Saunier
If the colorspace is specified by userspace we should respect it and not reset it ourself if we can support it. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v3: - Do not check values in the g_fmt functions as Andrzej explained in previous review

[PATCH v3 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-10 Thread Thibault Saunier
check for the resolution in G_FMT instead unconditionally setting the V4L2_COLORSPACE_REC709 colorspace. Signed-off-by: Javier Martinez Canillas <jav...@osg.samsung.com> Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com>

[PATCH v3 0/4] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-02-10 Thread Thibault Saunier
spamming error at us about the driver not following the standard. This is the third version of the patch serie. Best regards, Thibault Saunier Changes in v3: - Added 'Reviewed-by: Andrzej Hajda <a.ha...@samsung.com>' - Do not check values in the g_fmt functions as Andrzej explained in pr

[PATCH v3 3/4] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT

2017-02-10 Thread Thibault Saunier
The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV but the driver didn't set the colorimetry, also respect usespace setting. Use 576p display resolution as a threshold to set this. Signed-off-by: Thibault Saunier

[PATCH v3 4/4] [media] s5p-mfc: Check and set 'v4l2_pix_format:field' field in try_fmt

2017-02-10 Thread Thibault Saunier
It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- Changes in v3: - Do not check values in the g_fmt functions as Andrzej explained in previous review Changes in v2: - Fix a silly build

[PATCH 2/4] [media] exynos-gsc: Respect userspace colorspace setting

2017-02-09 Thread Thibault Saunier
If the colorspace is specified by userspace we should respect it and not reset it ourself if we can support it. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- drivers/media/platform/exynos-gsc/gsc-core.c | 25 + 1 file changed, 17 insertions

[PATCH 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-09 Thread Thibault Saunier
From: Javier Martinez Canillas The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers don't agree on the display resolution that should be used as a threshold. Some drivers set

[PATCH 4/4] [media] s5p-mfc: Always check and set 'v4l2_pix_format:field' field

2017-02-09 Thread Thibault Saunier
It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 3/4] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT

2017-02-09 Thread Thibault Saunier
The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV but the driver didn't set the colorimetry, also respect usespace setting. Use 576p display resolution as a threshold to set this. Signed-off-by: Thibault Saunier

[PATCH 0/4] [media] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-02-09 Thread Thibault Saunier
spamming error at us about the driver not following the standard. Best regards, Thibault Saunier Javier Martinez Canillas (1): [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces Thibault Saunier (3): [media] exynos-gsc: Respect userspace colorspace setting [media

[PATCH v2 2/4] [media] exynos-gsc: Respect userspace colorspace setting

2017-02-09 Thread Thibault Saunier
If the colorspace is specified by userspace we should respect it and not reset it ourself if we can support it. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- drivers/media/platform/exynos-gsc/gsc-core.c | 25 + 1 file changed, 17 insertions

[PATCH v2 0/4] [media] Fixes for colorspace logic in exynos-gsc and s5p-mfc drivers

2017-02-09 Thread Thibault Saunier
Changes since v1: - Fix a silly build error that slipped in while rebasing the patches Javier Martinez Canillas (1): [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces Thibault Saunier (3): [media] exynos-gsc: Respect userspace colorspace setting [media] s5p-mfc

[PATCH v2 3/4] [media] s5p-mfc: Set colorspace in VIDIO_{G,TRY}_FMT

2017-02-09 Thread Thibault Saunier
The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV but the driver didn't set the colorimetry, also respect usespace setting. Use 576p display resolution as a threshold to set this. Signed-off-by: Thibault Saunier

[PATCH v2 4/4] [media] s5p-mfc: Always check and set 'v4l2_pix_format:field' field

2017-02-09 Thread Thibault Saunier
It is required by the standard that the field order is set by the driver. Signed-off-by: Thibault Saunier <thibault.saun...@osg.samsung.com> --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-09 Thread Thibault Saunier
From: Javier Martinez Canillas The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace should be used for SDTV and V4L2_COLORSPACE_REC709 for HDTV. But drivers don't agree on the display resolution that should be used as a threshold. Some drivers set