forked from len0rd/rockbox
Remove all tabs within codec path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c1bb06c3af
commit
398b37124e
84 changed files with 8801 additions and 8801 deletions
|
|
@ -29,8 +29,8 @@
|
|||
# include "stream.h"
|
||||
|
||||
/*
|
||||
* NAME: stream->init()
|
||||
* DESCRIPTION: initialize stream struct
|
||||
* NAME: stream->init()
|
||||
* DESCRIPTION: initialize stream struct
|
||||
*/
|
||||
void mad_stream_init(struct mad_stream *stream)
|
||||
{
|
||||
|
|
@ -56,8 +56,8 @@ void mad_stream_init(struct mad_stream *stream)
|
|||
}
|
||||
|
||||
/*
|
||||
* NAME: stream->finish()
|
||||
* DESCRIPTION: deallocate any dynamic memory associated with stream
|
||||
* NAME: stream->finish()
|
||||
* DESCRIPTION: deallocate any dynamic memory associated with stream
|
||||
*/
|
||||
void mad_stream_finish(struct mad_stream *stream)
|
||||
{
|
||||
|
|
@ -71,11 +71,11 @@ void mad_stream_finish(struct mad_stream *stream)
|
|||
}
|
||||
|
||||
/*
|
||||
* NAME: stream->buffer()
|
||||
* DESCRIPTION: set stream buffer pointers
|
||||
* NAME: stream->buffer()
|
||||
* DESCRIPTION: set stream buffer pointers
|
||||
*/
|
||||
void mad_stream_buffer(struct mad_stream *stream,
|
||||
unsigned char const *buffer, unsigned long length)
|
||||
unsigned char const *buffer, unsigned long length)
|
||||
{
|
||||
stream->buffer = buffer;
|
||||
stream->bufend = buffer + length;
|
||||
|
|
@ -89,8 +89,8 @@ void mad_stream_buffer(struct mad_stream *stream,
|
|||
}
|
||||
|
||||
/*
|
||||
* NAME: stream->skip()
|
||||
* DESCRIPTION: arrange to skip bytes before the next frame
|
||||
* NAME: stream->skip()
|
||||
* DESCRIPTION: arrange to skip bytes before the next frame
|
||||
*/
|
||||
void mad_stream_skip(struct mad_stream *stream, unsigned long length)
|
||||
{
|
||||
|
|
@ -98,8 +98,8 @@ void mad_stream_skip(struct mad_stream *stream, unsigned long length)
|
|||
}
|
||||
|
||||
/*
|
||||
* NAME: stream->sync()
|
||||
* DESCRIPTION: locate the next stream sync word
|
||||
* NAME: stream->sync()
|
||||
* DESCRIPTION: locate the next stream sync word
|
||||
*/
|
||||
int mad_stream_sync(struct mad_stream *stream)
|
||||
{
|
||||
|
|
@ -109,7 +109,7 @@ int mad_stream_sync(struct mad_stream *stream)
|
|||
end = stream->bufend;
|
||||
|
||||
while (ptr < end - 1 &&
|
||||
!(ptr[0] == 0xff && (ptr[1] & 0xe0) == 0xe0))
|
||||
!(ptr[0] == 0xff && (ptr[1] & 0xe0) == 0xe0))
|
||||
++ptr;
|
||||
|
||||
if (end - ptr < MAD_BUFFER_GUARD)
|
||||
|
|
@ -121,38 +121,38 @@ int mad_stream_sync(struct mad_stream *stream)
|
|||
}
|
||||
|
||||
/*
|
||||
* NAME: stream->errorstr()
|
||||
* DESCRIPTION: return a string description of the current error condition
|
||||
* NAME: stream->errorstr()
|
||||
* DESCRIPTION: return a string description of the current error condition
|
||||
*/
|
||||
char const *mad_stream_errorstr(struct mad_stream const *stream)
|
||||
{
|
||||
switch (stream->error) {
|
||||
case MAD_ERROR_NONE: return "no error";
|
||||
case MAD_ERROR_NONE: return "no error";
|
||||
|
||||
case MAD_ERROR_BUFLEN: return "input buffer too small (or EOF)";
|
||||
case MAD_ERROR_BUFPTR: return "invalid (null) buffer pointer";
|
||||
case MAD_ERROR_BUFLEN: return "input buffer too small (or EOF)";
|
||||
case MAD_ERROR_BUFPTR: return "invalid (null) buffer pointer";
|
||||
|
||||
case MAD_ERROR_NOMEM: return "not enough memory";
|
||||
case MAD_ERROR_NOMEM: return "not enough memory";
|
||||
|
||||
case MAD_ERROR_LOSTSYNC: return "lost synchronization";
|
||||
case MAD_ERROR_BADLAYER: return "reserved header layer value";
|
||||
case MAD_ERROR_BADBITRATE: return "forbidden bitrate value";
|
||||
case MAD_ERROR_BADSAMPLERATE: return "reserved sample frequency value";
|
||||
case MAD_ERROR_BADEMPHASIS: return "reserved emphasis value";
|
||||
case MAD_ERROR_LOSTSYNC: return "lost synchronization";
|
||||
case MAD_ERROR_BADLAYER: return "reserved header layer value";
|
||||
case MAD_ERROR_BADBITRATE: return "forbidden bitrate value";
|
||||
case MAD_ERROR_BADSAMPLERATE: return "reserved sample frequency value";
|
||||
case MAD_ERROR_BADEMPHASIS: return "reserved emphasis value";
|
||||
|
||||
case MAD_ERROR_BADCRC: return "CRC check failed";
|
||||
case MAD_ERROR_BADBITALLOC: return "forbidden bit allocation value";
|
||||
case MAD_ERROR_BADCRC: return "CRC check failed";
|
||||
case MAD_ERROR_BADBITALLOC: return "forbidden bit allocation value";
|
||||
case MAD_ERROR_BADSCALEFACTOR: return "bad scalefactor index";
|
||||
case MAD_ERROR_BADMODE: return "bad bitrate/mode combination";
|
||||
case MAD_ERROR_BADFRAMELEN: return "bad frame length";
|
||||
case MAD_ERROR_BADBIGVALUES: return "bad big_values count";
|
||||
case MAD_ERROR_BADBLOCKTYPE: return "reserved block_type";
|
||||
case MAD_ERROR_BADSCFSI: return "bad scalefactor selection info";
|
||||
case MAD_ERROR_BADDATAPTR: return "bad main_data_begin pointer";
|
||||
case MAD_ERROR_BADPART3LEN: return "bad audio data length";
|
||||
case MAD_ERROR_BADHUFFTABLE: return "bad Huffman table select";
|
||||
case MAD_ERROR_BADHUFFDATA: return "Huffman data overrun";
|
||||
case MAD_ERROR_BADSTEREO: return "incompatible block_type for JS";
|
||||
case MAD_ERROR_BADMODE: return "bad bitrate/mode combination";
|
||||
case MAD_ERROR_BADFRAMELEN: return "bad frame length";
|
||||
case MAD_ERROR_BADBIGVALUES: return "bad big_values count";
|
||||
case MAD_ERROR_BADBLOCKTYPE: return "reserved block_type";
|
||||
case MAD_ERROR_BADSCFSI: return "bad scalefactor selection info";
|
||||
case MAD_ERROR_BADDATAPTR: return "bad main_data_begin pointer";
|
||||
case MAD_ERROR_BADPART3LEN: return "bad audio data length";
|
||||
case MAD_ERROR_BADHUFFTABLE: return "bad Huffman table select";
|
||||
case MAD_ERROR_BADHUFFDATA: return "Huffman data overrun";
|
||||
case MAD_ERROR_BADSTEREO: return "incompatible block_type for JS";
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue