diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-21 19:28:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-22 02:44:38 +0100 |
commit | e9eb8d0bcecd656292856698f603a841a82cc9c6 (patch) | |
tree | 4b601393c2f41791e8db8ea2fe4ad2a1dbae3937 /libavformat/avio.h | |
parent | e48fe14a54d8360336dbb22f3f787815b57dda47 (diff) | |
download | ffmpeg-e9eb8d0bcecd656292856698f603a841a82cc9c6.tar.gz |
avio: avio: avio_ prefixes for put_* functions
In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write
put_nbyte will be made private
put_tag will be merged with avio_put_str
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 77eb5504d3b3e1047900382350e0bc5e0bfb16b5)
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 43d94db790..f12b9f8127 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -395,6 +395,17 @@ attribute_deprecated unsigned int get_be16(AVIOContext *s); attribute_deprecated unsigned int get_be24(AVIOContext *s); attribute_deprecated unsigned int get_be32(AVIOContext *s); attribute_deprecated uint64_t get_be64(AVIOContext *s); + +attribute_deprecated void put_byte(AVIOContext *s, int b); +attribute_deprecated void put_buffer(AVIOContext *s, const unsigned char *buf, int size); +attribute_deprecated void put_le64(AVIOContext *s, uint64_t val); +attribute_deprecated void put_be64(AVIOContext *s, uint64_t val); +attribute_deprecated void put_le32(AVIOContext *s, unsigned int val); +attribute_deprecated void put_be32(AVIOContext *s, unsigned int val); +attribute_deprecated void put_le24(AVIOContext *s, unsigned int val); +attribute_deprecated void put_be24(AVIOContext *s, unsigned int val); +attribute_deprecated void put_le16(AVIOContext *s, unsigned int val); +attribute_deprecated void put_be16(AVIOContext *s, unsigned int val); /** * @} */ @@ -409,17 +420,17 @@ AVIOContext *avio_alloc_context( int (*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t (*seek)(void *opaque, int64_t offset, int whence)); -void put_byte(AVIOContext *s, int b); +void avio_w8(AVIOContext *s, int b); void put_nbyte(AVIOContext *s, int b, int count); -void put_buffer(AVIOContext *s, const unsigned char *buf, int size); -void put_le64(AVIOContext *s, uint64_t val); -void put_be64(AVIOContext *s, uint64_t val); -void put_le32(AVIOContext *s, unsigned int val); -void put_be32(AVIOContext *s, unsigned int val); -void put_le24(AVIOContext *s, unsigned int val); -void put_be24(AVIOContext *s, unsigned int val); -void put_le16(AVIOContext *s, unsigned int val); -void put_be16(AVIOContext *s, unsigned int val); +void avio_write(AVIOContext *s, const unsigned char *buf, int size); +void avio_wl64(AVIOContext *s, uint64_t val); +void avio_wb64(AVIOContext *s, uint64_t val); +void avio_wl32(AVIOContext *s, unsigned int val); +void avio_wb32(AVIOContext *s, unsigned int val); +void avio_wl24(AVIOContext *s, unsigned int val); +void avio_wb24(AVIOContext *s, unsigned int val); +void avio_wl16(AVIOContext *s, unsigned int val); +void avio_wb16(AVIOContext *s, unsigned int val); void put_tag(AVIOContext *s, const char *tag); #if FF_API_OLD_AVIO |