⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mae_memory.h

📁 AU1200嵌入式处理器媒体加速引擎(mae)的驱动
💻 H
字号:
/*
 *	API to Alchemy MAE
 *
 * Copyright 2004 AMD
 *
 *  This program is free software; you can redistribute  it and/or modify it
 *  under  the terms of  the GNU General  Public License as published by the
 *  Free Software Foundation;  either version 2 of the  License, or (at your
 *  option) any later version.
 *
 *  THIS  SOFTWARE  IS PROVIDED   ``AS  IS'' AND   ANY  EXPRESS OR IMPLIED
 *  WARRANTIES,   INCLUDING, BUT NOT  LIMITED  TO, THE IMPLIED WARRANTIES OF
 *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
 *  NO  EVENT  SHALL   THE AUTHOR  BE    LIABLE FOR ANY   DIRECT, INDIRECT,
 *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 *  NOT LIMITED   TO, PROCUREMENT OF  SUBSTITUTE GOODS  OR SERVICES; LOSS OF
 *  USE, DATA,  OR PROFITS; OR  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 *  ANY THEORY OF LIABILITY, WHETHER IN  CONTRACT, STRICT LIABILITY, OR TORT
 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *  You should have received a copy of the  GNU General Public License along
 *  with this program; if not, write  to the Free Software Foundation, Inc.,
 *  675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __AU1XXX_MAE_MEMORY_H
#define __AU1XXX_MAE_MEMORY_H

#define DEFAULT_DESCRIPTORS_SIZE	0x100
#define DEFAULT_BUFSIZE 0x1AE500
#define DEFAULT_EXTRA_INFO_BUFSIZE 0x1AE500
#define MAX_NUM_MAEQ_ELEMENTS		6  
#define NUM_DATAQ_ELEMENTS			6 
#define NUM_YUVQ_ELEMENTS			4
#define NUM_RGBQ_ELEMENTS			4

// MAE output "drawing" size
// QVGA: 320x240
// VGA:  640x480
// WVGA: 800x480
// 16:9  854x480
#define SIZE_RGB_WIDTH  800
#define SIZE_RGB_HEIGHT 480

// MAE output color depth
// 16 bit color is RGB 5:6:5
// 32 bit color is RGB 8:8:8:A where alpha is non-transparent
#define SIZE_RGB_BPP 16

#define SIZE_RGB_FRAME (SIZE_RGB_WIDTH*SIZE_RGB_HEIGHT*SIZE_RGB_BPP/8)

// MAE decoded picture size
// currently fixed at D1 PAL size (720x576)
// in 8-bit 4:2:0 format
#define SIZE_YUV_WIDTH 720
#define SIZE_YUV_HEIGHT 576
#define SIZE_YUV_BPP 8

#define SIZE_YUV_FRAME (SIZE_YUV_WIDTH*SIZE_YUV_HEIGHT*(SIZE_YUV_BPP/8)*3/2)

#define SIZE_MAE_MASTER_STRUCT		0x1000
#define SIZE_AVSYNC					0x1000
#define SIZE_MAEQ					0x2f00
#define SIZE_DATAQ					0x100
#define SIZE_YUVQ					0x100
#define SIZE_RGBQ					0x100
#ifdef MAE_HW
#define SIZE_MAE_CONFIG_STRUCT		0
#else
#define SIZE_MAE_CONFIG_STRUCT		0x100     // KK - This is to hold the global MAE Config structure - required only working with the CModel
#endif
#define SIZE_DESCRIPTOR_BASE		0x200  // 0x100        // KK - 32 descriptors
//#define SIZE_DATA_BUFFER_BASE 0x3FF000
#define SIZE_DATA_BUFFER_BASE		(NUM_DATAQ_ELEMENTS * DEFAULT_BUFSIZE) // buffer memory for 7 data buffers - to match the 7 YUV buffers
// #define SIZE_YUV_FRAMES_BASE 0x55f800 // KK - 6 YUV // 0x495000 // KK - 5 YUV // 0x300000 // !!! FIXME 0x32a000
#define SIZE_YUV_FRAMES_BASE		(NUM_YUVQ_ELEMENTS * SIZE_YUV_FRAME) // KK - 7 YUV // 0x300000 // !!! FIXME 0x32a000
#define SIZE_RGB_FRAMES_BASE		(NUM_RGBQ_ELEMENTS * SIZE_RGB_FRAME) // 0x900000
#define SIZE_SCRATCH_PAD_BASE		0x6540 // Scratch pad memory (for WMV9 filters). 576 * 45 (Max number of MBs in a row)
#define SIZE_DUMP_DATA_BASE			0x3000 // KK - ~12KB  for dumping debug data

#endif /* __AU1XXX_MAE_MEMORY_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -