0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

stream: remove unused functions

These were used by old demuxers.
This commit is contained in:
wm4 2013-07-12 22:10:45 +02:00
parent f63193f58f
commit 6d8f8fc4f0

View File

@ -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);