msm: vidc: Add support for IDR flag in v4l2 and video driver
I-frame and IDR-frame for v4l2 clients was same, there was no way to
differentiate them. Adding separate flag for IDR helps clients
differentiate I from IDR.
CRs-fixed: 471371 473864
Change-Id: I4a945d9ad256bfb305a11aace91245f99e241798
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 4bce95c..ef8323e 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -700,6 +700,7 @@
#define V4L2_QCOM_BUF_FLAG_CODECCONFIG 0x4000
#define V4L2_QCOM_BUF_FLAG_EOSEQ 0x8000
#define V4L2_QCOM_BUF_TIMESTAMP_INVALID 0x10000
+#define V4L2_QCOM_BUF_FLAG_IDRFRAME 0x20000 /* Image is a IDR-frame */
#define V4L2_QCOM_BUF_FLAG_DECODEONLY 0x40000
/*