interact.cpp
来自「传输流分析」· C++ 代码 · 共 67 行
CPP
67 行
#include "main.h"/************************************************************************* Startbildschirm und Anzahl der Argumente Intro Screen and argument check*************************************************************************//****************************************************************** Status_Info prints a status line during multiplexing******************************************************************/void status_info ( unsigned int nsectors_a, unsigned int nsectors_a1, unsigned int nsectors_v, unsigned int nsectors_p, unsigned int nbytes, unsigned int buf_v, unsigned int buf_a, unsigned int buf_a1){ fprintf(statfile, " | %7d | %7d | %7d | %7d | %11d | %6d | %6d | %6d |\n", nsectors_a, nsectors_a1, nsectors_v, nsectors_p, nbytes, buf_a, buf_a1, buf_v);}void status_header(char *filename){ fprintf(statfile, "\n"); fprintf(statfile, "Multiplexing file %s\n\n", filename); status_footer(); fprintf(statfile, " | Audio1 | Audio2 | Video | Padding | Bytes MPEG | Audio1 | Audio2 | Video |\n"); fprintf(statfile, " | Sectors | Sectors | Sectors | Sectors | System File | Buffer | Buffer | Buffer |\n"); status_footer();}void status_message ( unsigned char what){ switch (what) { case STATUS_AUDIO_END: fprintf(statfile, " |file end| | | | | | | |\n"); break; case STATUS_AUDIO_TIME_OUT: fprintf(statfile, " |time out| | | | | | | |\n"); break; case STATUS_AUDIO1_END: fprintf(statfile, " | |file end| | | | | | |\n"); break; case STATUS_AUDIO1_TIME_OUT: fprintf(statfile, " | |time out| | | | | | |\n"); break; case STATUS_VIDEO_END: fprintf(statfile, " | | |file end| | | | | |\n"); break; case STATUS_VIDEO_TIME_OUT: fprintf(statfile, " | | |time out| | | | | |\n"); }}void status_footer (){ fprintf(statfile, " +---------+---------+---------+---------+-------------+--------+--------+--------+\n");}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?