From ee1fc9fe813d76802af30993c9f9e1db67f7b015 Mon Sep 17 00:00:00 2001 From: "Christopher N. Hesse" Date: Sat, 26 Nov 2016 19:22:42 +0100 Subject: [PATCH] exynos_omx: Support Exynos5xxx 3.10 kernels Change-Id: Ib6c932183f144ea07e503db232a68109946078eb --- .../video/exynos5/mfc_v4l2/dec/src/ExynosVideoDecoder.c | 5 +++++ .../video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/ExynosVideoDecoder.c b/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/ExynosVideoDecoder.c index 48e152f..7e7693c 100644 --- a/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/ExynosVideoDecoder.c +++ b/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/ExynosVideoDecoder.c @@ -49,6 +49,11 @@ #define MAX_OUTPUTBUFFER_COUNT 32 +/* Linux 3.10 */ +#ifndef V4L2_BUF_FLAG_LAST_FRAME +#define V4L2_BUF_FLAG_LAST_FRAME 0x4000 +#endif + /* * [Common] __CodingType_To_V4L2PixelFormat */ diff --git a/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c b/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c index 0d3d686..d48d099 100644 --- a/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c +++ b/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/enc/src/ExynosVideoEncoder.c @@ -53,6 +53,11 @@ #define H263_CTRL_NUM 18 #define MAX_INPUTBUFFER_COUNT 32 +/* Linux 3.10 */ +#if !defined(V4L2_MPEG_VIDEO_H264_SEI_FP_TYPE_SIDE_BY_SIDE) && defined(V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_SIDE_BY_SIDE) +#define V4L2_MPEG_VIDEO_H264_SEI_FP_TYPE_SIDE_BY_SIDE V4L2_MPEG_VIDEO_H264_SEI_FP_ARRANGEMENT_TYPE_SIDE_BY_SIDE +#endif + /* * [Common] __CodingType_To_V4L2PixelFormat */ -- 2.20.1