1d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson/**************************************************************************** 2d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson **************************************************************************** 3d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** 4d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** This header was automatically generated from a Linux kernel header 5d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** of the same name, to make information necessary for userspace to 6d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** call into the kernel available to libc. It contains only constants, 7d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** structures, and macros generated from the original header, and thus, 8d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** contains no copyrightable information. 9d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** 10d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** To edit the content of this header, modify the corresponding 11d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** source file (e.g. under external/kernel-headers/original/) then 12d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** run bionic/libc/kernel/tools/update_all.py 13d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** 14d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** Any manual change here will be lost the next time this script will 15d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** be run. You've been warned! 16d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson *** 17d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson **************************************************************************** 18d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson ****************************************************************************/ 19d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#ifndef __MEDIA_INFO_H__ 20d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define __MEDIA_INFO_H__ 21d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#ifndef MSM_MEDIA_ALIGN 22d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define MSM_MEDIA_ALIGN(__sz, __align) (((__sz) + (__align-1)) & (~(__align-1))) 23d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#endif 25d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilsonenum color_fmts { 26d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson COLOR_FMT_NV12, 27668a1455b1e4f78b0e201570a0018a5927d9d1aaSimon Wilson COLOR_FMT_NV21, 28d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29668a1455b1e4f78b0e201570a0018a5927d9d1aaSimon Wilson}; 30d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define VENUS_Y_STRIDE(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 128) 31d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define VENUS_UV_STRIDE(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 128) 32d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define VENUS_Y_SCANLINES(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 32) 33d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34668a1455b1e4f78b0e201570a0018a5927d9d1aaSimon Wilson#define VENUS_UV_SCANLINES(_color_fmt, _width) MSM_MEDIA_ALIGN(_width, 16) 35d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#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)) 36d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#define VENUS_BUFFER_SIZE(_color_fmt, _width, _height) MSM_MEDIA_ALIGN(VENUS_BUFFER_SIZE_UNALIGNED(_color_fmt, _width, _height),4096) 37d502d83ad97bac4ae127d2dd3290390f3c2104f1Simon Wilson#endif 38668a1455b1e4f78b0e201570a0018a5927d9d1aaSimon Wilson/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39668a1455b1e4f78b0e201570a0018a5927d9d1aaSimon Wilson 40