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

📄 vstream.h

📁 dm642_video_stream
💻 H
字号:
/*
 *  Copyright 2006 by VisionMagic Ltd.
 *  All rights reserved. Property of VisionMagic Ltd.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
#ifndef __VSTREAM_INCLUDED__
#define __VSTREAM_INCLUDED__

#define PAL_SYSTEM
//#define NTSC_SYSTEM

#define MAX_CH_SIZE						4

#define VIDEO_CAPTURE_CHANNEL_0
//#define VIDEO_CAPTURE_CHANNEL_1

#ifndef MMIOFOURCC
#define MMIOFOURCC( ch0, ch1, ch2, ch3 )				\
			( (Uint32)(Uint8)(ch0) | ( (Uint32)(Uint8)(ch1) << 8 ) |	\
			( (Uint32)(Uint8)(ch2) << 16 ) | ( (Uint32)(Uint8)(ch3) << 24 ) )
#endif

#ifndef CODEC_TYPE
#define CODEC_TYPE( ch0, ch1, ch2, ch3 )   MMIOFOURCC(ch0, ch1, ch2, ch3)
#endif 

#define STR_LEN_8				8
#define STR_LEN_16				16
#define STR_LEN_32				32
#define STR_LEN_64				64
#define STR_LEN_128				128
#define STR_LEN_256				256
#define STR_LEN_512				512

typedef enum
{
	VM_PAL = 0,
	VM_NTSC

} VIDEO_MODE;

typedef enum
{
	VR_4CIF,			// NTSC: 704x480 	Pal: 704x576
	VR_2CIF,			// NTSC: 704x240	Pal: 704x288
	VR_CIF,				// NTSC: 352x240	Pal: 352x288
	VR_QCIF,				// NTSC: 176X120	Pal: 176x144

	VR_DISABLED,

	VR_COUNT

} VIDEO_RESOLUTION;


int Stream_Init(VIDEO_MODE _mode, VIDEO_RESOLUTION _vr);
int Stream_SendVideoData(int _ch, Uint8 *_prawBuf);

#endif

⌨️ 快捷键说明

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