summaryrefslogtreecommitdiff
path: root/include/video/sprd_dma_copy_k.h
blob: 035f03b47249dc63969eefadd6fb14160532947d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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