📄 ime9650_utils.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 BT656ToPAL(Uint8 *srcBuf,Uint8 *Y,Uint8 *Cb,Uint8 *Cr,int numlinesCap,int lineszCap,int x0,int y0);
void DSPWhiteBlance(Uint8 *Y,Uint8 *Cb,Uint8 *Cr,int x0,int y0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -