2009-08-26 Chris Toshok <toshok@ximian.com>
[moon.git] / src / asf / asf-test.h
blob553599fd4e3296ef73cd742c9d86ba4a13747250
1 /*
2 * asf-testing.h: Includes methods used to test the demuxer.
4 * Contact:
5 * Moonlight List (moonlight-list@lists.ximian.com)
7 * Copyright 2007 Novell, Inc. (http://www.novell.com)
9 * See the LICENSE file included with the distribution for details.
14 This function reads all the bytes in the input,
15 corrupts them in various random ways,
16 writes them to the output,
17 and at the same time writes a log of what it does
18 in order to replay the corruption later on.
20 output_filename: can be NULL, the method computes an output filename based on the input filename.
21 log_filename: can be NULL, the method computes an output filename based on the input filename.
22 replay: if true, replays the log (in which case the log filename can't be NULL):
23 corruption: introduce corruption approximately once every X bytes.
26 //bool
27 //corrupt_file (const char* input_filename, const char* output_filename, const char* log_filename, bool replay, double corruption);
30 Tries to do everything possible with the file (parses everything, reads all packets, frames, etc).
33 //bool
34 //test_file (const char* file);