📄 videoframe.h
字号:
#ifndef VIDEO_FRAME_H#define VIDEO_FRAME_H#include <ptlib.h>#if 0#include <stdio.h>#include <math.h>#include <unistd.h>#include <errno.h>#include <signal.h>#include <string.h>#include <ctype.h>#include <sys/param.h>#include <netinet/in.h>#include <netdb.h>#include <sys/file.h>#include <sys/utsname.h>#endifclass VideoFrame { public: inline VideoFrame(u_char *fp, u_char *cr, int w, int h) : frameptr(fp), crvec(cr), width(w), height(h) {} inline VideoFrame(u_char *fp, int w, int h) : frameptr(fp), crvec(0), width(w), height(h) {} inline void SetSize(int newwidth, int newheight) {if ((newwidth!=width)||(newheight!=height)) { width=newwidth; height=newheight; } } u_char *frameptr; u_char *crvec; u_int ts; int width; int height;};#endif //ifndef VIDEO_FRAME_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -