Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ac5c557f
Commit
ac5c557f
authored
May 18, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ALL: changed __inline__ with inline (autoconf does the job for us anyway,
and mipspro doesn't know about __inline__).
parent
feb33ac8
Changes
39
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
241 additions
and
254 deletions
+241
-254
include/common.h
include/common.h
+2
-2
include/input_ext-dec.h
include/input_ext-dec.h
+17
-17
include/input_ext-plugins.h
include/input_ext-plugins.h
+3
-3
include/input_iovec.h
include/input_iovec.h
+1
-1
include/modules.h
include/modules.h
+2
-2
include/threads_funcs.h
include/threads_funcs.h
+24
-26
plugins/a52/a52.c
plugins/a52/a52.c
+3
-3
plugins/ac3_adec/ac3_bit_allocate.c
plugins/ac3_adec/ac3_bit_allocate.c
+5
-5
plugins/ac3_adec/ac3_exponent.h
plugins/ac3_adec/ac3_exponent.h
+4
-4
plugins/ac3_adec/ac3_mantissa.h
plugins/ac3_adec/ac3_mantissa.h
+5
-5
plugins/ac3_adec/ac3_rematrix.c
plugins/ac3_adec/ac3_rematrix.c
+2
-2
plugins/avi/avi.c
plugins/avi/avi.c
+9
-9
plugins/ffmpeg/ffmpeg.c
plugins/ffmpeg/ffmpeg.c
+5
-5
plugins/gtk/gtk_common.h
plugins/gtk/gtk_common.h
+2
-2
plugins/idct/block_c.h
plugins/idct/block_c.h
+5
-5
plugins/idct/block_mmx.h
plugins/idct/block_mmx.h
+6
-6
plugins/idct/idct.c
plugins/idct/idct.c
+3
-3
plugins/idct/idct_sparse.h
plugins/idct/idct_sparse.h
+3
-3
plugins/idct/idctclassic.c
plugins/idct/idctclassic.c
+3
-3
plugins/idct/idctmmx.c
plugins/idct/idctmmx.c
+8
-8
plugins/idct/idctmmxext.c
plugins/idct/idctmmxext.c
+8
-8
plugins/mad/mad_libmad.c
plugins/mad/mad_libmad.c
+3
-3
plugins/mga/xmga.c
plugins/mga/xmga.c
+2
-2
plugins/motion/motion3dnow.c
plugins/motion/motion3dnow.c
+13
-13
plugins/motion/motionmmx.c
plugins/motion/motionmmx.c
+14
-14
plugins/motion/motionmmxext.c
plugins/motion/motionmmxext.c
+13
-13
plugins/mpeg_system/mpeg_audio.c
plugins/mpeg_system/mpeg_audio.c
+2
-2
plugins/mpeg_vdec/video_decoder.c
plugins/mpeg_vdec/video_decoder.c
+7
-9
plugins/mpeg_vdec/video_parser.h
plugins/mpeg_vdec/video_parser.h
+3
-3
plugins/mpeg_vdec/vpar_blocks.c
plugins/mpeg_vdec/vpar_blocks.c
+17
-22
plugins/mpeg_vdec/vpar_headers.c
plugins/mpeg_vdec/vpar_headers.c
+11
-12
plugins/mpeg_vdec/vpar_pool.h
plugins/mpeg_vdec/vpar_pool.h
+3
-3
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+2
-2
plugins/spudec/spu_decoder.h
plugins/spudec/spu_decoder.h
+3
-3
plugins/x11/xcommon.c
plugins/x11/xcommon.c
+2
-2
src/audio_output/aout_pcm.c
src/audio_output/aout_pcm.c
+4
-5
src/input/input_ext-dec.c
src/input/input_ext-dec.c
+4
-4
src/input/input_ext-plugins.c
src/input/input_ext-plugins.c
+15
-15
src/input/mpeg_system.c
src/input/mpeg_system.c
+3
-5
No files found.
include/common.h
View file @
ac5c557f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
* Collection of useful common types and macros definitions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.10
6 2002/05/15 13:07:18 marcari
Exp $
* $Id: common.h,v 1.10
7 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
@@ -335,7 +335,7 @@ typedef struct iso639_lang_s iso639_lang_t;
...
@@ -335,7 +335,7 @@ typedef struct iso639_lang_s iso639_lang_t;
#else
#else
# define hton16 htons
# define hton16 htons
# define hton32 htonl
# define hton32 htonl
static
__inline__
u64
__hton64
(
u64
i
)
static
inline
u64
__hton64
(
u64
i
)
{
{
return
((
u64
)(
htonl
((
i
)
&
0xffffffff
))
<<
32
)
return
((
u64
)(
htonl
((
i
)
&
0xffffffff
))
<<
32
)
|
htonl
(((
i
)
>>
32
)
&
0xffffffff
);
|
htonl
(((
i
)
>>
32
)
&
0xffffffff
);
...
...
include/input_ext-dec.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_ext-dec.h: structures exported to the VideoLAN decoders
* input_ext-dec.h: structures exported to the VideoLAN decoders
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_ext-dec.h,v 1.5
7 2002/05/13 21:55:30 fenrir
Exp $
* $Id: input_ext-dec.h,v 1.5
8 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Kaempf <maxx@via.ecp.fr>
* Michel Kaempf <maxx@via.ecp.fr>
...
@@ -239,7 +239,7 @@ void CurrentPTS( struct bit_stream_s *, mtime_t *, mtime_t * );
...
@@ -239,7 +239,7 @@ void CurrentPTS( struct bit_stream_s *, mtime_t *, mtime_t * );
* on a word boundary (XXX: there must be at least sizeof(WORD_TYPE) - 1
* on a word boundary (XXX: there must be at least sizeof(WORD_TYPE) - 1
* empty bytes in the bit buffer)
* empty bytes in the bit buffer)
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
AlignWord
(
bit_stream_t
*
p_bit_stream
)
static
inline
void
AlignWord
(
bit_stream_t
*
p_bit_stream
)
{
{
while
(
(
ptrdiff_t
)
p_bit_stream
->
p_byte
while
(
(
ptrdiff_t
)
p_bit_stream
->
p_byte
&
(
sizeof
(
WORD_TYPE
)
-
1
)
)
&
(
sizeof
(
WORD_TYPE
)
-
1
)
)
...
@@ -265,8 +265,8 @@ static __inline__ void AlignWord( bit_stream_t * p_bit_stream )
...
@@ -265,8 +265,8 @@ static __inline__ void AlignWord( bit_stream_t * p_bit_stream )
/*****************************************************************************
/*****************************************************************************
* ShowBits : return i_bits bits from the bit stream
* ShowBits : return i_bits bits from the bit stream
*****************************************************************************/
*****************************************************************************/
static
__inline__
u32
ShowBits
(
bit_stream_t
*
p_bit_stream
,
static
inline
u32
ShowBits
(
bit_stream_t
*
p_bit_stream
,
unsigned
int
i_bits
)
unsigned
int
i_bits
)
{
{
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
{
{
...
@@ -288,8 +288,8 @@ static __inline__ u32 ShowBits( bit_stream_t * p_bit_stream,
...
@@ -288,8 +288,8 @@ static __inline__ u32 ShowBits( bit_stream_t * p_bit_stream,
* ShowSignedBits : return i_bits bits from the bit stream, using signed
* ShowSignedBits : return i_bits bits from the bit stream, using signed
* arithmetic
* arithmetic
*****************************************************************************/
*****************************************************************************/
static
__inline__
s32
ShowSignedBits
(
bit_stream_t
*
p_bit_stream
,
static
inline
s32
ShowSignedBits
(
bit_stream_t
*
p_bit_stream
,
unsigned
int
i_bits
)
unsigned
int
i_bits
)
{
{
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
{
{
...
@@ -306,8 +306,8 @@ static __inline__ s32 ShowSignedBits( bit_stream_t * p_bit_stream,
...
@@ -306,8 +306,8 @@ static __inline__ s32 ShowSignedBits( bit_stream_t * p_bit_stream,
* RemoveBits : removes i_bits bits from the bit buffer
* RemoveBits : removes i_bits bits from the bit buffer
* XXX: do not use for 32 bits, see RemoveBits32
* XXX: do not use for 32 bits, see RemoveBits32
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
RemoveBits
(
bit_stream_t
*
p_bit_stream
,
static
inline
void
RemoveBits
(
bit_stream_t
*
p_bit_stream
,
unsigned
int
i_bits
)
unsigned
int
i_bits
)
{
{
p_bit_stream
->
fifo
.
i_available
-=
i_bits
;
p_bit_stream
->
fifo
.
i_available
-=
i_bits
;
...
@@ -334,7 +334,7 @@ static __inline__ void RemoveBits( bit_stream_t * p_bit_stream,
...
@@ -334,7 +334,7 @@ static __inline__ void RemoveBits( bit_stream_t * p_bit_stream,
* refill it)
* refill it)
*****************************************************************************/
*****************************************************************************/
#if (WORD_TYPE == u32)
#if (WORD_TYPE == u32)
static
__inline__
void
RemoveBits32
(
bit_stream_t
*
p_bit_stream
)
static
inline
void
RemoveBits32
(
bit_stream_t
*
p_bit_stream
)
{
{
if
(
p_bit_stream
->
p_byte
<=
p_bit_stream
->
p_end
-
sizeof
(
WORD_TYPE
)
)
if
(
p_bit_stream
->
p_byte
<=
p_bit_stream
->
p_end
-
sizeof
(
WORD_TYPE
)
)
{
{
...
@@ -361,8 +361,8 @@ static __inline__ void RemoveBits32( bit_stream_t * p_bit_stream )
...
@@ -361,8 +361,8 @@ static __inline__ void RemoveBits32( bit_stream_t * p_bit_stream )
* GetBits : returns i_bits bits from the bit stream and removes them
* GetBits : returns i_bits bits from the bit stream and removes them
* XXX: do not use for 32 bits, see GetBits32
* XXX: do not use for 32 bits, see GetBits32
*****************************************************************************/
*****************************************************************************/
static
__inline__
u32
GetBits
(
bit_stream_t
*
p_bit_stream
,
static
inline
u32
GetBits
(
bit_stream_t
*
p_bit_stream
,
unsigned
int
i_bits
)
unsigned
int
i_bits
)
{
{
u32
i_result
;
u32
i_result
;
...
@@ -398,8 +398,8 @@ static __inline__ u32 GetBits( bit_stream_t * p_bit_stream,
...
@@ -398,8 +398,8 @@ static __inline__ u32 GetBits( bit_stream_t * p_bit_stream,
* using signed arithmetic
* using signed arithmetic
* XXX: do not use for 32 bits
* XXX: do not use for 32 bits
*****************************************************************************/
*****************************************************************************/
static
__inline__
s32
GetSignedBits
(
bit_stream_t
*
p_bit_stream
,
static
inline
s32
GetSignedBits
(
bit_stream_t
*
p_bit_stream
,
unsigned
int
i_bits
)
unsigned
int
i_bits
)
{
{
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
{
{
...
@@ -421,7 +421,7 @@ static __inline__ s32 GetSignedBits( bit_stream_t * p_bit_stream,
...
@@ -421,7 +421,7 @@ static __inline__ s32 GetSignedBits( bit_stream_t * p_bit_stream,
* GetBits32 : returns 32 bits from the bit stream and removes them
* GetBits32 : returns 32 bits from the bit stream and removes them
*****************************************************************************/
*****************************************************************************/
#if (WORD_TYPE == u32)
#if (WORD_TYPE == u32)
static
__inline__
u32
GetBits32
(
bit_stream_t
*
p_bit_stream
)
static
inline
u32
GetBits32
(
bit_stream_t
*
p_bit_stream
)
{
{
u32
i_result
;
u32
i_result
;
...
@@ -461,7 +461,7 @@ static __inline__ u32 GetBits32( bit_stream_t * p_bit_stream )
...
@@ -461,7 +461,7 @@ static __inline__ u32 GetBits32( bit_stream_t * p_bit_stream )
/*****************************************************************************
/*****************************************************************************
* RealignBits : realigns the bit buffer on an 8-bit boundary
* RealignBits : realigns the bit buffer on an 8-bit boundary
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
RealignBits
(
bit_stream_t
*
p_bit_stream
)
static
inline
void
RealignBits
(
bit_stream_t
*
p_bit_stream
)
{
{
p_bit_stream
->
fifo
.
buffer
<<=
(
p_bit_stream
->
fifo
.
i_available
&
0x7
);
p_bit_stream
->
fifo
.
buffer
<<=
(
p_bit_stream
->
fifo
.
i_available
&
0x7
);
p_bit_stream
->
fifo
.
i_available
&=
~
0x7
;
p_bit_stream
->
fifo
.
i_available
&=
~
0x7
;
...
@@ -475,8 +475,8 @@ static __inline__ void RealignBits( bit_stream_t * p_bit_stream )
...
@@ -475,8 +475,8 @@ static __inline__ void RealignBits( bit_stream_t * p_bit_stream )
* RealignBits(). p_buffer must point to a buffer at least as big as i_buf_len
* RealignBits(). p_buffer must point to a buffer at least as big as i_buf_len
* otherwise your code will crash.
* otherwise your code will crash.
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
GetChunk
(
bit_stream_t
*
p_bit_stream
,
static
inline
void
GetChunk
(
bit_stream_t
*
p_bit_stream
,
byte_t
*
p_buffer
,
size_t
i_buf_len
)
byte_t
*
p_buffer
,
size_t
i_buf_len
)
{
{
ptrdiff_t
i_available
;
ptrdiff_t
i_available
;
...
...
include/input_ext-plugins.h
View file @
ac5c557f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* but exported to plug-ins
* but exported to plug-ins
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
* Copyright (C) 1999-2002 VideoLAN
* $Id: input_ext-plugins.h,v 1.2
7 2002/05/15 13:07:18 marcari
Exp $
* $Id: input_ext-plugins.h,v 1.2
8 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -145,8 +145,8 @@ void input_AccessEnd( struct input_thread_s * );
...
@@ -145,8 +145,8 @@ void input_AccessEnd( struct input_thread_s * );
/*****************************************************************************
/*****************************************************************************
* Create a NULL packet for padding in case of a data loss
* Create a NULL packet for padding in case of a data loss
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
input_NullPacket
(
input_thread_t
*
p_input
,
static
inline
void
input_NullPacket
(
input_thread_t
*
p_input
,
es_descriptor_t
*
p_es
)
es_descriptor_t
*
p_es
)
{
{
data_packet_t
*
p_pad_data
;
data_packet_t
*
p_pad_data
;
pes_packet_t
*
p_pes
;
pes_packet_t
*
p_pes
;
...
...
include/input_iovec.h
View file @
ac5c557f
...
@@ -34,7 +34,7 @@ struct iovec
...
@@ -34,7 +34,7 @@ struct iovec
* readv_*: readv() replacements for iovec-impaired C libraries
* readv_*: readv() replacements for iovec-impaired C libraries
*****************************************************************************/
*****************************************************************************/
#if defined( WIN32 )
#if defined( WIN32 )
static
__inline__
int
readv
(
int
i_fd
,
struct
iovec
*
p_iovec
,
int
i_count
)
static
inline
int
readv
(
int
i_fd
,
struct
iovec
*
p_iovec
,
int
i_count
)
{
{
int
i_index
,
i_len
,
i_total
=
0
;
int
i_index
,
i_len
,
i_total
=
0
;
unsigned
char
*
p_base
;
unsigned
char
*
p_base
;
...
...
include/modules.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* modules.h : Module management functions.
* modules.h : Module management functions.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: modules.h,v 1.
49 2002/05/15 00:02:27
sam Exp $
* $Id: modules.h,v 1.
50 2002/05/18 17:47:46
sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -39,7 +39,7 @@ typedef void * module_handle_t;
...
@@ -39,7 +39,7 @@ typedef void * module_handle_t;
/*****************************************************************************
/*****************************************************************************
* Module capabilities.
* Module capabilities.
*****************************************************************************/
*****************************************************************************/
static
__inline__
char
*
GetCapabilityName
(
unsigned
int
i_capa
)
static
inline
char
*
GetCapabilityName
(
unsigned
int
i_capa
)
{
{
/* The sole purpose of this inline function and the ugly #defines
/* The sole purpose of this inline function and the ugly #defines
* around it is to avoid having two places to modify when adding a
* around it is to avoid having two places to modify when adding a
...
...
include/threads_funcs.h
View file @
ac5c557f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* This header provides a portable threads implementation.
* This header provides a portable threads implementation.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: threads_funcs.h,v 1.
2 2002/04/29 23:57:38 massiot
Exp $
* $Id: threads_funcs.h,v 1.
3 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
/*****************************************************************************
/*****************************************************************************
* vlc_threads_init: initialize threads system
* vlc_threads_init: initialize threads system
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
vlc_threads_init
(
void
)
static
inline
int
vlc_threads_init
(
void
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_init
();
return
pth_init
();
...
@@ -57,7 +57,7 @@ static __inline__ int vlc_threads_init( void )
...
@@ -57,7 +57,7 @@ static __inline__ int vlc_threads_init( void )
/*****************************************************************************
/*****************************************************************************
* vlc_threads_end: stop threads system
* vlc_threads_end: stop threads system
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
vlc_threads_end
(
void
)
static
inline
int
vlc_threads_end
(
void
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_kill
();
return
pth_kill
();
...
@@ -83,7 +83,7 @@ static __inline__ int vlc_threads_end( void )
...
@@ -83,7 +83,7 @@ static __inline__ int vlc_threads_end( void )
/*****************************************************************************
/*****************************************************************************
* vlc_mutex_init: initialize a mutex
* vlc_mutex_init: initialize a mutex
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
vlc_mutex_init
(
vlc_mutex_t
*
p_mutex
)
static
inline
int
vlc_mutex_init
(
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_mutex_init
(
p_mutex
);
return
pth_mutex_init
(
p_mutex
);
...
@@ -165,8 +165,8 @@ static __inline__ int vlc_mutex_init( vlc_mutex_t *p_mutex )
...
@@ -165,8 +165,8 @@ static __inline__ int vlc_mutex_init( vlc_mutex_t *p_mutex )
_vlc_mutex_lock( "(unknown)", 0, P_MUTEX )
_vlc_mutex_lock( "(unknown)", 0, P_MUTEX )
#endif
#endif
static
__inline__
int
_vlc_mutex_lock
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_mutex_lock
(
char
*
psz_file
,
int
i_line
,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_mutex_acquire
(
p_mutex
,
TRUE
,
NULL
);
return
pth_mutex_acquire
(
p_mutex
,
TRUE
,
NULL
);
...
@@ -228,8 +228,8 @@ static __inline__ int _vlc_mutex_lock( char * psz_file, int i_line,
...
@@ -228,8 +228,8 @@ static __inline__ int _vlc_mutex_lock( char * psz_file, int i_line,
_vlc_mutex_unlock( "(unknown)", 0, P_MUTEX )
_vlc_mutex_unlock( "(unknown)", 0, P_MUTEX )
#endif
#endif
static
__inline__
int
_vlc_mutex_unlock
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_mutex_unlock
(
char
*
psz_file
,
int
i_line
,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_mutex_release
(
p_mutex
);
return
pth_mutex_release
(
p_mutex
);
...
@@ -289,8 +289,8 @@ static __inline__ int _vlc_mutex_unlock( char * psz_file, int i_line,
...
@@ -289,8 +289,8 @@ static __inline__ int _vlc_mutex_unlock( char * psz_file, int i_line,
_vlc_mutex_destroy( "(unknown)", 0, P_MUTEX )
_vlc_mutex_destroy( "(unknown)", 0, P_MUTEX )
#endif
#endif
static
__inline__
int
_vlc_mutex_destroy
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_mutex_destroy
(
char
*
psz_file
,
int
i_line
,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
0
;
return
0
;
...
@@ -336,7 +336,7 @@ static __inline__ int _vlc_mutex_destroy( char * psz_file, int i_line,
...
@@ -336,7 +336,7 @@ static __inline__ int _vlc_mutex_destroy( char * psz_file, int i_line,
/*****************************************************************************
/*****************************************************************************
* vlc_cond_init: initialize a condition
* vlc_cond_init: initialize a condition
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
vlc_cond_init
(
vlc_cond_t
*
p_condvar
)
static
inline
int
vlc_cond_init
(
vlc_cond_t
*
p_condvar
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_cond_init
(
p_condvar
);
return
pth_cond_init
(
p_condvar
);
...
@@ -390,7 +390,7 @@ static __inline__ int vlc_cond_init( vlc_cond_t *p_condvar )
...
@@ -390,7 +390,7 @@ static __inline__ int vlc_cond_init( vlc_cond_t *p_condvar )
/*****************************************************************************
/*****************************************************************************
* vlc_cond_signal: start a thread on condition completion
* vlc_cond_signal: start a thread on condition completion
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
vlc_cond_signal
(
vlc_cond_t
*
p_condvar
)
static
inline
int
vlc_cond_signal
(
vlc_cond_t
*
p_condvar
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_cond_notify
(
p_condvar
,
FALSE
);
return
pth_cond_notify
(
p_condvar
,
FALSE
);
...
@@ -463,7 +463,7 @@ static __inline__ int vlc_cond_signal( vlc_cond_t *p_condvar )
...
@@ -463,7 +463,7 @@ static __inline__ int vlc_cond_signal( vlc_cond_t *p_condvar )
* Only works with pthreads, you need to adapt it for others
* Only works with pthreads, you need to adapt it for others
* FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME
* FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME
*/
*/
static
__inline__
int
vlc_cond_broadcast
(
vlc_cond_t
*
p_condvar
)
static
inline
int
vlc_cond_broadcast
(
vlc_cond_t
*
p_condvar
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_cond_notify
(
p_condvar
,
FALSE
);
return
pth_cond_notify
(
p_condvar
,
FALSE
);
...
@@ -543,9 +543,9 @@ static __inline__ int vlc_cond_broadcast( vlc_cond_t *p_condvar )
...
@@ -543,9 +543,9 @@ static __inline__ int vlc_cond_broadcast( vlc_cond_t *p_condvar )
_vlc_cond_wait( "(unknown)", 0, P_COND, P_MUTEX )
_vlc_cond_wait( "(unknown)", 0, P_COND, P_MUTEX )
#endif
#endif
static
__inline__
int
_vlc_cond_wait
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_cond_wait
(
char
*
psz_file
,
int
i_line
,
vlc_cond_t
*
p_condvar
,
vlc_cond_t
*
p_condvar
,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
pth_cond_await
(
p_condvar
,
p_mutex
,
NULL
);
return
pth_cond_await
(
p_condvar
,
p_mutex
,
NULL
);
...
@@ -670,8 +670,8 @@ static __inline__ int _vlc_cond_wait( char * psz_file, int i_line,
...
@@ -670,8 +670,8 @@ static __inline__ int _vlc_cond_wait( char * psz_file, int i_line,
_vlc_cond_destroy( "(unknown)", 0, P_COND )
_vlc_cond_destroy( "(unknown)", 0, P_COND )
#endif
#endif
static
__inline__
int
_vlc_cond_destroy
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_cond_destroy
(
char
*
psz_file
,
int
i_line
,
vlc_cond_t
*
p_condvar
)
vlc_cond_t
*
p_condvar
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
return
0
;
return
0
;
...
@@ -707,11 +707,9 @@ static __inline__ int _vlc_cond_destroy( char * psz_file, int i_line,
...
@@ -707,11 +707,9 @@ static __inline__ int _vlc_cond_destroy( char * psz_file, int i_line,
#define vlc_thread_create( P_THREAD, PSZ_NAME, FUNC, P_DATA ) \
#define vlc_thread_create( P_THREAD, PSZ_NAME, FUNC, P_DATA ) \
_vlc_thread_create( __FILE__, __LINE__, P_THREAD, PSZ_NAME, FUNC, P_DATA )
_vlc_thread_create( __FILE__, __LINE__, P_THREAD, PSZ_NAME, FUNC, P_DATA )
static
__inline__
int
_vlc_thread_create
(
char
*
psz_file
,
int
i_line
,
static
inline
int
_vlc_thread_create
(
char
*
psz_file
,
int
i_line
,
vlc_thread_t
*
p_thread
,
vlc_thread_t
*
p_thread
,
char
*
psz_name
,
char
*
psz_name
,
vlc_thread_func_t
func
,
void
*
p_data
)
vlc_thread_func_t
func
,
void
*
p_data
)
{
{
int
i_ret
;
int
i_ret
;
...
@@ -792,7 +790,7 @@ static __inline__ int _vlc_thread_create( char * psz_file, int i_line,
...
@@ -792,7 +790,7 @@ static __inline__ int _vlc_thread_create( char * psz_file, int i_line,
/*****************************************************************************
/*****************************************************************************
* vlc_thread_exit: terminate a thread
* vlc_thread_exit: terminate a thread
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
vlc_thread_exit
(
void
)
static
inline
void
vlc_thread_exit
(
void
)
{
{
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
pth_exit
(
0
);
pth_exit
(
0
);
...
@@ -830,8 +828,8 @@ static __inline__ void vlc_thread_exit( void )
...
@@ -830,8 +828,8 @@ static __inline__ void vlc_thread_exit( void )
_vlc_thread_join( "(unknown)", 0, THREAD )
_vlc_thread_join( "(unknown)", 0, THREAD )
#endif
#endif
static
__inline__
void
_vlc_thread_join
(
char
*
psz_file
,
int
i_line
,
static
inline
void
_vlc_thread_join
(
char
*
psz_file
,
int
i_line
,
vlc_thread_t
thread
)
vlc_thread_t
thread
)
{
{
int
i_ret
=
0
;
int
i_ret
=
0
;
...
...
plugins/a52/a52.c
View file @
ac5c557f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
* (http://liba52.sf.net/).
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: a52.c,v 1.
9 2002/05/01 19:59:42 gbazin
Exp $
* $Id: a52.c,v 1.
10 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -58,7 +58,7 @@ static void EndThread ( a52_adec_thread_t * );
...
@@ -58,7 +58,7 @@ static void EndThread ( a52_adec_thread_t * );
static
void
BitstreamCallback
(
bit_stream_t
*
,
boolean_t
);
static
void
BitstreamCallback
(
bit_stream_t
*
,
boolean_t
);
static
void
float2s16_2
(
float
*
,
int16_t
*
);
static
void
float2s16_2
(
float
*
,
int16_t
*
);
static
__inline__
int16_t
convert
(
int32_t
);
static
inline
int16_t
convert
(
int32_t
);
/*****************************************************************************
/*****************************************************************************
* Capabilities
* Capabilities
...
@@ -318,7 +318,7 @@ static void EndThread (a52_adec_thread_t *p_a52_adec)
...
@@ -318,7 +318,7 @@ static void EndThread (a52_adec_thread_t *p_a52_adec)
* float2s16_2 : converts floats to ints using a trick based on the IEEE
* float2s16_2 : converts floats to ints using a trick based on the IEEE
* floating-point format
* floating-point format
*****************************************************************************/
*****************************************************************************/
static
__inline__
int16_t
convert
(
int32_t
i
)
static
inline
int16_t
convert
(
int32_t
i
)
{
{
if
(
i
>
0x43c07fff
)
if
(
i
>
0x43c07fff
)
return
32767
;
return
32767
;
...
...
plugins/ac3_adec/ac3_bit_allocate.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ac3_bit_allocate.c: ac3 allocation tables
* ac3_bit_allocate.c: ac3 allocation tables
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: ac3_bit_allocate.c,v 1.
6 2001/12/30 07:09:54
sam Exp $
* $Id: ac3_bit_allocate.c,v 1.
7 2002/05/18 17:47:46
sam Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
...
@@ -154,17 +154,17 @@ static const s16 baptab[] = { 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4,
...
@@ -154,17 +154,17 @@ static const s16 baptab[] = { 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4,
10
,
10
,
10
,
11
,
11
,
11
,
11
,
12
,
12
,
12
,
12
,
13
,
13
,
13
,
13
,
14
,
10
,
10
,
10
,
11
,
11
,
11
,
11
,
12
,
12
,
12
,
12
,
13
,
13
,
13
,
13
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
14
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
};
14
,
14
,
14
,
14
,
14
,
14
,
14
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
,
15
};
static
__inline__
u16
max_value
(
s16
a
,
s16
b
)
static
inline
u16
max_value
(
s16
a
,
s16
b
)
{
{
return
(
a
>
b
?
a
:
b
);
return
(
a
>
b
?
a
:
b
);
}
}
static
__inline__
u16
min_value
(
s16
a
,
s16
b
)
static
inline
u16
min_value
(
s16
a
,
s16
b
)
{
{
return
(
a
<
b
?
a
:
b
);
return
(
a
<
b
?
a
:
b
);
}
}
static
__inline__
s16
logadd
(
s16
a
,
s16
b
)
static
inline
s16
logadd
(
s16
a
,
s16
b
)
{
{
s16
c
;
s16
c
;
...
@@ -175,7 +175,7 @@ static __inline__ s16 logadd (s16 a, s16 b)
...
@@ -175,7 +175,7 @@ static __inline__ s16 logadd (s16 a, s16 b)
}
}
}
}
static
__inline__
s16
calc_lowcomp
(
s16
a
,
s16
b0
,
s16
b1
,
s16
bin
)
static
inline
s16
calc_lowcomp
(
s16
a
,
s16
b0
,
s16
b1
,
s16
bin
)
{
{
if
(
bin
<
7
)
{
if
(
bin
<
7
)
{
if
((
b0
+
256
)
==
b1
)
if
((
b0
+
256
)
==
b1
)
...
...
plugins/ac3_adec/ac3_exponent.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ac3_exponent.h: ac3 exponent calculations
* ac3_exponent.h: ac3 exponent calculations
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_exponent.h,v 1.
1 2001/11/13 12:09:17 henri
Exp $
* $Id: ac3_exponent.h,v 1.
2 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -57,9 +57,9 @@ static const s16 exps_3[128] =
...
@@ -57,9 +57,9 @@ static const s16 exps_3[128] =
#define UNPACK_CPL 2
#define UNPACK_CPL 2
#define UNPACK_LFE 4
#define UNPACK_LFE 4
static
__inline__
int
exp_unpack_ch
(
ac3dec_t
*
p_ac3dec
,
u16
type
,
static
inline
int
exp_unpack_ch
(
ac3dec_t
*
p_ac3dec
,
u16
type
,
u16
expstr
,
u16
ngrps
,
u16
initial_exp
,
u16
expstr
,
u16
ngrps
,
u16
initial_exp
,
u16
exps
[],
u16
*
dest
)
u16
exps
[],
u16
*
dest
)
{
{
u16
i
,
j
;
u16
i
,
j
;
s16
exp_acc
;
s16
exp_acc
;
...
...
plugins/ac3_adec/ac3_mantissa.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ac3_mantissa.h: ac3 mantissa computation
* ac3_mantissa.h: ac3 mantissa computation
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_mantissa.h,v 1.
1 2001/11/13 12:09:17 henri
Exp $
* $Id: ac3_mantissa.h,v 1.
2 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
...
@@ -233,7 +233,7 @@ static const u16 dither_lut[256] =
...
@@ -233,7 +233,7 @@ static const u16 dither_lut[256] =
0x8bf4
,
0x2be5
,
0x6bc7
,
0xcbd6
,
0xeb83
,
0x4b92
,
0x0bb0
,
0xaba1
0x8bf4
,
0x2be5
,
0x6bc7
,
0xcbd6
,
0xeb83
,
0x4b92
,
0x0bb0
,
0xaba1
};
};
static
__inline__
u16
dither_gen
(
mantissa_t
*
p_mantissa
)
static
inline
u16
dither_gen
(
mantissa_t
*
p_mantissa
)
{
{
s16
state
;
s16
state
;
...
@@ -245,8 +245,8 @@ static __inline__ u16 dither_gen (mantissa_t * p_mantissa)
...
@@ -245,8 +245,8 @@ static __inline__ u16 dither_gen (mantissa_t * p_mantissa)
/* Fetch an unpacked, left justified, and properly biased/dithered mantissa value */
/* Fetch an unpacked, left justified, and properly biased/dithered mantissa value */
static
__inline__
float
coeff_get_float
(
ac3dec_t
*
p_ac3dec
,
u16
bap
,
u16
dithflag
,
static
inline
float
coeff_get_float
(
ac3dec_t
*
p_ac3dec
,
u16
bap
,
u16
dithflag
,
u16
exp
)
u16
exp
)
{
{
u16
group_code
=
0
;
u16
group_code
=
0
;
...
@@ -352,7 +352,7 @@ static __inline__ float coeff_get_float (ac3dec_t * p_ac3dec, u16 bap, u16 dithf
...
@@ -352,7 +352,7 @@ static __inline__ float coeff_get_float (ac3dec_t * p_ac3dec, u16 bap, u16 dithf
}
}
/* Uncouple the coupling channel into a fbw channel */
/* Uncouple the coupling channel into a fbw channel */
static
__inline__
void
uncouple_channel
(
ac3dec_t
*
p_ac3dec
,
u32
ch
)
static
inline
void
uncouple_channel
(
ac3dec_t
*
p_ac3dec
,
u32
ch
)
{
{
u32
bnd
=
0
;
u32
bnd
=
0
;
u32
sub_bnd
=
0
;
u32
sub_bnd
=
0
;
...
...
plugins/ac3_adec/ac3_rematrix.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ac3_rematrix.c: ac3 audio rematrixing
* ac3_rematrix.c: ac3 audio rematrixing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ac3_rematrix.c,v 1.
6 2001/12/30 07:09:54
sam Exp $
* $Id: ac3_rematrix.c,v 1.
7 2002/05/18 17:47:46
sam Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
...
@@ -41,7 +41,7 @@ struct rematrix_band_s {
...
@@ -41,7 +41,7 @@ struct rematrix_band_s {
static
const
struct
rematrix_band_s
rematrix_band
[]
=
{
{
13
,
24
},
{
25
,
36
},
{
37
,
60
},
{
61
,
252
}};
static
const
struct
rematrix_band_s
rematrix_band
[]
=
{
{
13
,
24
},
{
25
,
36
},
{
37
,
60
},
{
61
,
252
}};
static
__inline__
u32
min_value
(
u32
a
,
u32
b
)
static
inline
u32
min_value
(
u32
a
,
u32
b
)
{
{
return
(
a
<
b
?
a
:
b
);
return
(
a
<
b
?
a
:
b
);
}
}
...
...
plugins/avi/avi.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.1
8 2002/05/17 15:47:01 fenrir
Exp $
* $Id: avi.c,v 1.1
9 2002/05/18 17:47:46 sam
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -187,7 +187,7 @@ int avi_ParseWaveFormatEx( waveformatex_t *h, byte_t *p_data )
...
@@ -187,7 +187,7 @@ int avi_ParseWaveFormatEx( waveformatex_t *h, byte_t *p_data )
return
(
0
);
return
(
0
);
}
}
static
__inline__
int
__AVIGetESTypeFromTwoCC
(
u16
i_type
)
static
inline
int
__AVIGetESTypeFromTwoCC
(
u16
i_type
)
{
{
switch
(
i_type
)
switch
(
i_type
)
{
{
...
@@ -1193,8 +1193,8 @@ static pes_packet_t *__AVI_ReadStreamBytesInPES( input_thread_t *p_input,
...
@@ -1193,8 +1193,8 @@ static pes_packet_t *__AVI_ReadStreamBytesInPES( input_thread_t *p_input,
* Function to convert pts to chunk or byte
* Function to convert pts to chunk or byte
*****************************************************************************/
*****************************************************************************/
static
__inline__
mtime_t
__AVI_PTSToChunk
(
AVIStreamInfo_t
*
p_info
,
static
inline
mtime_t
__AVI_PTSToChunk
(
AVIStreamInfo_t
*
p_info
,
mtime_t
i_pts
)
mtime_t
i_pts
)
{
{
return
(
(
mtime_t
)((
double
)
i_pts
*
return
(
(
mtime_t
)((
double
)
i_pts
*
(
double
)
p_info
->
header
.
i_rate
/
(
double
)
p_info
->
header
.
i_rate
/
...
@@ -1202,8 +1202,8 @@ static __inline__ mtime_t __AVI_PTSToChunk( AVIStreamInfo_t *p_info,
...
@@ -1202,8 +1202,8 @@ static __inline__ mtime_t __AVI_PTSToChunk( AVIStreamInfo_t *p_info,
(
double
)
1000000
.
0
)
);
(
double
)
1000000
.
0
)
);
}
}
static
__inline__
mtime_t
__AVI_PTSToByte
(
AVIStreamInfo_t
*
p_info
,
static
inline
mtime_t
__AVI_PTSToByte
(
AVIStreamInfo_t
*
p_info
,
mtime_t
i_pts
)
mtime_t
i_pts
)
{
{
return
(
(
mtime_t
)((
double
)
i_pts
*
return
(
(
mtime_t
)((
double
)
i_pts
*
(
double
)
p_info
->
header
.
i_samplesize
*
(
double
)
p_info
->
header
.
i_samplesize
*
...
@@ -1420,9 +1420,9 @@ static pes_packet_t *AVI_GetFrameInPES( input_thread_t *p_input,
...
@@ -1420,9 +1420,9 @@ static pes_packet_t *AVI_GetFrameInPES( input_thread_t *p_input,
*****************************************************************************
*****************************************************************************
* Handle multiple pes, and set pts to the good value
* Handle multiple pes, and set pts to the good value
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
AVI_DecodePES
(
input_thread_t
*
p_input
,
static
inline
void
AVI_DecodePES
(
input_thread_t
*
p_input
,
AVIStreamInfo_t
*
p_info
,
AVIStreamInfo_t
*
p_info
,
pes_packet_t
*
p_pes
)
pes_packet_t
*
p_pes
)
{
{
pes_packet_t
*
p_pes_next
;
pes_packet_t
*
p_pes_next
;
/* input_decode want only one pes, but AVI_GetFrameInPES give
/* input_decode want only one pes, but AVI_GetFrameInPES give
...
...
plugins/ffmpeg/ffmpeg.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ffmpeg.c: video decoder using ffmpeg library
* ffmpeg.c: video decoder using ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ffmpeg.c,v 1.
9 2002/05/13 21:55:30 fenrir
Exp $
* $Id: ffmpeg.c,v 1.
10 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -94,14 +94,14 @@ MODULE_DEACTIVATE_START
...
@@ -94,14 +94,14 @@ MODULE_DEACTIVATE_START
MODULE_DEACTIVATE_STOP
MODULE_DEACTIVATE_STOP
static
__inline__
u16
__GetWordLittleEndianFromBuff
(
byte_t
*
p_buff
)
static
inline
u16
__GetWordLittleEndianFromBuff
(
byte_t
*
p_buff
)
{
{
u16
i
;
u16
i
;
i
=
(
*
p_buff
)
+
(
*
(
p_buff
+
1
)
<<
8
);
i
=
(
*
p_buff
)
+
(
*
(
p_buff
+
1
)
<<
8
);
return
(
i
);
return
(
i
);
}
}
static
__inline__
u32
__GetDoubleWordLittleEndianFromBuff
(
byte_t
*
p_buff
)
static
inline
u32
__GetDoubleWordLittleEndianFromBuff
(
byte_t
*
p_buff
)
{
{
u32
i
;
u32
i
;
i
=
(
*
p_buff
)
+
(
*
(
p_buff
+
1
)
<<
8
)
+
i
=
(
*
p_buff
)
+
(
*
(
p_buff
+
1
)
<<
8
)
+
...
@@ -199,7 +199,7 @@ static void __PES_NEXT( decoder_fifo_t *p_fifo )
...
@@ -199,7 +199,7 @@ static void __PES_NEXT( decoder_fifo_t *p_fifo )
vlc_mutex_unlock
(
&
p_fifo
->
data_lock
);
vlc_mutex_unlock
(
&
p_fifo
->
data_lock
);
}
}
static
__inline__
void
__GetFrame
(
videodec_thread_t
*
p_vdec
)
static
inline
void
__GetFrame
(
videodec_thread_t
*
p_vdec
)
{
{
pes_packet_t
*
p_pes
;
pes_packet_t
*
p_pes
;
data_packet_t
*
p_data
;
data_packet_t
*
p_data
;
...
@@ -232,7 +232,7 @@ static __inline__ void __GetFrame( videodec_thread_t *p_vdec )
...
@@ -232,7 +232,7 @@ static __inline__ void __GetFrame( videodec_thread_t *p_vdec )
}
while
(
p_data
);
}
while
(
p_data
);
}
}
static
__inline__
void
__NextFrame
(
videodec_thread_t
*
p_vdec
)
static
inline
void
__NextFrame
(
videodec_thread_t
*
p_vdec
)
{
{
pes_packet_t
*
p_pes
;
pes_packet_t
*
p_pes
;
...
...
plugins/gtk/gtk_common.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk_common.h: private Gtk+ interface description
* gtk_common.h: private Gtk+ interface description
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: gtk_common.h,v 1.
7 2002/03/25 20:37:00 lool
Exp $
* $Id: gtk_common.h,v 1.
8 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
/*****************************************************************************
/*****************************************************************************
* Useful inline function
* Useful inline function
****************************************************************************/
****************************************************************************/
static
__inline__
intf_thread_t
*
GetIntf
(
GtkWidget
*
item
,
char
*
psz_parent
)
static
inline
intf_thread_t
*
GetIntf
(
GtkWidget
*
item
,
char
*
psz_parent
)
{
{
return
(
gtk_object_get_data
(
GTK_OBJECT
(
lookup_widget
(
item
,
psz_parent
)
),
return
(
gtk_object_get_data
(
GTK_OBJECT
(
lookup_widget
(
item
,
psz_parent
)
),
"p_intf"
)
);
"p_intf"
)
);
...
...
plugins/idct/block_c.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* block_c.h: Macroblock copy functions in C
* block_c.h: Macroblock copy functions in C
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: block_c.h,v 1.
1 2001/09/05 16:07:49 massiot
Exp $
* $Id: block_c.h,v 1.
2 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -58,8 +58,8 @@ static void InitBlock ( )
...
@@ -58,8 +58,8 @@ static void InitBlock ( )
/*****************************************************************************
/*****************************************************************************
* AddBlock: add a block
* AddBlock: add a block
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
AddBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
static
inline
void
AddBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
int
i_incr
)
int
i_incr
)
{
{
int
i
=
8
;
int
i
=
8
;
...
@@ -81,8 +81,8 @@ static __inline__ void AddBlock( dctelem_t * p_block, yuv_data_t * p_data,
...
@@ -81,8 +81,8 @@ static __inline__ void AddBlock( dctelem_t * p_block, yuv_data_t * p_data,
/*****************************************************************************
/*****************************************************************************
* CopyBlock: copy a block
* CopyBlock: copy a block
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
CopyBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
static
inline
void
CopyBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
int
i_incr
)
int
i_incr
)
{
{
int
i
=
8
;
int
i
=
8
;
...
...
plugins/idct/block_mmx.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* block_mmx.h: Macroblock copy functions in MMX assembly
* block_mmx.h: Macroblock copy functions in MMX assembly
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: block_mmx.h,v 1.
1 2001/09/05 16:07:49 massiot
Exp $
* $Id: block_mmx.h,v 1.
2 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Michel Lespinasse <walken@zoy.org>
* Authors: Michel Lespinasse <walken@zoy.org>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
/*****************************************************************************
/*****************************************************************************
* InitBlock: placeholder because we don't need a crop table, MMX does it for us
* InitBlock: placeholder because we don't need a crop table, MMX does it for us
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
InitBlock
(
)
static
inline
void
InitBlock
(
)
{
{
;
;
}
}
...
@@ -44,8 +44,8 @@ static __inline__ void InitBlock( )
...
@@ -44,8 +44,8 @@ static __inline__ void InitBlock( )
punpckhbw_r2r (mm0, r2); \
punpckhbw_r2r (mm0, r2); \
paddsw_m2r (*(p_block+offset+4), r2);
paddsw_m2r (*(p_block+offset+4), r2);
static
__inline__
void
AddBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
static
inline
void
AddBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
int
i_incr
)
int
i_incr
)
{
{
movq_m2r
(
*
p_data
,
mm1
);
movq_m2r
(
*
p_data
,
mm1
);
pxor_r2r
(
mm0
,
mm0
);
pxor_r2r
(
mm0
,
mm0
);
...
@@ -82,8 +82,8 @@ static __inline__ void AddBlock( dctelem_t * p_block, yuv_data_t * p_data,
...
@@ -82,8 +82,8 @@ static __inline__ void AddBlock( dctelem_t * p_block, yuv_data_t * p_data,
movq_r2m (r2, *p_data); \
movq_r2m (r2, *p_data); \
packuswb_r2r (r1, r0);
packuswb_r2r (r1, r0);
static
__inline__
void
CopyBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
static
inline
void
CopyBlock
(
dctelem_t
*
p_block
,
yuv_data_t
*
p_data
,
int
i_incr
)
int
i_incr
)
{
{
movq_m2r
(
*
(
p_block
+
0
*
8
),
mm0
);
movq_m2r
(
*
(
p_block
+
0
*
8
),
mm0
);
movq_m2r
(
*
(
p_block
+
0
*
8
+
4
),
mm1
);
movq_m2r
(
*
(
p_block
+
0
*
8
+
4
),
mm1
);
...
...
plugins/idct/idct.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* idct.c : C IDCT module
* idct.c : C IDCT module
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: idct.c,v 1.2
2 2002/04/21 11:23:03 gbazin
Exp $
* $Id: idct.c,v 1.2
3 2002/05/18 17:47:46 sam
Exp $
*
*
* Author: Gal Hendryckx <jimmy@via.ecp.fr>
* Author: Gal Hendryckx <jimmy@via.ecp.fr>
*
*
...
@@ -69,7 +69,7 @@ static void NormScan( u8 ppi_scan[2][64] )
...
@@ -69,7 +69,7 @@ static void NormScan( u8 ppi_scan[2][64] )
/*****************************************************************************
/*****************************************************************************
* IDCT : IDCT function for normal matrices
* IDCT : IDCT function for normal matrices
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
IDCT
(
dctelem_t
*
p_block
)
static
inline
void
IDCT
(
dctelem_t
*
p_block
)
{
{
s32
tmp0
,
tmp1
,
tmp2
,
tmp3
;
s32
tmp0
,
tmp1
,
tmp2
,
tmp3
;
s32
tmp10
,
tmp11
,
tmp12
,
tmp13
;
s32
tmp10
,
tmp11
,
tmp12
,
tmp13
;
...
@@ -1247,7 +1247,7 @@ static __inline__ void IDCT( dctelem_t * p_block )
...
@@ -1247,7 +1247,7 @@ static __inline__ void IDCT( dctelem_t * p_block )
}
}
}
}
static
__inline__
void
RestoreCPUState
(
)
static
inline
void
RestoreCPUState
(
)
{
{
;
;
}
}
...
...
plugins/idct/idct_sparse.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* idct_sparse.h : Sparse IDCT functions (must be include at the end)
* idct_sparse.h : Sparse IDCT functions (must be include at the end)
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: idct_sparse.h,v 1.
2 2002/04/21 11:23:03 gbazin
Exp $
* $Id: idct_sparse.h,v 1.
3 2002/05/18 17:47:46 sam
Exp $
*
*
* Author: Gal Hendryckx <jimmy@via.ecp.fr>
* Author: Gal Hendryckx <jimmy@via.ecp.fr>
*
*
...
@@ -47,8 +47,8 @@ static void InitIDCT ( void ** pp_idct_data )
...
@@ -47,8 +47,8 @@ static void InitIDCT ( void ** pp_idct_data )
/*****************************************************************************
/*****************************************************************************
* SparseIDCT : IDCT function for sparse matrices
* SparseIDCT : IDCT function for sparse matrices
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
SparseIDCT
(
dctelem_t
*
p_block
,
void
*
p_idct_data
,
static
inline
void
SparseIDCT
(
dctelem_t
*
p_block
,
void
*
p_idct_data
,
int
i_sparse_pos
)
int
i_sparse_pos
)
{
{
short
int
val
;
short
int
val
;
int
*
dp
;
int
*
dp
;
...
...
plugins/idct/idctclassic.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* idctclassic.c : Classic IDCT module
* idctclassic.c : Classic IDCT module
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctclassic.c,v 1.2
3 2002/04/21 11:23:03 gbazin
Exp $
* $Id: idctclassic.c,v 1.2
4 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Gal Hendryckx <jimmy@via.ecp.fr>
* Authors: Gal Hendryckx <jimmy@via.ecp.fr>
*
*
...
@@ -69,7 +69,7 @@ static void NormScan( u8 ppi_scan[2][64] )
...
@@ -69,7 +69,7 @@ static void NormScan( u8 ppi_scan[2][64] )
/*****************************************************************************
/*****************************************************************************
* IDCT : IDCT function for normal matrices
* IDCT : IDCT function for normal matrices
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
IDCT
(
dctelem_t
*
p_block
)
static
inline
void
IDCT
(
dctelem_t
*
p_block
)
{
{
s32
tmp0
,
tmp1
,
tmp2
,
tmp3
;
s32
tmp0
,
tmp1
,
tmp2
,
tmp3
;
s32
tmp10
,
tmp11
,
tmp12
,
tmp13
;
s32
tmp10
,
tmp11
,
tmp12
,
tmp13
;
...
@@ -287,7 +287,7 @@ static __inline__ void IDCT( dctelem_t * p_block )
...
@@ -287,7 +287,7 @@ static __inline__ void IDCT( dctelem_t * p_block )
}
}
}
}
static
__inline__
void
RestoreCPUState
(
)
static
inline
void
RestoreCPUState
(
)
{
{
;
;
}
}
...
...
plugins/idct/idctmmx.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* idctmmx.c : MMX IDCT module
* idctmmx.c : MMX IDCT module
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctmmx.c,v 1.2
5 2002/04/21 11:23:03 gbazin
Exp $
* $Id: idctmmx.c,v 1.2
6 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -101,7 +101,7 @@ static void NormScan( u8 ppi_scan[2][64] )
...
@@ -101,7 +101,7 @@ static void NormScan( u8 ppi_scan[2][64] )
c5, -c1, c7, -c5, \
c5, -c1, c7, -c5, \
c7, c3, c3, -c1 }
c7, c3, c3, -c1 }
static
__inline__
void
RowHead
(
dctelem_t
*
row
,
int
offset
,
dctelem_t
*
table
)
static
inline
void
RowHead
(
dctelem_t
*
row
,
int
offset
,
dctelem_t
*
table
)
{
{
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
...
@@ -120,7 +120,7 @@ static __inline__ void RowHead( dctelem_t * row, int offset, dctelem_t * table )
...
@@ -120,7 +120,7 @@ static __inline__ void RowHead( dctelem_t * row, int offset, dctelem_t * table )
punpckhdq_r2r
(
mm2
,
mm2
);
// mm2 = x6 x4 x6 x4
punpckhdq_r2r
(
mm2
,
mm2
);
// mm2 = x6 x4 x6 x4
}
}
static
__inline__
void
Row
(
dctelem_t
*
table
,
s32
*
rounder
)
static
inline
void
Row
(
dctelem_t
*
table
,
s32
*
rounder
)
{
{
pmaddwd_r2r
(
mm2
,
mm4
);
// mm4 = -C4*x4-C2*x6 C4*x4+C6*x6
pmaddwd_r2r
(
mm2
,
mm4
);
// mm4 = -C4*x4-C2*x6 C4*x4+C6*x6
punpckldq_r2r
(
mm5
,
mm5
);
// mm5 = x3 x1 x3 x1
punpckldq_r2r
(
mm5
,
mm5
);
// mm5 = x3 x1 x3 x1
...
@@ -159,7 +159,7 @@ static __inline__ void Row( dctelem_t * table, s32 * rounder )
...
@@ -159,7 +159,7 @@ static __inline__ void Row( dctelem_t * table, s32 * rounder )
psubd_r2r
(
mm5
,
mm7
);
// mm7 = a3-b3 a2-b2 + rounder
psubd_r2r
(
mm5
,
mm7
);
// mm7 = a3-b3 a2-b2 + rounder
}
}
static
__inline__
void
RowTail
(
dctelem_t
*
row
,
int
store
)
static
inline
void
RowTail
(
dctelem_t
*
row
,
int
store
)
{
{
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
...
@@ -183,8 +183,8 @@ static __inline__ void RowTail( dctelem_t * row, int store )
...
@@ -183,8 +183,8 @@ static __inline__ void RowTail( dctelem_t * row, int store )
movq_r2m
(
mm7
,
*
(
row
+
store
+
4
));
// save y7 y6 y5 y4
movq_r2m
(
mm7
,
*
(
row
+
store
+
4
));
// save y7 y6 y5 y4
}
}
static
__inline__
void
RowMid
(
dctelem_t
*
row
,
int
store
,
static
inline
void
RowMid
(
dctelem_t
*
row
,
int
store
,
int
offset
,
dctelem_t
*
table
)
int
offset
,
dctelem_t
*
table
)
{
{
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
...
@@ -217,7 +217,7 @@ static __inline__ void RowMid( dctelem_t * row, int store,
...
@@ -217,7 +217,7 @@ static __inline__ void RowMid( dctelem_t * row, int store,
pmaddwd_r2r
(
mm0
,
mm3
);
// mm3 = C4*x0+C6*x2 C4*x0+C2*x2
pmaddwd_r2r
(
mm0
,
mm3
);
// mm3 = C4*x0+C6*x2 C4*x0+C2*x2
}
}
static
__inline__
void
Col
(
dctelem_t
*
col
,
int
offset
)
static
inline
void
Col
(
dctelem_t
*
col
,
int
offset
)
{
{
#define T1 13036
#define T1 13036
#define T2 27146
#define T2 27146
...
@@ -411,7 +411,7 @@ static void IDCT( dctelem_t * p_block )
...
@@ -411,7 +411,7 @@ static void IDCT( dctelem_t * p_block )
Col
(
p_block
,
4
);
Col
(
p_block
,
4
);
}
}
static
__inline__
void
RestoreCPUState
(
)
static
inline
void
RestoreCPUState
(
)
{
{
/* reenables the FPU */
/* reenables the FPU */
__asm__
__volatile__
(
"emms"
);
__asm__
__volatile__
(
"emms"
);
...
...
plugins/idct/idctmmxext.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* idctmmxext.c : MMX EXT IDCT module
* idctmmxext.c : MMX EXT IDCT module
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: idctmmxext.c,v 1.2
2 2002/04/21 11:23:03 gbazin
Exp $
* $Id: idctmmxext.c,v 1.2
3 2002/05/18 17:47:46 sam
Exp $
*
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -101,7 +101,7 @@ static void NormScan( u8 ppi_scan[2][64] )
...
@@ -101,7 +101,7 @@ static void NormScan( u8 ppi_scan[2][64] )
c5, -c1, c3, -c1, \
c5, -c1, c3, -c1, \
c7, c3, c7, -c5 }
c7, c3, c7, -c5 }
static
__inline__
void
RowHead
(
dctelem_t
*
row
,
int
offset
,
dctelem_t
*
table
)
static
inline
void
RowHead
(
dctelem_t
*
row
,
int
offset
,
dctelem_t
*
table
)
{
{
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
...
@@ -117,7 +117,7 @@ static __inline__ void RowHead( dctelem_t * row, int offset, dctelem_t * table )
...
@@ -117,7 +117,7 @@ static __inline__ void RowHead( dctelem_t * row, int offset, dctelem_t * table )
pshufw_r2r
(
mm2
,
mm2
,
0x4e
);
// mm2 = x2 x0 x6 x4
pshufw_r2r
(
mm2
,
mm2
,
0x4e
);
// mm2 = x2 x0 x6 x4
}
}
static
__inline__
void
Row
(
dctelem_t
*
table
,
s32
*
rounder
)
static
inline
void
Row
(
dctelem_t
*
table
,
s32
*
rounder
)
{
{
movq_m2r
(
*
(
table
+
8
),
mm1
);
// mm1 = -C5 -C1 C3 C1
movq_m2r
(
*
(
table
+
8
),
mm1
);
// mm1 = -C5 -C1 C3 C1
pmaddwd_r2r
(
mm2
,
mm4
);
// mm4 = C4*x0+C6*x2 C4*x4+C6*x6
pmaddwd_r2r
(
mm2
,
mm4
);
// mm4 = C4*x0+C6*x2 C4*x4+C6*x6
...
@@ -156,7 +156,7 @@ static __inline__ void Row( dctelem_t * table, s32 * rounder )
...
@@ -156,7 +156,7 @@ static __inline__ void Row( dctelem_t * table, s32 * rounder )
psubd_r2r
(
mm5
,
mm4
);
// mm4 = a3-b3 a2-b2 + rounder
psubd_r2r
(
mm5
,
mm4
);
// mm4 = a3-b3 a2-b2 + rounder
}
}
static
__inline__
void
RowTail
(
dctelem_t
*
row
,
int
store
)
static
inline
void
RowTail
(
dctelem_t
*
row
,
int
store
)
{
{
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
...
@@ -173,8 +173,8 @@ static __inline__ void RowTail( dctelem_t * row, int store )
...
@@ -173,8 +173,8 @@ static __inline__ void RowTail( dctelem_t * row, int store )
movq_r2m
(
mm4
,
*
(
row
+
store
+
4
));
// save y7 y6 y5 y4
movq_r2m
(
mm4
,
*
(
row
+
store
+
4
));
// save y7 y6 y5 y4
}
}
static
__inline__
void
RowMid
(
dctelem_t
*
row
,
int
store
,
static
inline
void
RowMid
(
dctelem_t
*
row
,
int
store
,
int
offset
,
dctelem_t
*
table
)
int
offset
,
dctelem_t
*
table
)
{
{
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
movq_m2r
(
*
(
row
+
offset
),
mm2
);
// mm2 = x6 x4 x2 x0
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
psrad_i2r
(
ROW_SHIFT
,
mm0
);
// mm0 = y3 y2
...
@@ -200,7 +200,7 @@ static __inline__ void RowMid( dctelem_t * row, int store,
...
@@ -200,7 +200,7 @@ static __inline__ void RowMid( dctelem_t * row, int store,
pshufw_r2r
(
mm2
,
mm2
,
0x4e
);
// mm2 = x2 x0 x6 x4
pshufw_r2r
(
mm2
,
mm2
,
0x4e
);
// mm2 = x2 x0 x6 x4
}
}
static
__inline__
void
Col
(
dctelem_t
*
col
,
int
offset
)
static
inline
void
Col
(
dctelem_t
*
col
,
int
offset
)
{
{
#define T1 13036
#define T1 13036
#define T2 27146
#define T2 27146
...
@@ -394,7 +394,7 @@ static void IDCT( dctelem_t * p_block )
...
@@ -394,7 +394,7 @@ static void IDCT( dctelem_t * p_block )
Col
(
p_block
,
4
);
Col
(
p_block
,
4
);
}
}
static
__inline__
void
RestoreCPUState
(
)
static
inline
void
RestoreCPUState
(
)
{
{
/* reenables the FPU */
/* reenables the FPU */
__asm__
__volatile__
(
"emms"
);
__asm__
__volatile__
(
"emms"
);
...
...
plugins/mad/mad_libmad.c
View file @
ac5c557f
...
@@ -193,7 +193,7 @@ struct audio_dither {
...
@@ -193,7 +193,7 @@ struct audio_dither {
* NAME: prng()
* NAME: prng()
* DESCRIPTION: 32-bit pseudo-random number generator
* DESCRIPTION: 32-bit pseudo-random number generator
*/
*/
static
__inline__
unsigned
long
prng
(
unsigned
long
state
)
static
inline
unsigned
long
prng
(
unsigned
long
state
)
{
{
return
(
state
*
0x0019660dL
+
0x3c6ef35fL
)
&
0xffffffffL
;
return
(
state
*
0x0019660dL
+
0x3c6ef35fL
)
&
0xffffffffL
;
}
}
...
@@ -202,7 +202,7 @@ static __inline__ unsigned long prng(unsigned long state)
...
@@ -202,7 +202,7 @@ static __inline__ unsigned long prng(unsigned long state)
* NAME: mpg321_s24_to_s16_pcm()
* NAME: mpg321_s24_to_s16_pcm()
* DESCRIPTION: generic linear sample quantize and dither routine
* DESCRIPTION: generic linear sample quantize and dither routine
*/
*/
static
__inline__
signed
int
mpg321_s24_to_s16_pcm
(
unsigned
int
bits
,
mad_fixed_t
sample
,
static
inline
signed
int
mpg321_s24_to_s16_pcm
(
unsigned
int
bits
,
mad_fixed_t
sample
,
struct
audio_dither
*
dither
)
struct
audio_dither
*
dither
)
{
{
unsigned
int
scalebits
;
unsigned
int
scalebits
;
...
@@ -258,7 +258,7 @@ static __inline__ signed int mpg321_s24_to_s16_pcm(unsigned int bits, mad_fixed_
...
@@ -258,7 +258,7 @@ static __inline__ signed int mpg321_s24_to_s16_pcm(unsigned int bits, mad_fixed_
/*****************************************************************************
/*****************************************************************************
* s24_to_s16_pcm: Scale a 24 bit pcm sample to a 16 bit pcm sample.
* s24_to_s16_pcm: Scale a 24 bit pcm sample to a 16 bit pcm sample.
*****************************************************************************/
*****************************************************************************/
static
__inline__
mad_fixed_t
s24_to_s16_pcm
(
mad_fixed_t
sample
)
static
inline
mad_fixed_t
s24_to_s16_pcm
(
mad_fixed_t
sample
)
{
{
/* round */
/* round */
sample
+=
(
1L
<<
(
MAD_F_FRACBITS
-
16
));
sample
+=
(
1L
<<
(
MAD_F_FRACBITS
-
16
));
...
...
plugins/mga/xmga.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* xmga.c : X11 MGA plugin for vlc
* xmga.c : X11 MGA plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: xmga.c,v 1.1
3 2002/05/06 21:05:26 gbazin
Exp $
* $Id: xmga.c,v 1.1
4 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -232,7 +232,7 @@ typedef struct mwmhints_s
...
@@ -232,7 +232,7 @@ typedef struct mwmhints_s
/*****************************************************************************
/*****************************************************************************
* Seeking function TODO: put this in a generic location !
* Seeking function TODO: put this in a generic location !
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
vout_Seek
(
off_t
i_seek
)
static
inline
void
vout_Seek
(
off_t
i_seek
)
{
{
off_t
i_tell
;
off_t
i_tell
;
...
...
plugins/motion/motion3dnow.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* motion3dnow.c : 3D Now! motion compensation module for vlc
* motion3dnow.c : 3D Now! motion compensation module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: motion3dnow.c,v 1.
9 2002/04/21 10:32:20
sam Exp $
* $Id: motion3dnow.c,v 1.
10 2002/05/18 17:47:47
sam Exp $
*
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -89,7 +89,7 @@ do { \
...
@@ -89,7 +89,7 @@ do { \
//CPU_MMXEXT code
//CPU_MMXEXT code
static
__inline__
void
MC_put1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
int
stride
)
{
{
do
{
do
{
...
@@ -100,7 +100,7 @@ static __inline__ void MC_put1_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -100,7 +100,7 @@ static __inline__ void MC_put1_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
int
stride
)
{
{
do
{
do
{
...
@@ -113,7 +113,7 @@ static __inline__ void MC_put1_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -113,7 +113,7 @@ static __inline__ void MC_put1_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -125,7 +125,7 @@ static __inline__ void MC_avg1_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -125,7 +125,7 @@ static __inline__ void MC_avg1_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -140,7 +140,7 @@ static __inline__ void MC_avg1_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -140,7 +140,7 @@ static __inline__ void MC_avg1_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -152,7 +152,7 @@ static __inline__ void MC_put2_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -152,7 +152,7 @@ static __inline__ void MC_put2_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -167,7 +167,7 @@ static __inline__ void MC_put2_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -167,7 +167,7 @@ static __inline__ void MC_put2_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -180,7 +180,7 @@ static __inline__ void MC_avg2_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -180,7 +180,7 @@ static __inline__ void MC_avg2_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -199,7 +199,7 @@ static __inline__ void MC_avg2_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -199,7 +199,7 @@ static __inline__ void MC_avg2_16 (int height, yuv_data_t * dest, yuv_data_t * r
static
mmx_t
mask_one
=
{
0x0101010101010101LL
};
static
mmx_t
mask_one
=
{
0x0101010101010101LL
};
static
__inline__
void
MC_put4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
movq_m2r
(
*
ref
,
mm0
);
movq_m2r
(
*
ref
,
mm0
);
...
@@ -238,7 +238,7 @@ static __inline__ void MC_put4_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -238,7 +238,7 @@ static __inline__ void MC_put4_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -284,7 +284,7 @@ static __inline__ void MC_put4_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -284,7 +284,7 @@ static __inline__ void MC_put4_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -313,7 +313,7 @@ static __inline__ void MC_avg4_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -313,7 +313,7 @@ static __inline__ void MC_avg4_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
...
plugins/motion/motionmmx.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* motionmmx.c : MMX motion compensation module for vlc
* motionmmx.c : MMX motion compensation module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: motionmmx.c,v 1.1
6 2002/04/19 13:56:11
sam Exp $
* $Id: motionmmx.c,v 1.1
7 2002/05/18 17:47:47
sam Exp $
*
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -74,13 +74,13 @@ mmx_t round4 = {0x0002000200020002LL};
...
@@ -74,13 +74,13 @@ mmx_t round4 = {0x0002000200020002LL};
* unrolling will help
* unrolling will help
*/
*/
static
__inline__
void
mmx_zero_reg
()
static
inline
void
mmx_zero_reg
()
{
{
// load 0 into mm0
// load 0 into mm0
pxor_r2r
(
mm0
,
mm0
);
pxor_r2r
(
mm0
,
mm0
);
}
}
static
__inline__
void
mmx_average_2_U8
(
yuv_data_t
*
dest
,
static
inline
void
mmx_average_2_U8
(
yuv_data_t
*
dest
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
)
yuv_data_t
*
src1
,
yuv_data_t
*
src2
)
{
{
//
//
...
@@ -111,7 +111,7 @@ static __inline__ void mmx_average_2_U8 (yuv_data_t * dest,
...
@@ -111,7 +111,7 @@ static __inline__ void mmx_average_2_U8 (yuv_data_t * dest,
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
}
}
static
__inline__
void
mmx_interp_average_2_U8
(
yuv_data_t
*
dest
,
static
inline
void
mmx_interp_average_2_U8
(
yuv_data_t
*
dest
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
)
yuv_data_t
*
src1
,
yuv_data_t
*
src2
)
{
{
//
//
...
@@ -156,7 +156,7 @@ static __inline__ void mmx_interp_average_2_U8 (yuv_data_t * dest,
...
@@ -156,7 +156,7 @@ static __inline__ void mmx_interp_average_2_U8 (yuv_data_t * dest,
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
}
}
static
__inline__
void
mmx_average_4_U8
(
yuv_data_t
*
dest
,
static
inline
void
mmx_average_4_U8
(
yuv_data_t
*
dest
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
,
yuv_data_t
*
src3
,
yuv_data_t
*
src4
)
yuv_data_t
*
src3
,
yuv_data_t
*
src4
)
{
{
...
@@ -210,7 +210,7 @@ static __inline__ void mmx_average_4_U8 (yuv_data_t * dest,
...
@@ -210,7 +210,7 @@ static __inline__ void mmx_average_4_U8 (yuv_data_t * dest,
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
movq_r2m
(
mm1
,
*
dest
);
// store result in dest
}
}
static
__inline__
void
mmx_interp_average_4_U8
(
yuv_data_t
*
dest
,
static
inline
void
mmx_interp_average_4_U8
(
yuv_data_t
*
dest
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
,
yuv_data_t
*
src1
,
yuv_data_t
*
src2
,
yuv_data_t
*
src3
,
yuv_data_t
*
src4
)
yuv_data_t
*
src3
,
yuv_data_t
*
src4
)
{
{
...
@@ -282,7 +282,7 @@ static __inline__ void mmx_interp_average_4_U8 (yuv_data_t * dest,
...
@@ -282,7 +282,7 @@ static __inline__ void mmx_interp_average_4_U8 (yuv_data_t * dest,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_avg_mmx
(
int
width
,
int
height
,
static
inline
void
MC_avg_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
mmx_zero_reg
();
mmx_zero_reg
();
...
@@ -312,7 +312,7 @@ static void MC_avg_8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -312,7 +312,7 @@ static void MC_avg_8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_put_mmx
(
int
width
,
int
height
,
static
inline
void
MC_put_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
mmx_zero_reg
();
mmx_zero_reg
();
...
@@ -347,7 +347,7 @@ static void MC_put_8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -347,7 +347,7 @@ static void MC_put_8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// Half pixel interpolation in the x direction
// Half pixel interpolation in the x direction
static
__inline__
void
MC_avg_x_mmx
(
int
width
,
int
height
,
static
inline
void
MC_avg_x_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
mmx_zero_reg
();
mmx_zero_reg
();
...
@@ -377,7 +377,7 @@ static void MC_avg_x8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -377,7 +377,7 @@ static void MC_avg_x8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_put_x_mmx
(
int
width
,
int
height
,
static
inline
void
MC_put_x_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
mmx_zero_reg
();
mmx_zero_reg
();
...
@@ -407,7 +407,7 @@ static void MC_put_x8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -407,7 +407,7 @@ static void MC_put_x8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_avg_xy_mmx
(
int
width
,
int
height
,
static
inline
void
MC_avg_xy_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
yuv_data_t
*
ref_next
=
ref
+
stride
;
yuv_data_t
*
ref_next
=
ref
+
stride
;
...
@@ -441,7 +441,7 @@ static void MC_avg_xy8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -441,7 +441,7 @@ static void MC_avg_xy8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_put_xy_mmx
(
int
width
,
int
height
,
static
inline
void
MC_put_xy_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
yuv_data_t
*
ref_next
=
ref
+
stride
;
yuv_data_t
*
ref_next
=
ref
+
stride
;
...
@@ -474,7 +474,7 @@ static void MC_put_xy8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -474,7 +474,7 @@ static void MC_put_xy8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_avg_y_mmx
(
int
width
,
int
height
,
static
inline
void
MC_avg_y_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
yuv_data_t
*
ref_next
=
ref
+
stride
;
yuv_data_t
*
ref_next
=
ref
+
stride
;
...
@@ -507,7 +507,7 @@ static void MC_avg_y8_mmx (yuv_data_t * dest, yuv_data_t * ref,
...
@@ -507,7 +507,7 @@ static void MC_avg_y8_mmx (yuv_data_t * dest, yuv_data_t * ref,
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
static
__inline__
void
MC_put_y_mmx
(
int
width
,
int
height
,
static
inline
void
MC_put_y_mmx
(
int
width
,
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
{
{
yuv_data_t
*
ref_next
=
ref
+
stride
;
yuv_data_t
*
ref_next
=
ref
+
stride
;
...
...
plugins/motion/motionmmxext.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* motionmmxext.c : MMX EXT motion compensation module for vlc
* motionmmxext.c : MMX EXT motion compensation module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: motionmmxext.c,v 1.1
7 2002/04/19 13:56:11
sam Exp $
* $Id: motionmmxext.c,v 1.1
8 2002/05/18 17:47:47
sam Exp $
*
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -88,7 +88,7 @@ do { \
...
@@ -88,7 +88,7 @@ do { \
//CPU_MMXEXT code
//CPU_MMXEXT code
static
__inline__
void
MC_put1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
int
stride
)
{
{
do
{
do
{
...
@@ -99,7 +99,7 @@ static __inline__ void MC_put1_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -99,7 +99,7 @@ static __inline__ void MC_put1_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
)
int
stride
)
{
{
do
{
do
{
...
@@ -112,7 +112,7 @@ static __inline__ void MC_put1_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -112,7 +112,7 @@ static __inline__ void MC_put1_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg1_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -124,7 +124,7 @@ static __inline__ void MC_avg1_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -124,7 +124,7 @@ static __inline__ void MC_avg1_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg1_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -139,7 +139,7 @@ static __inline__ void MC_avg1_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -139,7 +139,7 @@ static __inline__ void MC_avg1_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -151,7 +151,7 @@ static __inline__ void MC_put2_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -151,7 +151,7 @@ static __inline__ void MC_put2_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -166,7 +166,7 @@ static __inline__ void MC_put2_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -166,7 +166,7 @@ static __inline__ void MC_put2_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg2_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -179,7 +179,7 @@ static __inline__ void MC_avg2_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -179,7 +179,7 @@ static __inline__ void MC_avg2_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg2_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
offset
,
int
cpu
)
int
stride
,
int
offset
,
int
cpu
)
{
{
do
{
do
{
...
@@ -198,7 +198,7 @@ static __inline__ void MC_avg2_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -198,7 +198,7 @@ static __inline__ void MC_avg2_16 (int height, yuv_data_t * dest, yuv_data_t * r
static
mmx_t
mask_one
=
{
0x0101010101010101LL
};
static
mmx_t
mask_one
=
{
0x0101010101010101LL
};
static
__inline__
void
MC_put4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
movq_m2r
(
*
ref
,
mm0
);
movq_m2r
(
*
ref
,
mm0
);
...
@@ -237,7 +237,7 @@ static __inline__ void MC_put4_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -237,7 +237,7 @@ static __inline__ void MC_put4_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_put4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_put4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -283,7 +283,7 @@ static __inline__ void MC_put4_16 (int height, yuv_data_t * dest, yuv_data_t * r
...
@@ -283,7 +283,7 @@ static __inline__ void MC_put4_16 (int height, yuv_data_t * dest, yuv_data_t * r
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg4_8
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
@@ -312,7 +312,7 @@ static __inline__ void MC_avg4_8 (int height, yuv_data_t * dest, yuv_data_t * re
...
@@ -312,7 +312,7 @@ static __inline__ void MC_avg4_8 (int height, yuv_data_t * dest, yuv_data_t * re
}
while
(
--
height
);
}
while
(
--
height
);
}
}
static
__inline__
void
MC_avg4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
static
inline
void
MC_avg4_16
(
int
height
,
yuv_data_t
*
dest
,
yuv_data_t
*
ref
,
int
stride
,
int
cpu
)
int
stride
,
int
cpu
)
{
{
do
{
do
{
...
...
plugins/mpeg_system/mpeg_audio.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg_audio.c : mpeg_audio Stream input module for vlc
* mpeg_audio.c : mpeg_audio Stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: mpeg_audio.c,v 1.
7 2002/05/17 23:01:02 fenrir
Exp $
* $Id: mpeg_audio.c,v 1.
8 2002/05/18 17:47:47 sam
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -161,7 +161,7 @@ static char* mpegaudio_mode[4] =
...
@@ -161,7 +161,7 @@ static char* mpegaudio_mode[4] =
"stereo"
,
"joint stereo"
,
"dual channel"
,
"mono"
"stereo"
,
"joint stereo"
,
"dual channel"
,
"mono"
};
};
static
__inline__
u32
__GetDWBE
(
byte_t
*
p_buff
)
static
inline
u32
__GetDWBE
(
byte_t
*
p_buff
)
{
{
return
(
(
(
*
(
p_buff
))
<<
24
)
+
(
(
*
(
p_buff
+
1
))
<<
16
)
+
return
(
(
(
*
(
p_buff
))
<<
24
)
+
(
(
*
(
p_buff
+
1
))
<<
16
)
+
(
(
*
(
p_buff
+
2
))
<<
8
)
+
(
(
*
(
p_buff
+
3
))
)
);
(
(
*
(
p_buff
+
2
))
<<
8
)
+
(
(
*
(
p_buff
+
3
))
)
);
...
...
plugins/mpeg_vdec/video_decoder.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video_decoder.c : video decoder thread
* video_decoder.c : video decoder thread
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: video_decoder.c,v 1.
8 2002/05/13 23:15:43 massiot
Exp $
* $Id: video_decoder.c,v 1.
9 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@zoy.org>
* Michel Lespinasse <walken@zoy.org>
...
@@ -160,14 +160,12 @@ void vdec_EndThread( vdec_thread_t * p_vdec )
...
@@ -160,14 +160,12 @@ void vdec_EndThread( vdec_thread_t * p_vdec )
/*****************************************************************************
/*****************************************************************************
* MotionBlock: does one component of the motion compensation
* MotionBlock: does one component of the motion compensation
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
MotionBlock
(
vdec_pool_t
*
p_pool
,
static
inline
void
MotionBlock
(
vdec_pool_t
*
p_pool
,
boolean_t
b_average
,
boolean_t
b_average
,
int
i_x_pred
,
int
i_y_pred
,
int
i_x_pred
,
int
i_y_pred
,
yuv_data_t
*
pp_dest
[
3
],
int
i_dest_offset
,
yuv_data_t
*
pp_dest
[
3
],
int
i_dest_offset
,
yuv_data_t
*
pp_src
[
3
],
int
i_src_offset
,
yuv_data_t
*
pp_src
[
3
],
int
i_src_offset
,
int
i_stride
,
int
i_height
,
int
i_stride
,
int
i_height
,
boolean_t
b_second_half
,
int
i_chroma_format
)
boolean_t
b_second_half
,
int
i_chroma_format
)
{
{
int
i_xy_half
;
int
i_xy_half
;
yuv_data_t
*
p_src1
;
yuv_data_t
*
p_src1
;
...
...
plugins/mpeg_vdec/video_parser.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video_parser.h : video parser thread
* video_parser.h : video parser thread
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_parser.h,v 1.
4 2002/04/15 23:04:08 massiot
Exp $
* $Id: video_parser.h,v 1.
5 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
* Jean-Marc Dressler <polux@via.ecp.fr>
...
@@ -366,7 +366,7 @@ typedef struct vpar_thread_s
...
@@ -366,7 +366,7 @@ typedef struct vpar_thread_s
/*****************************************************************************
/*****************************************************************************
* NextStartCode : Find the next start code
* NextStartCode : Find the next start code
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
NextStartCode
(
bit_stream_t
*
p_bit_stream
)
static
inline
void
NextStartCode
(
bit_stream_t
*
p_bit_stream
)
{
{
/* Re-align the buffer on an 8-bit boundary */
/* Re-align the buffer on an 8-bit boundary */
RealignBits
(
p_bit_stream
);
RealignBits
(
p_bit_stream
);
...
@@ -383,7 +383,7 @@ static __inline__ void NextStartCode( bit_stream_t * p_bit_stream )
...
@@ -383,7 +383,7 @@ static __inline__ void NextStartCode( bit_stream_t * p_bit_stream )
*****************************************************************************
*****************************************************************************
* Quantizer scale factor (ISO/IEC 13818-2 7.4.2.2)
* Quantizer scale factor (ISO/IEC 13818-2 7.4.2.2)
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
LoadQuantizerScale
(
struct
vpar_thread_s
*
p_vpar
)
static
inline
void
LoadQuantizerScale
(
struct
vpar_thread_s
*
p_vpar
)
{
{
/* Quantization coefficient table */
/* Quantization coefficient table */
static
u8
pi_non_linear_quantizer_scale
[
32
]
=
static
u8
pi_non_linear_quantizer_scale
[
32
]
=
...
...
plugins/mpeg_vdec/vpar_blocks.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_blocks.c : blocks parsing
* vpar_blocks.c : blocks parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: vpar_blocks.c,v 1.
8 2002/04/15 23:04:08 massiot
Exp $
* $Id: vpar_blocks.c,v 1.
9 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Michel Lespinasse <walken@zoy.org>
* Authors: Michel Lespinasse <walken@zoy.org>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
...
@@ -81,7 +81,7 @@ void vpar_InitScanTable( vpar_thread_t * p_vpar )
...
@@ -81,7 +81,7 @@ void vpar_InitScanTable( vpar_thread_t * p_vpar )
/*****************************************************************************
/*****************************************************************************
* GetLumaDCDiff : Get the luminance DC coefficient difference
* GetLumaDCDiff : Get the luminance DC coefficient difference
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
GetLumaDCDiff
(
vpar_thread_t
*
p_vpar
)
static
inline
int
GetLumaDCDiff
(
vpar_thread_t
*
p_vpar
)
{
{
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
int
i_size
,
i_dc_diff
,
i_code
;
int
i_size
,
i_dc_diff
,
i_code
;
...
@@ -123,7 +123,7 @@ static __inline__ int GetLumaDCDiff( vpar_thread_t * p_vpar )
...
@@ -123,7 +123,7 @@ static __inline__ int GetLumaDCDiff( vpar_thread_t * p_vpar )
/*****************************************************************************
/*****************************************************************************
* GetChromaDCDiff : Get the chrominance DC coefficient difference
* GetChromaDCDiff : Get the chrominance DC coefficient difference
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
GetChromaDCDiff
(
vpar_thread_t
*
p_vpar
)
static
inline
int
GetChromaDCDiff
(
vpar_thread_t
*
p_vpar
)
{
{
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
int
i_size
,
i_dc_diff
,
i_code
;
int
i_size
,
i_dc_diff
,
i_code
;
...
@@ -958,8 +958,7 @@ coeff_2:
...
@@ -958,8 +958,7 @@ coeff_2:
p_vpar->sequence.chroma_intra_quant.pi_matrix );
p_vpar->sequence.chroma_intra_quant.pi_matrix );
#define DECLARE_INTRAMB( PSZ_NAME, PF_MBFUNC ) \
#define DECLARE_INTRAMB( PSZ_NAME, PF_MBFUNC ) \
static __inline__ void PSZ_NAME( vpar_thread_t * p_vpar, \
static inline void PSZ_NAME( vpar_thread_t * p_vpar, macroblock_t * p_mb ) \
macroblock_t * p_mb ) \
{ \
{ \
idct_inner_t * p_idct; \
idct_inner_t * p_idct; \
int i_b = 4; \
int i_b = 4; \
...
@@ -1011,8 +1010,7 @@ DECLARE_INTRAMB( MPEG2IntraB15MB, MPEG2IntraB15 );
...
@@ -1011,8 +1010,7 @@ DECLARE_INTRAMB( MPEG2IntraB15MB, MPEG2IntraB15 );
}
}
#define DECLARE_NONINTRAMB( PSZ_NAME, PF_MBFUNC ) \
#define DECLARE_NONINTRAMB( PSZ_NAME, PF_MBFUNC ) \
static __inline__ void PSZ_NAME( vpar_thread_t * p_vpar, \
static inline void PSZ_NAME( vpar_thread_t * p_vpar, macroblock_t * p_mb ) \
macroblock_t * p_mb ) \
{ \
{ \
idct_inner_t * p_idct; \
idct_inner_t * p_idct; \
int i_b = 4; \
int i_b = 4; \
...
@@ -1052,7 +1050,7 @@ DECLARE_NONINTRAMB( MPEG2NonIntraMB, MPEG2NonIntra );
...
@@ -1052,7 +1050,7 @@ DECLARE_NONINTRAMB( MPEG2NonIntraMB, MPEG2NonIntra );
/****************************************************************************
/****************************************************************************
* MotionDelta : Parse the next motion delta
* MotionDelta : Parse the next motion delta
****************************************************************************/
****************************************************************************/
static
__inline__
int
MotionDelta
(
vpar_thread_t
*
p_vpar
,
int
i_f_code
)
static
inline
int
MotionDelta
(
vpar_thread_t
*
p_vpar
,
int
i_f_code
)
{
{
int
i_delta
,
i_sign
,
i_code
;
int
i_delta
,
i_sign
,
i_code
;
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
...
@@ -1097,7 +1095,7 @@ static __inline__ int MotionDelta( vpar_thread_t * p_vpar, int i_f_code )
...
@@ -1097,7 +1095,7 @@ static __inline__ int MotionDelta( vpar_thread_t * p_vpar, int i_f_code )
/****************************************************************************
/****************************************************************************
* BoundMotionVector : Bound a motion_vector :-)
* BoundMotionVector : Bound a motion_vector :-)
****************************************************************************/
****************************************************************************/
static
__inline__
int
BoundMotionVector
(
int
i_vector
,
int
i_f_code
)
static
inline
int
BoundMotionVector
(
int
i_vector
,
int
i_f_code
)
{
{
int
i_limit
;
int
i_limit
;
...
@@ -1120,7 +1118,7 @@ static __inline__ int BoundMotionVector( int i_vector, int i_f_code )
...
@@ -1120,7 +1118,7 @@ static __inline__ int BoundMotionVector( int i_vector, int i_f_code )
/****************************************************************************
/****************************************************************************
* GetDMV : Decode a differential motion vector (Dual Prime Arithmetic)
* GetDMV : Decode a differential motion vector (Dual Prime Arithmetic)
****************************************************************************/
****************************************************************************/
static
__inline__
int
GetDMV
(
vpar_thread_t
*
p_vpar
)
static
inline
int
GetDMV
(
vpar_thread_t
*
p_vpar
)
{
{
dmv_lookup_t
*
p_tab
;
dmv_lookup_t
*
p_tab
;
...
@@ -1532,7 +1530,7 @@ static void MotionFieldConceal( vpar_thread_t * p_vpar,
...
@@ -1532,7 +1530,7 @@ static void MotionFieldConceal( vpar_thread_t * p_vpar,
/*****************************************************************************
/*****************************************************************************
* MacroblockAddressIncrement : Get the macroblock_address_increment field
* MacroblockAddressIncrement : Get the macroblock_address_increment field
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
MacroblockAddressIncrement
(
vpar_thread_t
*
p_vpar
)
static
inline
int
MacroblockAddressIncrement
(
vpar_thread_t
*
p_vpar
)
{
{
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
int
i_code
;
int
i_code
;
...
@@ -1573,7 +1571,7 @@ static __inline__ int MacroblockAddressIncrement( vpar_thread_t * p_vpar )
...
@@ -1573,7 +1571,7 @@ static __inline__ int MacroblockAddressIncrement( vpar_thread_t * p_vpar )
/*****************************************************************************
/*****************************************************************************
* CodedPattern : coded_block_pattern
* CodedPattern : coded_block_pattern
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
CodedPattern
(
vpar_thread_t
*
p_vpar
)
static
inline
int
CodedPattern
(
vpar_thread_t
*
p_vpar
)
{
{
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
int
i_code
;
int
i_code
;
...
@@ -1604,10 +1602,8 @@ static __inline__ int CodedPattern( vpar_thread_t * p_vpar )
...
@@ -1604,10 +1602,8 @@ static __inline__ int CodedPattern( vpar_thread_t * p_vpar )
/*****************************************************************************
/*****************************************************************************
* MacroblockModes : Get the macroblock_modes structure
* MacroblockModes : Get the macroblock_modes structure
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
MacroblockModes
(
vpar_thread_t
*
p_vpar
,
static
inline
int
MacroblockModes
(
vpar_thread_t
*
p_vpar
,
macroblock_t
*
p_mb
,
macroblock_t
*
p_mb
,
int
i_coding_type
,
int
i_structure
)
int
i_coding_type
,
int
i_structure
)
{
{
int
i_mb_modes
;
int
i_mb_modes
;
lookup_t
*
p_tab
;
lookup_t
*
p_tab
;
...
@@ -1765,9 +1761,9 @@ mb_intra:
...
@@ -1765,9 +1761,9 @@ mb_intra:
return; \
return; \
}
}
static
__inline__
void
ParseSlice
(
vpar_thread_t
*
p_vpar
,
static
inline
void
ParseSlice
(
vpar_thread_t
*
p_vpar
,
u32
i_vert_code
,
boolean_t
b_mpeg2
,
u32
i_vert_code
,
boolean_t
b_mpeg2
,
int
i_coding_type
,
int
i_structure
)
int
i_coding_type
,
int
i_structure
)
{
{
int
i_lum_offset
,
i_chrom_offset
,
i_offset
,
i_lum_vsize
,
i_chrom_vsize
;
int
i_lum_offset
,
i_chrom_offset
,
i_offset
,
i_lum_vsize
,
i_chrom_vsize
;
picture_t
*
pp_forward_ref
[
2
];
picture_t
*
pp_forward_ref
[
2
];
...
@@ -2156,9 +2152,8 @@ static __inline__ void ParseSlice( vpar_thread_t * p_vpar,
...
@@ -2156,9 +2152,8 @@ static __inline__ void ParseSlice( vpar_thread_t * p_vpar,
/*****************************************************************************
/*****************************************************************************
* PictureData : Parse off all macroblocks (ISO/IEC 13818-2 6.2.3.7)
* PictureData : Parse off all macroblocks (ISO/IEC 13818-2 6.2.3.7)
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
vpar_PictureData
(
vpar_thread_t
*
p_vpar
,
static
inline
void
vpar_PictureData
(
vpar_thread_t
*
p_vpar
,
boolean_t
b_mpeg2
,
boolean_t
b_mpeg2
,
int
i_coding_type
,
int
i_structure
)
int
i_coding_type
,
int
i_structure
)
{
{
u32
i_dummy
;
u32
i_dummy
;
...
...
plugins/mpeg_vdec/vpar_headers.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing
* vpar_headers.c : headers parsing
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: vpar_headers.c,v 1.
19 2002/05/17 18:12:59 stef
Exp $
* $Id: vpar_headers.c,v 1.
20 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
/*
/*
* Local prototypes
* Local prototypes
*/
*/
static
__inline__
void
NextStartCode
(
bit_stream_t
*
);
static
inline
void
NextStartCode
(
bit_stream_t
*
);
static
void
SequenceHeader
(
vpar_thread_t
*
p_vpar
);
static
void
SequenceHeader
(
vpar_thread_t
*
p_vpar
);
static
void
GroupHeader
(
vpar_thread_t
*
p_vpar
);
static
void
GroupHeader
(
vpar_thread_t
*
p_vpar
);
static
void
PictureHeader
(
vpar_thread_t
*
p_vpar
);
static
void
PictureHeader
(
vpar_thread_t
*
p_vpar
);
...
@@ -117,9 +117,9 @@ u8 pi_scan[2][64] ATTR_ALIGN(16) =
...
@@ -117,9 +117,9 @@ u8 pi_scan[2][64] ATTR_ALIGN(16) =
/*****************************************************************************
/*****************************************************************************
* ReferenceUpdate : Update the reference pointers when we have a new picture
* ReferenceUpdate : Update the reference pointers when we have a new picture
*****************************************************************************/
*****************************************************************************/
static
void
__inline__
ReferenceUpdate
(
vpar_thread_t
*
p_vpar
,
static
void
inline
ReferenceUpdate
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
int
i_coding_type
,
picture_t
*
p_newref
)
picture_t
*
p_newref
)
{
{
if
(
i_coding_type
!=
B_CODING_TYPE
)
if
(
i_coding_type
!=
B_CODING_TYPE
)
{
{
...
@@ -150,9 +150,8 @@ static void __inline__ ReferenceUpdate( vpar_thread_t * p_vpar,
...
@@ -150,9 +150,8 @@ static void __inline__ ReferenceUpdate( vpar_thread_t * p_vpar,
* ReferenceReplace : Replace the last reference pointer when we destroy
* ReferenceReplace : Replace the last reference pointer when we destroy
* a picture
* a picture
*****************************************************************************/
*****************************************************************************/
static
void
__inline__
ReferenceReplace
(
vpar_thread_t
*
p_vpar
,
static
void
inline
ReferenceReplace
(
vpar_thread_t
*
p_vpar
,
int
i_coding_type
,
int
i_coding_type
,
picture_t
*
p_newref
)
picture_t
*
p_newref
)
{
{
if
(
i_coding_type
!=
B_CODING_TYPE
)
if
(
i_coding_type
!=
B_CODING_TYPE
)
{
{
...
@@ -171,8 +170,8 @@ static void __inline__ ReferenceReplace( vpar_thread_t * p_vpar,
...
@@ -171,8 +170,8 @@ static void __inline__ ReferenceReplace( vpar_thread_t * p_vpar,
/*****************************************************************************
/*****************************************************************************
* LoadMatrix : Load a quantization matrix
* LoadMatrix : Load a quantization matrix
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
LoadMatrix
(
vpar_thread_t
*
p_vpar
,
static
inline
void
LoadMatrix
(
vpar_thread_t
*
p_vpar
,
quant_matrix_t
*
p_matrix
)
quant_matrix_t
*
p_matrix
)
{
{
int
i_dummy
;
int
i_dummy
;
...
@@ -198,7 +197,7 @@ static __inline__ void LoadMatrix( vpar_thread_t * p_vpar,
...
@@ -198,7 +197,7 @@ static __inline__ void LoadMatrix( vpar_thread_t * p_vpar,
/*****************************************************************************
/*****************************************************************************
* LinkMatrix : Link a quantization matrix to another
* LinkMatrix : Link a quantization matrix to another
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
LinkMatrix
(
quant_matrix_t
*
p_matrix
,
u8
*
pi_array
)
static
inline
void
LinkMatrix
(
quant_matrix_t
*
p_matrix
,
u8
*
pi_array
)
{
{
if
(
p_matrix
->
b_allocated
)
if
(
p_matrix
->
b_allocated
)
{
{
...
@@ -213,7 +212,7 @@ static __inline__ void LinkMatrix( quant_matrix_t * p_matrix, u8 * pi_array )
...
@@ -213,7 +212,7 @@ static __inline__ void LinkMatrix( quant_matrix_t * p_matrix, u8 * pi_array )
/*****************************************************************************
/*****************************************************************************
* ChromaToFourCC: Return a FourCC value used by the video output.
* ChromaToFourCC: Return a FourCC value used by the video output.
*****************************************************************************/
*****************************************************************************/
static
__inline__
u64
ChromaToFourCC
(
int
i_chroma
)
static
inline
u64
ChromaToFourCC
(
int
i_chroma
)
{
{
switch
(
i_chroma
)
switch
(
i_chroma
)
{
{
...
...
plugins/mpeg_vdec/vpar_pool.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vpar_pool.h : video parser/video decoders communication
* vpar_pool.h : video parser/video decoders communication
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: vpar_pool.h,v 1.
1 2001/11/13 12:09:18 henri
Exp $
* $Id: vpar_pool.h,v 1.
2 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -90,8 +90,8 @@ void vpar_EndPool( struct vpar_thread_s * );
...
@@ -90,8 +90,8 @@ void vpar_EndPool( struct vpar_thread_s * );
/*****************************************************************************
/*****************************************************************************
* vpar_GetMacroblock: In a vdec thread, get the next available macroblock
* vpar_GetMacroblock: In a vdec thread, get the next available macroblock
*****************************************************************************/
*****************************************************************************/
static
__inline__
macroblock_t
*
vpar_GetMacroblock
(
vdec_pool_t
*
p_pool
,
static
inline
macroblock_t
*
vpar_GetMacroblock
(
vdec_pool_t
*
p_pool
,
boolean_t
*
pb_die
)
boolean_t
*
pb_die
)
{
{
macroblock_t
*
p_mb
;
macroblock_t
*
p_mb
;
...
...
plugins/sdl/vout_sdl.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_sdl.c: SDL video output display method
* vout_sdl.c: SDL video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: vout_sdl.c,v 1.9
0 2002/05/14 17:31:40
sam Exp $
* $Id: vout_sdl.c,v 1.9
1 2002/05/18 17:47:47
sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
* Pierre Baillet <oct@zoy.org>
...
@@ -93,7 +93,7 @@ typedef struct picture_sys_s
...
@@ -93,7 +93,7 @@ typedef struct picture_sys_s
/*****************************************************************************
/*****************************************************************************
* Seeking function TODO: put this in a generic location !
* Seeking function TODO: put this in a generic location !
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
vout_Seek
(
off_t
i_seek
)
static
inline
void
vout_Seek
(
off_t
i_seek
)
{
{
off_t
i_tell
;
off_t
i_tell
;
...
...
plugins/spudec/spu_decoder.h
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* spu_decoder.h : sub picture unit decoder thread interface
* spu_decoder.h : sub picture unit decoder thread interface
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: spu_decoder.h,v 1.
3 2002/03/15 18:20:2
7 sam Exp $
* $Id: spu_decoder.h,v 1.
4 2002/05/18 17:47:4
7 sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -86,8 +86,8 @@ typedef struct spudec_thread_s
...
@@ -86,8 +86,8 @@ typedef struct spudec_thread_s
/*****************************************************************************
/*****************************************************************************
* AddNibble: read a nibble from a source packet and add it to our integer.
* AddNibble: read a nibble from a source packet and add it to our integer.
*****************************************************************************/
*****************************************************************************/
static
__inline__
unsigned
int
AddNibble
(
unsigned
int
i_code
,
static
inline
unsigned
int
AddNibble
(
unsigned
int
i_code
,
u8
*
p_src
,
int
*
pi_index
)
u8
*
p_src
,
int
*
pi_index
)
{
{
if
(
*
pi_index
&
0x1
)
if
(
*
pi_index
&
0x1
)
{
{
...
...
plugins/x11/xcommon.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* xcommon.c: Functions common to the X11 and XVideo plugins
* xcommon.c: Functions common to the X11 and XVideo plugins
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: xcommon.c,v 1.3
2 2002/05/13 17:58:08
sam Exp $
* $Id: xcommon.c,v 1.3
3 2002/05/18 17:47:47
sam Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -241,7 +241,7 @@ typedef struct mwmhints_s
...
@@ -241,7 +241,7 @@ typedef struct mwmhints_s
/*****************************************************************************
/*****************************************************************************
* Seeking function TODO: put this in a generic location !
* Seeking function TODO: put this in a generic location !
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
vout_Seek
(
off_t
i_seek
)
static
inline
void
vout_Seek
(
off_t
i_seek
)
{
{
off_t
i_tell
;
off_t
i_tell
;
...
...
src/audio_output/aout_pcm.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* aout_pcm.c: PCM audio output functions
* aout_pcm.c: PCM audio output functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
* Copyright (C) 1999-2002 VideoLAN
* $Id: aout_pcm.c,v 1.
5 2002/05/18 15:51:37 gbazin
Exp $
* $Id: aout_pcm.c,v 1.
6 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
* Cyril Deguet <asmax@via.ecp.fr>
...
@@ -175,8 +175,8 @@ void aout_PCMThread( aout_thread_t * p_aout )
...
@@ -175,8 +175,8 @@ void aout_PCMThread( aout_thread_t * p_aout )
/*****************************************************************************
/*****************************************************************************
* InitializeIncrement: change i_x/i_y to i_a+i_b/i_c
* InitializeIncrement: change i_x/i_y to i_a+i_b/i_c
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
InitializeIncrement
(
aout_increment_t
*
p_inc
,
static
inline
void
InitializeIncrement
(
aout_increment_t
*
p_inc
,
int
i_x
,
int
i_y
)
int
i_x
,
int
i_y
)
{
{
p_inc
->
i_r
=
-
i_y
;
p_inc
->
i_r
=
-
i_y
;
p_inc
->
i_a
=
0
;
p_inc
->
i_a
=
0
;
...
@@ -194,8 +194,7 @@ static __inline__ void InitializeIncrement( aout_increment_t * p_inc,
...
@@ -194,8 +194,7 @@ static __inline__ void InitializeIncrement( aout_increment_t * p_inc,
/*****************************************************************************
/*****************************************************************************
* UpdateIncrement
* UpdateIncrement
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
UpdateIncrement
(
aout_increment_t
*
p_inc
,
static
inline
void
UpdateIncrement
(
aout_increment_t
*
p_inc
,
int
*
pi_integer
)
int
*
pi_integer
)
{
{
if
(
(
p_inc
->
i_r
+=
p_inc
->
i_b
)
>=
0
)
if
(
(
p_inc
->
i_r
+=
p_inc
->
i_b
)
>=
0
)
{
{
...
...
src/input/input_ext-dec.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_ext-dec.c: services to the decoders
* input_ext-dec.c: services to the decoders
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_ext-dec.c,v 1.3
0 2002/03/01 00:33:18 massiot
Exp $
* $Id: input_ext-dec.c,v 1.3
1 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -112,8 +112,8 @@ void DecoderError( decoder_fifo_t * p_fifo )
...
@@ -112,8 +112,8 @@ void DecoderError( decoder_fifo_t * p_fifo )
* NextDataPacket: go to the data packet after *pp_data, return 1 if we
* NextDataPacket: go to the data packet after *pp_data, return 1 if we
* changed PES
* changed PES
*****************************************************************************/
*****************************************************************************/
static
__inline__
boolean_t
_NextDataPacket
(
decoder_fifo_t
*
p_fifo
,
static
inline
boolean_t
_NextDataPacket
(
decoder_fifo_t
*
p_fifo
,
data_packet_t
**
pp_data
)
data_packet_t
**
pp_data
)
{
{
boolean_t
b_new_pes
;
boolean_t
b_new_pes
;
...
@@ -179,7 +179,7 @@ boolean_t NextDataPacket( decoder_fifo_t * p_fifo, data_packet_t ** pp_data )
...
@@ -179,7 +179,7 @@ boolean_t NextDataPacket( decoder_fifo_t * p_fifo, data_packet_t ** pp_data )
* BitstreamNextDataPacket: go to the next data packet, and update bitstream
* BitstreamNextDataPacket: go to the next data packet, and update bitstream
* context
* context
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
_BitstreamNextDataPacket
(
bit_stream_t
*
p_bit_stream
)
static
inline
void
_BitstreamNextDataPacket
(
bit_stream_t
*
p_bit_stream
)
{
{
decoder_fifo_t
*
p_fifo
=
p_bit_stream
->
p_decoder_fifo
;
decoder_fifo_t
*
p_fifo
=
p_bit_stream
->
p_decoder_fifo
;
boolean_t
b_new_pes
;
boolean_t
b_new_pes
;
...
...
src/input/input_ext-plugins.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_ext-plugins.c: useful functions for access and demux plug-ins
* input_ext-plugins.c: useful functions for access and demux plug-ins
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: input_ext-plugins.c,v 1.
8 2002/05/15 13:36:40 marcari
Exp $
* $Id: input_ext-plugins.c,v 1.
9 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -205,8 +205,8 @@ void input_BuffersEnd( input_buffers_t * p_buffers )
...
@@ -205,8 +205,8 @@ void input_BuffersEnd( input_buffers_t * p_buffers )
/*****************************************************************************
/*****************************************************************************
* input_NewBuffer: return a pointer to a data buffer of the appropriate size
* input_NewBuffer: return a pointer to a data buffer of the appropriate size
*****************************************************************************/
*****************************************************************************/
static
__inline__
data_buffer_t
*
NewBuffer
(
input_buffers_t
*
p_buffers
,
static
inline
data_buffer_t
*
NewBuffer
(
input_buffers_t
*
p_buffers
,
size_t
i_size
)
size_t
i_size
)
{
{
data_buffer_t
*
p_buf
;
data_buffer_t
*
p_buf
;
...
@@ -274,8 +274,8 @@ data_buffer_t * input_NewBuffer( input_buffers_t * p_buffers, size_t i_size )
...
@@ -274,8 +274,8 @@ data_buffer_t * input_NewBuffer( input_buffers_t * p_buffers, size_t i_size )
/*****************************************************************************
/*****************************************************************************
* input_ReleaseBuffer: put a buffer back into the cache
* input_ReleaseBuffer: put a buffer back into the cache
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
ReleaseBuffer
(
input_buffers_t
*
p_buffers
,
static
inline
void
ReleaseBuffer
(
input_buffers_t
*
p_buffers
,
data_buffer_t
*
p_buf
)
data_buffer_t
*
p_buf
)
{
{
/* Decrement refcount */
/* Decrement refcount */
if
(
--
p_buf
->
i_refcount
>
0
)
if
(
--
p_buf
->
i_refcount
>
0
)
...
@@ -307,8 +307,8 @@ void input_ReleaseBuffer( input_buffers_t * p_buffers, data_buffer_t * p_buf )
...
@@ -307,8 +307,8 @@ void input_ReleaseBuffer( input_buffers_t * p_buffers, data_buffer_t * p_buf )
/*****************************************************************************
/*****************************************************************************
* input_ShareBuffer: allocate a data_packet_t pointing to a given buffer
* input_ShareBuffer: allocate a data_packet_t pointing to a given buffer
*****************************************************************************/
*****************************************************************************/
static
__inline__
data_packet_t
*
ShareBuffer
(
input_buffers_t
*
p_buffers
,
static
inline
data_packet_t
*
ShareBuffer
(
input_buffers_t
*
p_buffers
,
data_buffer_t
*
p_buf
)
data_buffer_t
*
p_buf
)
{
{
data_packet_t
*
p_data
;
data_packet_t
*
p_data
;
...
@@ -356,8 +356,8 @@ data_packet_t * input_ShareBuffer( input_buffers_t * p_buffers,
...
@@ -356,8 +356,8 @@ data_packet_t * input_ShareBuffer( input_buffers_t * p_buffers,
/*****************************************************************************
/*****************************************************************************
* input_NewPacket: allocate a packet along with a buffer
* input_NewPacket: allocate a packet along with a buffer
*****************************************************************************/
*****************************************************************************/
static
__inline__
data_packet_t
*
NewPacket
(
input_buffers_t
*
p_buffers
,
static
inline
data_packet_t
*
NewPacket
(
input_buffers_t
*
p_buffers
,
size_t
i_size
)
size_t
i_size
)
{
{
data_buffer_t
*
p_buf
=
NewBuffer
(
p_buffers
,
i_size
);
data_buffer_t
*
p_buf
=
NewBuffer
(
p_buffers
,
i_size
);
data_packet_t
*
p_data
;
data_packet_t
*
p_data
;
...
@@ -389,8 +389,8 @@ data_packet_t * input_NewPacket( input_buffers_t * p_buffers, size_t i_size )
...
@@ -389,8 +389,8 @@ data_packet_t * input_NewPacket( input_buffers_t * p_buffers, size_t i_size )
/*****************************************************************************
/*****************************************************************************
* input_DeletePacket: deallocate a packet and its buffers
* input_DeletePacket: deallocate a packet and its buffers
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
DeletePacket
(
input_buffers_t
*
p_buffers
,
static
inline
void
DeletePacket
(
input_buffers_t
*
p_buffers
,
data_packet_t
*
p_data
)
data_packet_t
*
p_data
)
{
{
while
(
p_data
!=
NULL
)
while
(
p_data
!=
NULL
)
{
{
...
@@ -424,7 +424,7 @@ void input_DeletePacket( input_buffers_t * p_buffers, data_packet_t * p_data )
...
@@ -424,7 +424,7 @@ void input_DeletePacket( input_buffers_t * p_buffers, data_packet_t * p_data )
/*****************************************************************************
/*****************************************************************************
* input_NewPES: return a pointer to a new PES packet
* input_NewPES: return a pointer to a new PES packet
*****************************************************************************/
*****************************************************************************/
static
__inline__
pes_packet_t
*
NewPES
(
input_buffers_t
*
p_buffers
)
static
inline
pes_packet_t
*
NewPES
(
input_buffers_t
*
p_buffers
)
{
{
pes_packet_t
*
p_pes
;
pes_packet_t
*
p_pes
;
...
@@ -471,8 +471,8 @@ pes_packet_t * input_NewPES( input_buffers_t * p_buffers )
...
@@ -471,8 +471,8 @@ pes_packet_t * input_NewPES( input_buffers_t * p_buffers )
* input_DeletePES: put a pes and all data packets and all buffers back into
* input_DeletePES: put a pes and all data packets and all buffers back into
* the cache
* the cache
*****************************************************************************/
*****************************************************************************/
static
__inline__
void
DeletePES
(
input_buffers_t
*
p_buffers
,
static
inline
void
DeletePES
(
input_buffers_t
*
p_buffers
,
pes_packet_t
*
p_pes
)
pes_packet_t
*
p_pes
)
{
{
while
(
p_pes
!=
NULL
)
while
(
p_pes
!=
NULL
)
{
{
...
@@ -726,7 +726,7 @@ ssize_t input_FDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len
...
@@ -726,7 +726,7 @@ ssize_t input_FDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len
/*****************************************************************************
/*****************************************************************************
* NetworkSelect: Checks whether data is available on a file descriptor
* NetworkSelect: Checks whether data is available on a file descriptor
*****************************************************************************/
*****************************************************************************/
static
__inline__
int
NetworkSelect
(
input_thread_t
*
p_input
)
static
inline
int
NetworkSelect
(
input_thread_t
*
p_input
)
{
{
input_socket_t
*
p_access_data
=
(
input_socket_t
*
)
p_input
->
p_access_data
;
input_socket_t
*
p_access_data
=
(
input_socket_t
*
)
p_input
->
p_access_data
;
struct
timeval
timeout
;
struct
timeval
timeout
;
...
...
src/input/mpeg_system.c
View file @
ac5c557f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpeg_system.c: TS, PS and PES management
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* Copyright (C) 1998-2001 VideoLAN
* $Id: mpeg_system.c,v 1.9
5 2002/05/14 20:54:52 jobi
Exp $
* $Id: mpeg_system.c,v 1.9
6 2002/05/18 17:47:47 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
...
@@ -51,10 +51,8 @@
...
@@ -51,10 +51,8 @@
* It also solves some alignment problems on non-IA-32, non-PPC processors.
* It also solves some alignment problems on non-IA-32, non-PPC processors.
* This is a variation on the theme of input_ext-dec.h:GetChunk().
* This is a variation on the theme of input_ext-dec.h:GetChunk().
*****************************************************************************/
*****************************************************************************/
static
__inline__
size_t
MoveChunk
(
byte_t
*
p_dest
,
static
inline
size_t
MoveChunk
(
byte_t
*
p_dest
,
data_packet_t
**
pp_data_src
,
data_packet_t
**
pp_data_src
,
byte_t
**
pp_src
,
size_t
i_buf_len
)
byte_t
**
pp_src
,
size_t
i_buf_len
)
{
{
ptrdiff_t
i_available
;
ptrdiff_t
i_available
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment