📄 print_header.c
字号:
/*$Id: print_header.c,v 1.4 2004/11/16 23:02:50 rasc Exp $ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de (rasc)$Log: print_header.c,v $Revision 1.4 2004/11/16 23:02:50 rasccmd option "-tsraw" for full/raw TS read (if supported by hard-/firmware)Revision 1.3 2004/10/12 20:37:48 rasc - Changed: TS pid filtering from file, behavior changed - New: new cmdline option -maxdmx <n> (replaces -f using pidscan) - misc. changesRevision 1.2 2004/01/01 20:09:26 rascDSM-CC INT/UNT descriptorsPES-sync changed, TS sync changed,descriptor scopeother changesRevision 1.1 2003/12/28 14:00:27 rascbugfix: section read from input filesome changes on packet header output*/#include <stdio.h>#include "dvbsnoop.h"#include "print_header.h"#include "misc/cmdline.h"#include "misc/output.h"#include "misc/pkt_time.h"void print_packet_header (OPTION *opt, char *packetTyp, int pid, int count, int length, int skipped_bytes){ char str[50]; char *s; if (pid != DUMMY_PID) { sprintf (str,"%u (0x%04x)",pid,pid); s = str; } else { s = "(Unkown PID)"; } // Full Transport Stream Read? if (opt->ts_raw_mode && (opt->packet_mode == TS)) { s = "(Full TS read)"; } out_nl (1,"\n------------------------------------------------------------"); out_nl (1,"%s-Packet: %08ld PID: %s, Length: %d (0x%04x)", packetTyp, count, s, length,length); if (opt->inpPidFile) { out_nl (1,"from file: %s",opt->inpPidFile); } else { out_receive_time (1, opt); } if (skipped_bytes) { out_nl (1,"Syncing %s... (%ld bytes skipped)", packetTyp,skipped_bytes); } out_nl (1,"------------------------------------------------------------");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -