summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2016-08-15 17:51:00 -0700
committerTom Cherry <tomcherry@google.com>2016-08-15 17:52:52 -0700
commitc20cebc8ed9eb65066a06a8589649454d956f55c (patch)
tree685bc2b729d3ccd4f40f21dd258a3a1e1bfef301
parent3d1327bf8f65c76cae647a040f43aa3cc94020c0 (diff)
downloadmsm8x09-c20cebc8ed9eb65066a06a8589649454d956f55c.tar.gz
add msm_media_info.h from msm8x26
Add the sanitized msm8x26 version of this kernel header. Note that the original unsanitized version seems to be lost to history. Change-Id: I42bc7cfe9524ef2c6c6ad10840b54e97a8afaa77
-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 */
+