summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2016-08-18 23:11:21 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-18 23:11:21 +0000
commitd863b3af2f5d521f9420ff22f7770843c50d24ae (patch)
tree685bc2b729d3ccd4f40f21dd258a3a1e1bfef301
parent31e266f3715b6dce641bdceae54d4549d5f564b1 (diff)
parent783a787d637cdb3857986cac2dce5387a7e2e13c (diff)
downloadmsm8x09-d863b3af2f5d521f9420ff22f7770843c50d24ae.tar.gz
add msm_media_info.h from msm8x26 am: c20cebc8ed
am: 783a787d63 Change-Id: Iefb624be807589cf15c47ace6ec2d9598c7ca5d5
-rw-r--r--kernel-headers/media/msm_media_info.h38
-rw-r--r--original-kernel-headers/media/msm_media_info.h39
2 files changed, 77 insertions, 0 deletions
diff --git a/kernel-headers/media/msm_media_info.h b/kernel-headers/media/msm_media_info.h
new file mode 100644
index 0000000..8869e49
--- /dev/null
+++ b/kernel-headers/media/msm_media_info.h
@@ -0,0 +1,38 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ *** To edit the content of this header, modify the corresponding
+ *** source file (e.g. under external/kernel-headers/original/) then
+ *** run bionic/libc/kernel/tools/update_all.py
+ ***
+ *** Any manual change here will be lost the next time this script will
+ *** be run. You've been warned!
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __MEDIA_INFO_H__
+#define __MEDIA_INFO_H__
+#ifndef MSM_MEDIA_ALIGN
+#define MSM_MEDIA_ALIGN(__sz,__align) (((__sz) + (__align - 1)) & (~(__align - 1)))
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+#endif
+enum color_fmts {
+ COLOR_FMT_NV12,
+ COLOR_FMT_NV21,
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+};
+#define VENUS_Y_STRIDE(_color_fmt,_width) MSM_MEDIA_ALIGN(_width, 128)
+#define VENUS_UV_STRIDE(_color_fmt,_width) MSM_MEDIA_ALIGN(_width, 128)
+#define VENUS_Y_SCANLINES(_color_fmt,_width) MSM_MEDIA_ALIGN(_width, 32)
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+#define VENUS_UV_SCANLINES(_color_fmt,_width) MSM_MEDIA_ALIGN(_width, 16)
+#define VENUS_BUFFER_SIZE_UNALIGNED(_color_fmt,_width,_height) ((VENUS_Y_STRIDE(_color_fmt, _width) * VENUS_Y_SCANLINES(_color_fmt, _height)) + (VENUS_UV_STRIDE(_color_fmt, _width) * VENUS_UV_SCANLINES(_color_fmt, _height) + 4096))
+#define VENUS_BUFFER_SIZE(_color_fmt,_width,_height) MSM_MEDIA_ALIGN(VENUS_BUFFER_SIZE_UNALIGNED(_color_fmt, _width, _height), 4096)
+#endif
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
diff --git a/original-kernel-headers/media/msm_media_info.h b/original-kernel-headers/media/msm_media_info.h
new file mode 100644
index 0000000..1a16ca9
--- /dev/null
+++ b/original-kernel-headers/media/msm_media_info.h
@@ -0,0 +1,39 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ *** To edit the content of this header, modify the corresponding
+ *** source file (e.g. under external/kernel-headers/original/) then
+ *** run bionic/libc/kernel/tools/update_all.py
+ ***
+ *** Any manual change here will be lost the next time this script will
+ *** be run. You've been warned!
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __MEDIA_INFO_H__
+#define __MEDIA_INFO_H__
+#ifndef MSM_MEDIA_ALIGN
+#define MSM_MEDIA_ALIGN(__sz, __align) (((__sz) + (__align-1)) & (~(__align-1)))
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+#endif
+enum color_fmts {
+ COLOR_FMT_NV12,
+ COLOR_FMT_NV21,
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+};
+#define VENUS_Y_STRIDE(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 128)
+#define VENUS_UV_STRIDE(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 128)
+#define VENUS_Y_SCANLINES(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 32)
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+#define VENUS_UV_SCANLINES(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 16)
+#define VENUS_BUFFER_SIZE_UNALIGNED(_color_fmt, _width, _height) ((VENUS_Y_STRIDE(_color_fmt, _width) * VENUS_Y_SCANLINES(_color_fmt, _height)) + (VENUS_UV_STRIDE(_color_fmt, _width) * VENUS_UV_SCANLINES(_color_fmt, _height) + 4096))
+#define VENUS_BUFFER_SIZE(_color_fmt, _width, _height) MSM_MEDIA_ALIGN(VENUS_BUFFER_SIZE_UNALIGNED(_color_fmt, _width, _height),4096)
+#endif
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+