From: Christopher N. Hesse Date: Sat, 26 Nov 2016 18:22:42 +0000 (+0100) Subject: exynos_omx: Support Exynos5xxx 3.10 kernels X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee1fc9fe813d76802af30993c9f9e1db67f7b015;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos5.git exynos_omx: Support Exynos5xxx 3.10 kernels Change-Id: Ib6c932183f144ea07e503db232a68109946078eb --- 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 */