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

📄 mt9t001_utils.h

📁 TI DM642 DSP 驱动CMOS 成像芯片MT9T001(Micron)源代码,TI原版资料.包含驱动环境配置,对如基于DSP的数码相机,摄像机开发有重要参考价值.
💻 H
字号:
/*
 *  Copyright 2004 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */

#include <evmdm642.h>

// Access even and odd pixels only
#define EVEN_PIXELS(xx) 2*xx
#define ODD_PIXELS(xx) 2*xx + 1  

// Extract the MSBs from the RGB data
#define R5(xx) ((xx & 0x00F8) >> 3) & 0x001F
#define G6(xx) ((xx & 0x00FC) >> 2) & 0x003F
#define B5(xx) ((xx & 0x00F8) >> 3) & 0x001F

// Extract the MSBs from the 10 bit RGB data
#define R5_10(xx) ((xx & 0x03E0) >> 5) & 0x001F
#define G6_10(xx) ((xx & 0x03F0) >> 4) & 0x003F
#define B5_10(xx) ((xx & 0x03E0) >> 5) & 0x001F

// Prototypes
void fillBackgroundSVGA(int numlines, int linesz, Uint16 *rawBuf, Uint8 value);

void Bayer_2_RGB565(Uint8 *srcBuf, Uint16 *outBuf, int numlinesCap, int lineszCap, int numlinesDis, int lineszDis, int scaleHoriz, int scaleVert);
void Bayer_2_RGB565_10Bit(Uint16 *srcBuf, Uint16 *outBuf, int numlinesCap, int lineszCap, int numlinesDis, int lineszDis, int scaleHoriz, int scaleVert);
void Bayer_2_RGB565_20Bit(Uint32 *srcBuf, Uint16 *outBuf, int numlinesCap, int lineszCap, int numlinesDis, int lineszDis, int scaleHoriz, int scaleVert);


⌨️ 快捷键说明

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