资源简介
转载别人的, 因为分太高, 很多小伙伴不能下载.
在此把分少一点.供大家下载学习.
1)在终端显示流中所有节目的信息(节目号,解码名字,音视频ID,输入一个节目号能够保存音视频数据包,能够在播放器中播放)。(PAT,SDT,PMT表的解析)
2)输入一个节目号能够显示未来几天的信息(EIT表的解析)
3)显示NIT表中的信息
4)显示CAT表的信息(主要是ECM_PID,和EMM_PID)
5)显示系统的时间,这个是我猜的其实我也不知道是系统时间(TDT表的解析)

代码片段和文件信息
/********************************************************************************************************************************
* All Rights GLOBALSAT Reserved *
********************************************************************************************************************************
********************************************************************************************************************************
* Filename : Descriptor.c
* Description : the function about the descriptor
* Version : 1.0
* History :
* WuYunXing : 2013-4-15 Create
*********************************************************************************************************************************/
#include
#include
#include
#include “Descriptor.h“
#define PMT_CA_IDENTIFIER_DEscriptOR 0x09
#define SDT_SERVICE_DEscriptOR 0x48
#define EIT_SHORT_EVENT_DEscriptOR 0x4d
#define NIT_STATELLITE_DELIVERY_SYSTEM_DEscriptOR 0x43
#define NIT_NETWORK_NAME_DEscriptOR 0x40
#define NIT_SERVICE_LIST_DEscriptOR 0x41
/*********************************************************************************************************************************
* Function Name : GetDescriptorTagPosition
* Description : get the descriptor tag position
* Parameters :
* pucDescriptors -- the descriptor buffer
* uiDescriprotLength -- the descriptor length
* uiDescriptorTagType -- the descriptor tag type (0x4d)
* Returns : -1 -- failure >0 -- success
*********************************************************************************************************************************/
static int GetDescriptorTagPosition(unsigned char *pucDescriptor unsigned int uiDescriprotLength unsigned int uiDescriptorTagType)
{
int iDescriptorTagPosition = 0;
unsigned int iDescriptorTagLength = 0;
unsigned int uiDescriptorTagTemp = 0;
while (iDescriptorTagPosition < (int)uiDescriprotLength)
{
uiDescriptorTagTemp = pucDescriptor[iDescriptorTagPosition];
if (uiDescriptorTagType == uiDescriptorTagTemp)
{
return iDescriptorTagPosition;
}
iDescriptorTagLength = pucDescriptor[iDescriptorTagPosition + 1];
iDescriptorTagPosition = iDescriptorTagPosition + 2 + iDescriptorTagLength;
}
return -1;
}
/*********************************************************************************************************************************
* Function Name : GetServiceDescriptor
* Description : get the service_descriptor (tag is 0x48)
* Parameters :
* pstServiceDescriptor -- the service_descriptor
* pucDescriptor -- the descriptor buffer
* uiDescriprotLength -- the descriptor length
* Returns : -1 -- failure 0 -- success
*********************************************************************************************************************************/
int GetServiceDescriptor(SERVICE_DEscriptOR *pstServiceDescriptor
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 155648 2013-03-19 11:44 TS流分析工具\tsr.exe
文件 14278 2013-04-20 12:56 TS流解析代码\数组\Desc
文件 8551 2013-04-20 12:56 TS流解析代码\数组\Desc
文件 4409 2013-04-20 12:56 TS流解析代码\数组\GetPidPackage.c
文件 2662 2013-04-20 12:56 TS流解析代码\数组\GetPidPackage.h
文件 14258 2013-04-20 19:31 TS流解析代码\数组\GetSection.c
文件 4641 2013-04-20 17:00 TS流解析代码\数组\GetSection.h
文件 6971 2013-04-21 08:09 TS流解析代码\数组\MainTest.c
文件 7193 2013-04-20 16:53 TS流解析代码\数组\ParseCAT.c
文件 2095 2013-04-20 15:29 TS流解析代码\数组\ParseCAT.h
文件 11490 2013-04-20 17:06 TS流解析代码\数组\ParseEIT.c
文件 2717 2013-04-20 15:21 TS流解析代码\数组\ParseEIT.h
文件 15390 2013-04-20 16:03 TS流解析代码\数组\ParseNIT.c
文件 2613 2013-04-20 15:26 TS流解析代码\数组\ParseNIT.h
文件 8145 2013-04-24 10:49 TS流解析代码\数组\ParsePAT.c
文件 2318 2013-04-22 18:46 TS流解析代码\数组\ParsePAT.h
文件 10511 2013-04-20 19:25 TS流解析代码\数组\ParsePMT.c
文件 2658 2013-04-20 15:08 TS流解析代码\数组\ParsePMT.h
文件 9983 2013-04-20 16:03 TS流解析代码\数组\ParseSDT.c
文件 2599 2013-04-20 15:17 TS流解析代码\数组\ParseSDT.h
文件 7343 2013-04-20 15:51 TS流解析代码\数组\ParseTDT.c
文件 1749 2013-04-20 15:51 TS流解析代码\数组\ParseTDT.h
文件 3616 2013-04-20 12:56 TS流解析代码\数组\ParseTS_Length.c
文件 1544 2013-04-20 12:56 TS流解析代码\数组\ParseTS_Length.h
文件 8386 2013-04-20 12:56 TS流解析代码\数组\Program.c
文件 3035 2013-04-20 12:56 TS流解析代码\数组\Program.h
文件 13002 2013-04-27 08:41 TS流解析代码\最终版本\Desc
文件 7351 2013-04-27 09:12 TS流解析代码\最终版本\Desc
文件 4418 2013-04-23 17:37 TS流解析代码\最终版本\GetPidPackage.c
文件 2661 2013-04-22 16:10 TS流解析代码\最终版本\GetPidPackage.h
............此处省略53个文件信息
- 上一篇:光纤传感器
- 下一篇:需求分析+概要设计+详细设计+数据库设计+软件测试模板
相关资源
- TSCC.exe
- Reparatory Effects of Nicotine on NMDA Recepto
- 连续hopfield神经网络解决TSP问题
- tsai经典两步法 很不错的
- OPC插件OPC Core Components 2.00 SDK 2.20
- 基于J2EE物资出入库管理系统
- Design of Analog CMOS Integrated Circuits 拉扎
- 易语言Bootstrap类模块2.13源码
- TSUMV56RBET液晶电视芯片介绍
- 基于比较基因组学的玉米ESTs定位方法
- Effects of the cultured Cordyceps exopolysacch
- Research on pharmacological effects of lycorin
- Element_Components_v2.1.0.rplib
- 全自动采集getshell工具
- web开发舔狗日记 框架bootstrap
- OdooHotelManagementSystem 基于Odoo的酒店管
- bootstrap demo 源码大全
- 用8位spi实现16位spi
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
- ts格式视频
- LCSTS高质量中文短文本摘要数据集
- 30分钟读懂ITIL4
- Can EC-MPS reduce gastrointestinal side effect
- BOSON模拟器NetSim V5.31破解版附注册机
- eCharts全国及各省、市、县地图层jso
- dive into design patterns(Alexander Shvets)
- TSP问题城市数据及最优解
- Convex Analysis and Optimization (Bertsekas
- Investigation of the Absorption Mechanism of G
- Laboratory investigation of the effects of str
评论
共有 条评论