video handling.c

来自「I2C的源程序」· C语言 代码 · 共 27 行

C
27
字号
#include "Core A.h"

//--------------------------------------------------------------------------//
// Function:	Generate_Picture											//
//																			//
// Parameters:	*Frame_Start												//
//					Pointer to start of frame								//
//																			//
// Return:		None														//
//																			//
// Description:	This function is used as a dummy and simply "draws" a green	//
//				square on screen (in field 1 and 2).						//
//--------------------------------------------------------------------------//
void Generate_Picture(void *Frame_Start)
{
	// index variable for access to ITU656 frame
	short (*Frame_Index)[][VIDEO_MAX_SAMPLES] = Frame_Start;

	int Line;									// points to line inside a block
	int Sample;									// points to sample in a line

	for(Line = 100; Line < VIDEO_MAX_LINES - 100; Line++)
		for(Sample = 100; Sample < VIDEO_MAX_SAMPLES - 100; Sample++)
			(*Frame_Index)[Line][Sample] = 0xe000;
}

⌨️ 快捷键说明

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