diff options
author | wm4 <wm4@nowhere> | 2013-07-12 22:10:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-12 22:16:27 +0200 |
commit | 6d8f8fc4f08ade853b4171b068cf9d855eb5a936 (patch) | |
tree | 39bed65880ac73d5a64e593dc18618979ddd2900 /stream | |
parent | f63193f58f7214ef3a4f82be045f8a3cfd14b8ac (diff) | |
download | mpv-6d8f8fc4f08ade853b4171b068cf9d855eb5a936.tar.bz2 mpv-6d8f8fc4f08ade853b4171b068cf9d855eb5a936.tar.xz |
stream: remove unused functions
These were used by old demuxers.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/stream/stream.h b/stream/stream.h index 36adea2c40..cd2b36a3a3 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -183,14 +183,6 @@ inline static int stream_read_char(stream_t *s) (stream_fill_buffer(s) ? s->buffer[s->buf_pos++] : -256); } -inline static unsigned int stream_read_word(stream_t *s) -{ - int x, y; - x = stream_read_char(s); - y = stream_read_char(s); - return (x << 8) | y; -} - inline static unsigned int stream_read_dword(stream_t *s) { unsigned int y; @@ -201,26 +193,6 @@ inline static unsigned int stream_read_dword(stream_t *s) return y; } -#define stream_read_fourcc stream_read_dword_le - -inline static unsigned int stream_read_word_le(stream_t *s) -{ - int x, y; - x = stream_read_char(s); - y = stream_read_char(s); - return (y << 8) | x; -} - -inline static uint32_t stream_read_dword_le(stream_t *s) -{ - unsigned int y; - y = stream_read_char(s); - y |= stream_read_char(s) << 8; - y |= stream_read_char(s) << 16; - y |= stream_read_char(s) << 24; - return y; -} - inline static uint64_t stream_read_qword(stream_t *s) { uint64_t y; @@ -235,14 +207,6 @@ inline static uint64_t stream_read_qword(stream_t *s) return y; } -inline static uint64_t stream_read_qword_le(stream_t *s) -{ - uint64_t y; - y = stream_read_dword_le(s); - y |= (uint64_t)stream_read_dword_le(s) << 32; - return y; -} - unsigned char *stream_read_line(stream_t *s, unsigned char *mem, int max, int utf16); |