資源簡介
從TS文件中搜索獲得節目信息
熟悉常用section/descriptor各字段含義,彼此之間的關聯關系
PAT表,PMT表,SDT表,NIT表
代碼片段和文件信息
#include?
#include?
#include?
#include?
typedef?struct?TSPat
{
unsigned?int?patflag;
unsigned?int?ts_pid;
unsigned?int?net_pid;
unsigned?int?*serv_pid;
unsigned?int?*pmt_pid;
int?n;
}TSPat;
typedef?struct?TSPmt
{
unsigned?int?pmt_pid;
unsigned?int?audio_pid;
unsigned?int?video_pid;
struct?TSPmt?*next;
}TSPmt;
typedef?struct?TSSdt
{
unsigned?int?serv_pid;
unsigned?char?service_name[256];
unsigned?int?counter;
struct?TSSdt??*next;
}TSSdt;
typedef?struct?TSNit
{
????????unsigned?int?network_pid;
double?frequency;
int???modulation;
double?symbol_rate;
}TSNit;
unsigned?char??nit_buf[4*1024]?pat_buf[1024]?pmt_buf[1024]?sdt_buf[1024];
int?patsize?pmtsize?sdtsize?nitsize?trestsize?patfla
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????54784??2010-08-11?14:20??作業2\workmain.opt
?????文件??????18143??2010-08-06?15:06??作業2\新建?Microsoft?Office?Word?文檔.docx
?????文件??????18029??2010-08-11?14:17??作業2\workmain.c
?????文件??????41984??2010-08-11?14:17??作業2\Debug\vc60.idb
?????文件??????69632??2010-08-11?14:17??作業2\Debug\vc60.pdb
?????文件??????30346??2010-08-11?14:17??作業2\Debug\workmain.obj
?????文件????1017756??2010-08-11?14:17??作業2\Debug\workmain.ilk
?????文件?????188511??2010-08-11?14:17??作業2\Debug\workmain.exe
?????文件?????508928??2010-08-11?14:17??作業2\Debug\workmain.pdb
?????文件??????????0??2010-08-11?14:17??作業2\Debug\workmain.sbr
?????文件??????43520??2010-08-10?10:57??作業2\Debug\workmain.opt
?????文件????3776900??2010-08-10?17:56??作業2\Debug\workmain.pch
?????文件????2024448??2010-08-11?14:17??作業2\Debug\workmain.bsc
?????文件??????50176??2010-08-11?14:20??作業2\workmain.ncb
?????文件????????900??2010-08-11?14:17??作業2\workmain.plg
?????文件????????541??2010-08-09?22:02??作業2\workmain.dsw
?????文件???????3427??2010-08-10?08:57??作業2\workmain.dsp
?????目錄??????????0??2010-08-09?10:28??作業2\Debug
?????目錄??????????0??2010-08-06?15:06??作業2
-----------?---------??----------?-----??----
??????????????7848025????????????????????19
- 上一篇:TCP協議C/S模式上傳
- 下一篇:操作系統實驗二、線程和管道通信實驗
評論
共有 條評論