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

📄 myhost.h

📁 本程序实现了在s3c2410嵌入式板子下
💻 H
字号:
/**MyHost.h*@run sheng*/#include<sys/types.h>#include<sys/stat.h>#include <sys/ioctl.h>#include <sys/mman.h>#include <linux/videodev.h>#include<signal.h>#include<sys/socket.h>#include<stdio.h>#include<stdlib.h>#include<errno.h>#include<string.h>#include<unistd.h>#include<fcntl.h>#include<netdb.h>#include<netinet/in.h>#include<asm/page.h>#include<linux/fb.h>#include <sys/times.h>#define BACKLOG 10#define MAX_CONNECTED_NO 10#define MAXFILESIZE 1024#define MAXLINE 256#define PUSH_RGB24 1#define PIC_PALETTE 15struct v4ldevice{	int deviceHandle;	struct video_capability capability;	struct video_window captureWindow;	struct video_picture imageProperties;	struct video_mbuf memoryBuffer;	struct video_mmap mmaps;	char* memoryMap;};void MyServer(int port,char filename[]);void MyClient(char hostname[],int hostport,char filename[]);void ser_pro(int sockfd,char filename[]);void cli_pro(int sockfd,char filename[]);int readbuffer(int fd,char *buf,int len);int writebuffer(int fd,char *buf,int len);void convert(int width, int height, const unsigned char *src, unsigned char *dst, int push);void rgb24(int width, int height, const void *src, void *dst);

⌨️ 快捷键说明

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