[PATCH 0/4] [media] exynos-gsc: Cleanup and fixes

From: Javier Martinez Canillas
Date: Fri Sep 30 2016 - 17:18:57 EST


Hello,

This patch series contains a cleanup and some fixes for the exynos-gsc
driver. I found these issues when trying to use the driver with the
GStreamer v4l2videoconvert element. I wasn't able to display to Exynos
DRM/KMS driver and only a small set of formats were working correctly.

After these patches, I'm able to display the captured frames to the
Exynos DRM driver using kmssink or chain two v4l2videoconvert elements
using the two GSC instances. Also, most supported formats are working.

I've tested all supported formats with the following script:

FORMATS="BGRx YUY2 UYVY YVYU Y42B NV16 NV61 YV12 NV21 NV12 I420"

for IN in ${FORMATS}; do
for OUT in ${FORMATS}; do
gst-launch-1.0 videotestsrc num-buffers=30 ! video/x-raw,format=${IN} ! \
v4l2video$1convert ! video/x-raw,format=${OUT} ! videoconvert ! kmssink
done
done

There are though still two issues remaining after these patches:

1) The NV21 and NV61 formats aren't show correctly (NV12 and NV16 works).
2) The Y42B format works when used as input but no when used as output.

But those can be addressed as a follow-up since I believe are not related,
and the fixes in the series improve the support for most exposed formats.

Best regards,
Javier


Javier Martinez Canillas (4):
[media] exynos-gsc: change spamming try_fmt log message to debug
[media] exynos-gsc: don't clear format when freeing buffers with
REQBUFS(0)
[media] exynos-gsc: fix supported RGB pixel format
[media] exynos-gsc: do proper bytesperline and sizeimage calculation

drivers/media/platform/exynos-gsc/gsc-core.c | 27 ++++++++++++++++++++-------
drivers/media/platform/exynos-gsc/gsc-m2m.c | 8 +-------
2 files changed, 21 insertions(+), 14 deletions(-)

--
2.7.4