-#ifdef SLP_PLATFORM
-/* for using ST12, set the hw addr at SCMN_IMGB type buffer */
-#define SCMN_IMGB_MAX_PLANE (4) /* max channel count */
-
-/* image buffer definition
- +------------------------------------------+ ---
- | | ^
- | a[], p[] | |
- | +---------------------------+ --- | |
- | | | ^ | |
- | |<---------- w[] ---------->| | | |
- | | | | | |
- | | | |
- | | | h[] | e[]
- | | | |
- | | | | | |
- | | | | | |
- | | | v | |
- | +---------------------------+ --- | |
- | | v
- +------------------------------------------+ ---
-
- |<----------------- s[] ------------------>|
-*/
-
-typedef struct
-{
- int w[SCMN_IMGB_MAX_PLANE]; /* width of each image plane */
- int h[SCMN_IMGB_MAX_PLANE]; /* height of each image plane */
- int s[SCMN_IMGB_MAX_PLANE]; /* stride of each image plane */
- int e[SCMN_IMGB_MAX_PLANE]; /* elevation of each image plane */
- void * a[SCMN_IMGB_MAX_PLANE]; /* user space address of each image plane */
- void * p[SCMN_IMGB_MAX_PLANE]; /* physical address of each image plane, if needs */
- int cs; /* color space type of image */
- int x; /* left postion, if needs */
- int y; /* top position, if needs */
- int __dummy2; /* to align memory */
- int data[16]; /* arbitrary data */
-
- /* dmabuf fd */
- int fd[SCMN_IMGB_MAX_PLANE];
-
- /* flag for buffer share */
- int buf_share_method;
-
- /* Y plane size in case of ST12 */
- int y_size;
- /* UV plane size in case of ST12 */
- int uv_size;
-
- /* Tizen buffer object of each image plane */
- void *bo[SCMN_IMGB_MAX_PLANE];
-
- /* JPEG data */
- void *jpeg_data;
- /* JPEG size */
- int jpeg_size;
-
- /* tzmem buffer */
- int tz_enable;
-} SCMN_IMGB;
-
-