Revision ff1ec0c3 libavformat/avio_internal.h
libavformat/avio_internal.h | ||
---|---|---|
67 | 67 |
/** @warning must be called before any I/O */ |
68 | 68 |
int ffio_set_buf_size(AVIOContext *s, int buf_size); |
69 | 69 |
|
70 |
/** |
|
71 |
* Pause and resume playing - only meaningful if using a network streaming |
|
72 |
* protocol (e.g. MMS). |
|
73 |
* @param pause 1 for pause, 0 for resume |
|
74 |
*/ |
|
75 |
int ffio_read_pause(AVIOContext *h, int pause); |
|
76 |
/** |
|
77 |
* Seek to a given timestamp relative to some component stream. |
|
78 |
* Only meaningful if using a network streaming protocol (e.g. MMS.). |
|
79 |
* @param stream_index The stream index that the timestamp is relative to. |
|
80 |
* If stream_index is (-1) the timestamp should be in AV_TIME_BASE |
|
81 |
* units from the beginning of the presentation. |
|
82 |
* If a stream_index >= 0 is used and the protocol does not support |
|
83 |
* seeking based on component streams, the call will fail with ENOTSUP. |
|
84 |
* @param timestamp timestamp in AVStream.time_base units |
|
85 |
* or if there is no stream specified then in AV_TIME_BASE units. |
|
86 |
* @param flags Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE |
|
87 |
* and AVSEEK_FLAG_ANY. The protocol may silently ignore |
|
88 |
* AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will |
|
89 |
* fail with ENOTSUP if used and not supported. |
|
90 |
* @return >= 0 on success |
|
91 |
* @see AVInputFormat::read_seek |
|
92 |
*/ |
|
93 |
int64_t ffio_read_seek (AVIOContext *h, int stream_index, |
|
94 |
int64_t timestamp, int flags); |
|
95 |
|
|
96 | 70 |
void ffio_init_checksum(AVIOContext *s, |
97 | 71 |
unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), |
98 | 72 |
unsigned long checksum); |
Also available in: Unified diff