diff options
author | John Koleszar <jkoleszar@google.com> | 2010-05-18 11:58:33 -0400 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2010-05-18 11:58:33 -0400 |
commit | 0ea50ce9cb4b65eee6afa1d041fe8beb5abda667 (patch) | |
tree | 1f3b9019f28bc56fd3156f96e5a9653a983ee61b /vp8/common/dma_desc.h | |
download | libvpx-0ea50ce9cb4b65eee6afa1d041fe8beb5abda667.tar libvpx-0ea50ce9cb4b65eee6afa1d041fe8beb5abda667.tar.gz libvpx-0ea50ce9cb4b65eee6afa1d041fe8beb5abda667.tar.bz2 libvpx-0ea50ce9cb4b65eee6afa1d041fe8beb5abda667.zip |
Initial WebM release
Diffstat (limited to 'vp8/common/dma_desc.h')
-rw-r--r-- | vp8/common/dma_desc.h | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/vp8/common/dma_desc.h b/vp8/common/dma_desc.h new file mode 100644 index 000000000..5e6fa0ca9 --- /dev/null +++ b/vp8/common/dma_desc.h @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2010 The VP8 project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license and patent + * grant that can be found in the LICENSE file in the root of the source + * tree. All contributing project authors may be found in the AUTHORS + * file in the root of the source tree. + */ + + +#ifndef _dma_desc_h +#define _dma_desc_h + +#if defined(__cplusplus) +extern "C" { +#endif + + +#define NDSIZE_LG 0x00000900 // Next Descriptor Size +#define NDSIZE_SM 0x00000800 // Next Descriptor Size +#define NDSIZE_7 0x00000700 // Next Descriptor Size +#define NDSIZE_6 0x00000600 // Next Descriptor Size +#define NDSIZE_5 0x00000500 // Next Descriptor Size +#define NDSIZE_4 0x00000400 // Next Descriptor Size +#define NDSIZE_3 0x00000300 // Next Descriptor Size +#define NDSIZE_2 0x00000200 // Next Descriptor Size +#define NDSIZE_1 0x00000100 // Next Descriptor Size + +#define FLOW_STOP 0x0000 +#define FLOW_AUTO 0x1000 +#define FLOW_DESC_AR 0x4000 +#define FLOW_DESC_SM 0x6000 +#define FLOW_DESC_LG 0x7000 + + typedef struct + { + unsigned int ndp; + //unsigned short ndpl; + //unsigned short ndph; + unsigned int sa; + //unsigned short sal; + //unsigned short sah; + + unsigned short dmacfg; + unsigned short xcnt; + unsigned short xmod; + unsigned short ycnt; + unsigned short ymod; + + } LARGE_DESC; + + typedef struct + { + unsigned short ndpl; + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + unsigned short xcnt; + unsigned short xmod; + unsigned short ycnt; + unsigned short ymod; + } SMALL_DESC; + + typedef struct + { + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + unsigned short xcnt; + unsigned short xmod; + unsigned short ycnt; + unsigned short ymod; + } ARRAY_DESC_7; + + typedef struct + { + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + unsigned short xcnt; + unsigned short xmod; + unsigned short ycnt; + } ARRAY_DESC_6; + + typedef struct + { + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + unsigned short xcnt; + unsigned short xmod; + } ARRAY_DESC_5; + + typedef struct + { + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + unsigned short xcnt; + } ARRAY_DESC_4; + + typedef struct + { + unsigned short sal; + unsigned short sah; + unsigned short dmacfg; + } ARRAY_DESC_3; + + typedef struct + { + unsigned short sal; + unsigned short sah; + } ARRAY_DESC_2; + + typedef struct + { + unsigned short sal; + } ARRAY_DESC_1; + +#if defined(__cplusplus) +} +#endif + +#endif //_dma_desc_h |