diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /include/video/sprd_dma_copy_k.h | |
Diffstat (limited to 'include/video/sprd_dma_copy_k.h')
| -rw-r--r-- | include/video/sprd_dma_copy_k.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/include/video/sprd_dma_copy_k.h b/include/video/sprd_dma_copy_k.h new file mode 100644 index 00000000..035f03b4 --- /dev/null +++ b/include/video/sprd_dma_copy_k.h @@ -0,0 +1,52 @@ +/*
+ * Copyright (C) 2012 Spreadtrum Communications Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef _SPRD_DMA_COPY_K_H_
+#define _SPRD_DMA_COPY_K_H_
+
+typedef enum {
+ DMA_COPY_YUV422 = 0,
+ DMA_COPY_YUV420,
+ DMA_COPY_YUV400,
+ DMA_COPY_RGB888,
+ DMA_COPY_RGB666,
+ DMA_COPY_RGB565,
+ DMA_COPY_RGB555,
+ DMA_COPY_FMT_MAX
+} DMA_COPY_DATA_FORMAT_E;
+
+typedef struct _dma_copy_size_tag {
+ uint32_t w;
+ uint32_t h;
+} DMA_COPY_SIZE_T;
+
+typedef struct _dma_copy_rect_tag {
+ uint32_t x;
+ uint32_t y;
+ uint32_t w;
+ uint32_t h;
+} DMA_COPY_RECT_T;
+
+typedef struct _dma_copy_addr_tag {
+ uintptr_t y_addr;
+ uintptr_t uv_addr;
+} DMA_COPY_ADDR_T;
+
+typedef struct _dma_copy_cfg_tag {
+ DMA_COPY_DATA_FORMAT_E format;
+ DMA_COPY_SIZE_T src_size;
+ DMA_COPY_RECT_T src_rec;
+ DMA_COPY_ADDR_T src_addr;
+ DMA_COPY_ADDR_T dst_addr;
+}DMA_COPY_CFG_T, *DMA_COPY_CFG_T_PTR;
+
+#endif
|
