diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-02 23:01:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 11:24:16 +0200 |
commit | 11153a9371a84d881809f43e60830d3ed8ae60b9 (patch) | |
tree | cc70e26589e995012e32099a6be62ba5a38758e8 /libavformat/avio.h | |
parent | f77a695d2e7c309823e69c6bf4078e5beaf61f13 (diff) | |
download | ffmpeg-11153a9371a84d881809f43e60830d3ed8ae60b9.tar.gz |
avio: Collect and print statistics of bytes read & seeks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 260bdd95d0..9e9a763eff 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -128,6 +128,18 @@ typedef struct { * call the underlying seek function directly. */ int direct; + + /** + * Bytes read statistic + * This field is internal to libavformat and access from outside is not allowed. + */ + int64_t bytes_read; + + /** + * seek statistic + * This field is internal to libavformat and access from outside is not allowed. + */ + int seek_count; } AVIOContext; /* unbuffered I/O */ |