您的位置:首页 > 其它

JM8.6中读取配置文件

2011-08-11 17:12 417 查看
1,配置文件(decoder.cfg)如下

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]");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: