代码拉取完成,页面将自动刷新
#ifndef __JPEGENCODE_H__
#define __JPEGENCODE_H__
#if 0
typedef struct {
unsigned int version:2; /* protocol version */
unsigned int p:1; /* padding flag */
unsigned int x:1; /* header extension flag */
unsigned int cc:4; /* CSRC count */
unsigned int m:1; /* marker bit */
unsigned int pt:7; /* payload type */
unsigned short seq; /* sequence number */
unsigned long ts; /* timestamp */
unsigned long ssrc; /* synchronization source */
unsigned long csrc[1]; /* optional CSRC list */
} rtp_hdr_t;
#endif
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;
#define RTP_HDR_SZ 12
/* The following definition is from RFC1890 */
#define RTP_PT_JPEG 26
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
void encode_jpeg_420(unsigned char *start,int w,int h);
void encode_jpeg();
void closefile();
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。