JM8.6中读取配置文件
2011-08-11 17:12
417 查看
1,配置文件(decoder.cfg)如下
2,
fscanf(fd,"%s",inp->infile); // H.264 compressed input bitsream
fscanf(fd,"%*[^\n]");去除test.264之后的字符串
fscanf(fd,"%s",inp->outfile); // YUV 4:2:2 input format
fscanf(fd,"%*[^\n]");
fscanf(fd,"%s",inp->reffile); // reference file
fscanf(fd,"%*[^\n]");
test.264 ........H.264 coded bitstream test_dec.yuv ........Output file, YUV 4:2:0 format test_rec.yuv ........Ref sequence (for SNR) 10 ........Decoded Picture Buffer size 0 ........NAL mode (0=Annex B, 1: RTP packets) 0 ........SNR computation offset 1 ........Poc Scale (1 or 2) 500000 ........Rate_Decoder 104000 ........B_decoder 73000 ........F_decoder leakybucketparam.cfg ........LeakyBucket Params This is a file containing input parameters to the JVT H.264/AVC decoder. The text line following each parameter is discarded by the decoder.
2,
fscanf(fd,"%s",inp->infile); // H.264 compressed input bitsream
fscanf(fd,"%*[^\n]");去除test.264之后的字符串
fscanf(fd,"%s",inp->outfile); // YUV 4:2:2 input format
fscanf(fd,"%*[^\n]");
fscanf(fd,"%s",inp->reffile); // reference file
fscanf(fd,"%*[^\n]");
相关文章推荐
- JM8.6解码端是如何从配置文件decoder.cfg获取数据的? (init_conf函数)
- JM8.6配置文件中参数的解释
- 无法读取连接字符串,配置文件有错。
- java读取配置文件
- java 数据库读取工具类(读取config.properties配置文件)
- Java opencsv--使用 Spring 的 PostConstruct机制,项目启动时,将CSV配置文件读取到内存 map 中
- c#Process.Start (exe)无法读取配置文件
- XML配置文件的读取处理
- 读取配置文件用到的函数
- Java使用ByteArrayOutputStream 和 ByteArrayInputStream 避免重复读取配置文件的方法
- java读取项目里配置文件properties的工具
- log4j 2读取配置文件的三种方法
- C# 使用WINAPI 进行读取写入配置文件
- 原理分析之三:初始化(配置文件读取和解析)
- java中从配置文件中读取数据
- spring-boot读取props和yml配置文件
- Spring boot读取配置文件总结
- ADO.Net读取配置文件中的连接字符串ConnectionString
- 从配置文件里读取数据,实现多数据库连接
- 配置文件的几种读取方式