videoframe.h

来自「mgcp协议源代码。支持多种编码:g711」· C头文件 代码 · 共 46 行

H
46
字号
#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 + =
减小字号Ctrl + -
显示快捷键?