diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-09-12 02:26:58 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-09-12 02:26:58 +0000 |
commit | 75bdb984c7f422232d963facaf4f96887d40530a (patch) | |
tree | 019b1b1604ffdd7fd076d085e9a028a0b13f1ee6 /libav/avio.h | |
parent | 208d3ddf961c745b20e19f1568dca3f631856d34 (diff) | |
download | ffmpeg-75bdb984c7f422232d963facaf4f96887d40530a.tar.gz |
Add the transfer of the new parameters from ffmpeg to ffserver and vice-versa
This adds functions to send and receive doubles and also null terminated strings.
Originally committed as revision 919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/avio.h')
-rw-r--r-- | libav/avio.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libav/avio.h b/libav/avio.h index 2c13c0377c..be4189b8a3 100644 --- a/libav/avio.h +++ b/libav/avio.h @@ -78,7 +78,7 @@ int init_put_byte(ByteIOContext *s, int (*seek)(void *opaque, offset_t offset, int whence)); void put_byte(ByteIOContext *s, int b); -void put_buffer(ByteIOContext *s, unsigned char *buf, int size); +void put_buffer(ByteIOContext *s, const unsigned char *buf, int size); void put_le64(ByteIOContext *s, UINT64 val); void put_be64(ByteIOContext *s, UINT64 val); void put_le32(ByteIOContext *s, unsigned int val); @@ -87,6 +87,9 @@ void put_le16(ByteIOContext *s, unsigned int val); void put_be16(ByteIOContext *s, unsigned int val); void put_tag(ByteIOContext *s, char *tag); +void put_native_double(ByteIOContext *s, double val); +void put_native_string(ByteIOContext *s, const char *buf); + offset_t url_fseek(ByteIOContext *s, offset_t offset, int whence); void url_fskip(ByteIOContext *s, offset_t offset); offset_t url_ftell(ByteIOContext *s); @@ -105,6 +108,8 @@ unsigned int get_le32(ByteIOContext *s); UINT64 get_le64(ByteIOContext *s); unsigned int get_le16(ByteIOContext *s); +double get_native_double(ByteIOContext *s); +char *get_native_string(ByteIOContext *s, char *buf, int maxlen); unsigned int get_be16(ByteIOContext *s); unsigned int get_be32(ByteIOContext *s); UINT64 get_be64(ByteIOContext *s); |