From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- include/video/sprd_dma_copy_k.h | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 include/video/sprd_dma_copy_k.h (limited to 'include/video/sprd_dma_copy_k.h') 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 -- cgit v1.3.1