代码拉取完成,页面将自动刷新
/*************************************************************************
> File Name: mjpeg_rtp.h
> Author:
> Mail:
> Created Time: 2015年01月23日 星期五 16时47分33秒
************************************************************************/
#ifndef _MJPEG_RTP_H
#define _MJPEG_RTP_H
typedef struct {
unsigned char cc:4;
unsigned char x:1;
unsigned char p:1;
unsigned char version:2;
unsigned char pt:7;
unsigned char m:1;
unsigned short seq;
unsigned int ts;
unsigned int ssrc;
}rtp_hdr_t;
struct jpeghdr {
unsigned int tspec:8; /* type-specific field */
unsigned int off:24; /* fragment byte offset */
unsigned char type; /* id of jpeg decoder params */
unsigned char q; /* quantization factor (or table id) */
unsigned char width; /* frame width in 8 pixel blocks */
unsigned char height; /* frame height in 8 pixel blocks */
};
struct jpeghdr_rst{
unsigned short dri;
unsigned int f:1;
unsigned int l:1;
unsigned int count:14;
};
struct jpeghdr_qtable {
unsigned char mbz;
unsigned char precision;
unsigned short length;
};
#define RTP_JPEG_RESTART 0x40
#define RTP_HDR_SZ 12
#define RTP_PT_JPEG 26
void jpeg_encode_yuyv422_rtp(unsigned char *jpeg_data,int width,int hight);
void jpeg_encode_yuyv420_rtp(unsigned char *jpeg_data,int width,int hight);
/*直接采集jpeg数据传输*/
void jpeg_rtp(unsigned char *jpeg_data,int width,int height,int imagesize);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。