Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f22f4ef5
Commit
f22f4ef5
authored
Dec 18, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed several format string inconsistencies and deprecated C constructions.
parent
f9e12228
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
577 additions
and
572 deletions
+577
-572
modules/access/ftp.c
modules/access/ftp.c
+2
-2
modules/access/mms/mms.c
modules/access/mms/mms.c
+7
-3
modules/audio_output/oss.c
modules/audio_output/oss.c
+2
-2
modules/codec/adpcm.c
modules/codec/adpcm.c
+2
-1
modules/codec/ffmpeg/audio.c
modules/codec/ffmpeg/audio.c
+2
-2
modules/codec/ffmpeg/postprocessing/postprocessing_mmx.c
modules/codec/ffmpeg/postprocessing/postprocessing_mmx.c
+265
-265
modules/codec/ffmpeg/postprocessing/postprocessing_mmxext.c
modules/codec/ffmpeg/postprocessing/postprocessing_mmxext.c
+252
-255
modules/codec/mpeg_video/parser.c
modules/codec/mpeg_video/parser.c
+6
-6
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+4
-3
modules/demux/demuxdump.c
modules/demux/demuxdump.c
+2
-2
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+4
-4
modules/demux/ogg.c
modules/demux/ogg.c
+2
-2
modules/demux/wav/wav.c
modules/demux/wav/wav.c
+2
-2
modules/gui/gtk/display.c
modules/gui/gtk/display.c
+2
-2
modules/mux/mpeg/ps.c
modules/mux/mpeg/ps.c
+3
-3
src/audio_output/mixer.c
src/audio_output/mixer.c
+2
-2
src/input/input.c
src/input/input.c
+3
-3
src/input/input_ext-intf.c
src/input/input_ext-intf.c
+4
-4
src/misc/threads.c
src/misc/threads.c
+6
-5
src/misc/variables.c
src/misc/variables.c
+2
-2
src/video_output/video_output.c
src/video_output/video_output.c
+3
-2
No files found.
modules/access/ftp.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* ftp.c:
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ftp.c,v 1.
2 2002/12/16 15:17:12 fenrir
Exp $
* $Id: ftp.c,v 1.
3 2002/12/18 14:17:09 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -350,7 +350,7 @@ static int Open( vlc_object_t *p_this )
}
#endif
msg_Dbg
(
p_input
,
"file size:
%d"
,
p_access
->
i_filesize
);
msg_Dbg
(
p_input
,
"file size:
"
I64Fd
,
p_access
->
i_filesize
);
FREE
(
psz_arg
);
if
(
ftp_StartStream
(
p_input
,
0
)
<
0
)
...
...
modules/access/mms/mms.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* mms.c: MMS access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mms.c,v 1.1
3 2002/12/12 15:10:58 gbazin
Exp $
* $Id: mms.c,v 1.1
4 2002/12/18 14:17:09 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -1559,11 +1559,15 @@ static int mms_ParseCommand( input_thread_t *p_input,
GET32
(
0
),
GET32
(
4
),
GET32
(
8
),
/* 12: protocol type "MMS " */
GET32
(
16
),
GET32
(
20
),
/* 24: unknown (0) */
/* 28: unknown (0) */
GET32
(
32
),
GET32
(
36
),
GET32
(
40
)
);
GET32
(
36
)
/* 40: switches */
/* 44: extra */
);
p_access
->
i_command
=
GET32
(
36
)
&
0xffff
;
...
...
modules/audio_output/oss.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
* $Id: oss.c,v 1.3
8 2002/12/10 18:22:01 gbazin
Exp $
* $Id: oss.c,v 1.3
9 2002/12/18 14:17:09 sam
Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -376,7 +376,7 @@ static int Open( vlc_object_t *p_this )
if
(
ioctl
(
p_sys
->
i_fd
,
SNDCTL_DSP_CHANNELS
,
&
i_nb_channels
)
<
0
||
i_nb_channels
!=
aout_FormatNbChannels
(
&
p_aout
->
output
.
output
)
)
{
msg_Err
(
p_aout
,
"cannot set number of audio channels (%
x
)"
,
msg_Err
(
p_aout
,
"cannot set number of audio channels (%
s
)"
,
aout_FormatPrintChannels
(
&
p_aout
->
output
.
output
)
);
close
(
p_sys
->
i_fd
);
free
(
p_sys
);
...
...
modules/codec/adpcm.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* adpcm.c : adpcm variant audio decoder
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: adpcm.c,v 1.
1 2002/12/03 17:00:16 fenrir
Exp $
* $Id: adpcm.c,v 1.
2 2002/12/18 14:17:10 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -378,6 +378,7 @@ static void DecodeThread( adec_thread_t *p_adec )
DecodeAdpcmMs
(
p_adec
,
p_aout_buffer
);
break
;
default:
break
;
}
...
...
modules/codec/ffmpeg/audio.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* audio.c: audio decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: audio.c,v 1.
7 2002/12/06 14:22:55 fenrir
Exp $
* $Id: audio.c,v 1.
8 2002/12/18 14:17:10 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -238,7 +238,7 @@ void E_( DecodeThread_Audio )( adec_thread_t *p_adec )
p_adec
->
p_context
->
channels
>
5
)
{
msg_Warn
(
p_adec
->
p_fifo
,
"invalid channels count
"
,
"invalid channels count
%d"
,
p_adec
->
p_context
->
channels
);
}
...
...
modules/codec/ffmpeg/postprocessing/postprocessing_mmx.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* postprocessing_mmx.c: Post Processing library in MMX
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: postprocessing_mmx.c,v 1.
2 2002/12/06 16:34:05
sam Exp $
* $Id: postprocessing_mmx.c,v 1.
3 2002/12/18 14:17:10
sam Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <vlc/vlc.h>
/* only use u
8, u32
.... */
#include <vlc/vlc.h>
/* only use u
int8_t, uint32_t
.... */
#include "postprocessing.h"
#include "postprocessing_common.h"
...
...
@@ -67,30 +67,30 @@ UNUSED_LONGLONG( mmx_m2_5_m5_2 ) = 0xfffe0005fffb0002ULL;
#if 0
/* find min bytes from r ans set it in r, t is destroyed */
#define MMXEXT_GET_PMIN( r, t ) \
"movq " #r ", " #t " \n\
psrlq $8, " #t " \n
\
pminub " #t ", " #r " \n
\
pshufw $0xf5, " #r ", " #t " #instead of shift with tmp reg \n
\
pminub " #t ", " #r " \n
\
pshufw $0xfe, " #r ", " #t " \n
\
pminub " #t ", " #r " \n"
"movq " #r ", " #t " \n
"
\
"psrlq $8, " #t " \n"
\
"pminub " #t ", " #r " \n"
\
"pshufw $0xf5, " #r ", " #t " #instead of shift with tmp reg \n"
\
"pminub " #t ", " #r " \n"
\
"pshufw $0xfe, " #r ", " #t " \n"
\
"
pminub " #t ", " #r " \n"
/* find mzx bytes from r ans set it in r, t is destroyed */
#define MMXEXT_GET_PMAX( r, t ) \
"movq " #r ", " #t " \n\
psrlq $8, " #t " \n
\
pmaxub " #t ", " #r " \n
\
pshufw $0xf5, " #r ", " #t " \n
\
pmaxub " #t ", " #r " \n
\
pshufw $0xfe, " #r ", " #t " \n
\
pmaxub " #t ", " #r " \n"
"movq " #r ", " #t " \n
"
\
"psrlq $8, " #t " \n"
\
"pmaxub " #t ", " #r " \n"
\
"pshufw $0xf5, " #r ", " #t " \n"
\
"pmaxub " #t ", " #r " \n"
\
"pshufw $0xfe, " #r ", " #t " \n"
\
"
pmaxub " #t ", " #r " \n"
#define MMXEXT_GET_LMINMAX( s, m, M, t ) \
"movq " #s ", " #t " \n\
pminub " #t ", " #m " \n
\
pmaxub " #t ", " #M " \n"
"movq " #s ", " #t " \n
"
\
"pminub " #t ", " #m " \n"
\
"
pmaxub " #t ", " #M " \n"
/* Some tips for MMX
...
...
@@ -112,7 +112,7 @@ UNUSED_LONGLONG( mmx_m2_5_m5_2 ) = 0xfffe0005fffb0002ULL;
* so need to be fast ...
*
****************************************************************************/
static
inline
int
pp_deblock_isDC_mode
(
u
8
*
p_v
)
static
inline
int
pp_deblock_isDC_mode
(
u
int8_t
*
p_v
)
{
unsigned
int
i_eq_cnt
;
...
...
@@ -124,27 +124,27 @@ static inline int pp_deblock_isDC_mode( u8 *p_v )
we add 127-M with wrap around -> good value fit in [ 127-2*M, 127]
and if x >= 127 - 2 * M ie x > 127 -2*M - 1 value is good
*/
__asm__
__volatile__
(
"
\n
\
#* Do (v0-v1) to (v7-v8)
\n
\
movq (%1), %%mm1 # load v0->v7
\n
\
movq 1(%1), %%mm2 # load v1->v8
\n
\
psubb %%mm2, %%mm1 # v[i]-v[i+1]
\n
\
paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap
\n
\
pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1
\n
"
"movq %%mm1, %%mm0 #
\n
\
psrlw $8, %%mm1 #
\n
\
paddb %%mm1, %%mm0 #
\n
\
#
\n
\
movq %%mm0, %%mm1 # Now sum to create eq_cnt
\n
\
psrld $16, %%mm0 #
\n
\
paddb %%mm0, %%mm1 #
\n
\
#
\n
\
movq %%mm1, %%mm0 #
\n
\
psrlq $32, %%mm1 #
\n
\
paddb %%mm1, %%mm0
\n
"
"movd %%mm0, %0 #
\n
\
negl %0
\n
\
andl $255, %0"
__asm__
__volatile__
(
" #* Do (v0-v1) to (v7-v8)
\n
"
"movq (%1), %%mm1 # load v0->v7
\n
"
"movq 1(%1), %%mm2 # load v1->v8
\n
"
"psubb %%mm2, %%mm1 # v[i]-v[i+1]
\n
"
"paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap
\n
"
"
pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1
\n
"
"movq %%mm1, %%mm0 #
\n
"
"psrlw $8, %%mm1 #
\n
"
"paddb %%mm1, %%mm0 #
\n
"
" #
\n
"
"movq %%mm0, %%mm1 # Now sum to create eq_cnt
\n
"
"psrld $16, %%mm0 #
\n
"
"paddb %%mm0, %%mm1 #
\n
"
" #
\n
"
"movq %%mm1, %%mm0 #
\n
"
"psrlq $32, %%mm1 #
\n
"
"paddb %%mm1, %%mm0
\n
"
"movd %%mm0, %0 #
\n
"
"negl %0
\n
"
"
andl $255, %0"
:
"=r"
(
i_eq_cnt
)
:
"r"
(
p_v
)
);
...
...
@@ -170,7 +170,7 @@ static inline int pp_deblock_isDC_mode( u8 *p_v )
return
(
(
i_eq_cnt
>=
PP_THR2
)
?
1
:
0
);
}
static
inline
int
pp_deblock_isMinMaxOk
(
u
8
*
p_v
,
int
i_QP
)
static
inline
int
pp_deblock_isMinMaxOk
(
u
int8_t
*
p_v
,
int
i_QP
)
{
int
i_range
;
...
...
@@ -180,9 +180,9 @@ static inline int pp_deblock_isMinMaxOk( u8 *p_v, int i_QP )
"movq %%mm0, %%mm1 \n"
MMXEXT_GET_PMIN( %%mm0, %%mm7 )
MMXEXT_GET_PMAX( %%mm1, %%mm7 )
"psubd %%mm0, %%mm1 # max - min \n
\
movd %%mm1, %0 \n\
andl $255, %0" : "=r"(i_range) : "r"(p_v) );
"psubd %%mm0, %%mm1 # max - min \n
"
"movd %%mm1, %0 \n"
"
andl $255, %0" : "=r"(i_range) : "r"(p_v) );
#endif
int
i_max
,
i_min
;
...
...
@@ -200,7 +200,7 @@ static inline int pp_deblock_isMinMaxOk( u8 *p_v, int i_QP )
}
static
inline
void
pp_deblock_DefaultMode
(
u
8
i_v
[
10
],
int
i_stride
,
static
inline
void
pp_deblock_DefaultMode
(
u
int8_t
i_v
[
10
],
int
i_stride
,
int
i_QP
)
{
int
d
,
i_delta
;
...
...
@@ -210,16 +210,16 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
/* d = CLIP( 5(a3x0' - a3x0)//8, 0, (v4-v5)/2 ).d( abs(a3x0) < QP ) */
/* First calculate a3x0 */
__asm__
__volatile__
(
"
\n
\
pxor %%mm7, %%mm7 # mm7 = 0
\n
\
movq mmx_m2_5_m5_2, %%mm6 # mm6 =(2,-5,5,-2)
\n
\
movd 3(%1), %%mm0
\n
\
punpcklbw %%mm7,%%mm0
\n
\
pmaddwd %%mm6, %%mm0
\n
"
"movq %%mm0, %%mm1
\n
\
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm0
\n
\
movd %%mm0, %0"
:
"=r"
(
a3x0
)
:
"r"
(
i_v
)
);
__asm__
__volatile__
(
"pxor %%mm7, %%mm7 # mm7 = 0
\n
"
"movq mmx_m2_5_m5_2, %%mm6 # mm6 =(2,-5,5,-2)
\n
"
"movd 3(%1), %%mm0
\n
"
"punpcklbw %%mm7,%%mm0
\n
"
"
pmaddwd %%mm6, %%mm0
\n
"
"movq %%mm0, %%mm1
\n
"
"
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm0
\n
"
"
movd %%mm0, %0"
:
"=r"
(
a3x0
)
:
"r"
(
i_v
)
);
#if 0
a3x0 = 2 * ( i_v[3] - i_v[6] ) + 5 *( i_v[5] - i_v[4] );
#endif
...
...
@@ -237,24 +237,24 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
if
(
(
a3x0
<
8
*
i_QP
)
&&
(
a3x0
!=
0
)
)
/* |a3x0| < 8*i_QP */
{
/* calculate a3x1 et a3x2 */
__asm__
__volatile__
(
"
\n
\
# mm7 = 0
\n
\
# mm6 = ( 2, -5, 5, -2 )
\n
\
movd 1(%2), %%mm0
\n
\
movd 5(%2), %%mm2
\n
\
punpcklbw %%mm7,%%mm0
\n
\
punpcklbw %%mm7,%%mm2
\n
\
pmaddwd %%mm6, %%mm0
\n
\
pmaddwd %%mm6, %%mm2
\n
"
"movq %%mm0, %%mm1
\n
\
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm0 # mm0 = a3x1
\n
\
movd %%mm0, %0
\n
"
"movq %%mm2, %%mm1
\n
\
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm2 # mm2 = a3x2
\n
\
movd %%mm2, %1
\n
\
"
:
"=r"
(
a3x1
),
"=r"
(
a3x2
)
:
"r"
(
i_v
)
);
__asm__
__volatile__
(
" # mm7 = 0
\n
"
" # mm6 = ( 2, -5, 5, -2 )
\n
"
"movd 1(%2), %%mm0
\n
"
"movd 5(%2), %%mm2
\n
"
"punpcklbw %%mm7,%%mm0
\n
"
"punpcklbw %%mm7,%%mm2
\n
"
"pmaddwd %%mm6, %%mm0
\n
"
"
pmaddwd %%mm6, %%mm2
\n
"
"movq %%mm0, %%mm1
\n
"
"
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm0 # mm0 = a3x1
\n
"
"
movd %%mm0, %0
\n
"
"movq %%mm2, %%mm1
\n
"
"
psrlq $32, %%mm1
\n
"
"paddd %%mm1, %%mm2 # mm2 = a3x2
\n
"
"movd %%mm2, %1
\n
"
:
"=r"
(
a3x1
),
"=r"
(
a3x2
)
:
"r"
(
i_v
)
);
#if 0
a3x1 = 2 * ( i_v[1] - i_v[4] ) + 5 * ( i_v[3] - i_v[2] );
a3x2 = 2 * ( i_v[5] - i_v[8] ) + 5 * ( i_v[7] - i_v[6] );
...
...
@@ -293,7 +293,7 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
static
inline
void
pp_deblock_DCMode
(
u
8
*
p_v
,
/* = int i_v[10] */
static
inline
void
pp_deblock_DCMode
(
u
int8_t
*
p_v
,
/* = int i_v[10] */
int
i_QP
)
{
int
i_p0
,
i_p9
;
...
...
@@ -329,104 +329,104 @@ static inline void pp_deblock_DCMode( u8 *p_v, /* = int i_v[10] */
mm6 = p9 << 48
mm7 = 0 */
__asm__
__volatile__
(
"pxor %%mm7, %%mm7
\n
\
movq 1(%0), %%mm0 # get 8 pix
\n
\
# unpack into mm1
\n
\
movq %%mm0, %%mm1
\n
\
punpcklbw %%mm7, %%mm1
\n
\
# get p_0 and i_p9
\n
\
movd %1, %%mm5
\n
\
movd %2, %%mm6
\n
\
psllq $48, %%mm6
\n
\n
\
movq %%mm1, %%mm3 # p_v[5-8] = v[1-4] !!
\n
\
movq %%mm1, %%mm2
\n
\
psllw $2, %%mm2 # p_v[1-4] = 4*v[1-4]
\n
\
\n
\
psllq $16, %%mm1
\n
\
por %%mm5, %%mm1 # mm1 =( p0, v1, v2 ,v3)
\n
\
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
psllq $16, %%mm1
\n
\
por %%mm5, %%mm1 # mm1 =( p0, p0, v1, v2)
\n
\
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
psllq $16, %%mm1
\n
\
por %%mm5, %%mm1 # mm1 =( p0, p0, p0, v1)
\n
\
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
psllq $16, %%mm1
\n
\
por %%mm5, %%mm1 # mm1 =( p0, p0, p0, p0)
\n
\
\n
\
paddw %%mm1, %%mm2
\n
\
# Now last part a little borring
\n
\
# last part for mm2, beginig for mm3
movq %%mm0, %%mm1
\n
\
psrlq $8, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v2, v3, v4, v5 )
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $16, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v3, v4, v5, v6 )
\n
\
psllw $1, %%mm1
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $24, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v4, v5, v6, v7)
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $32, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v5, v6, v7, v8)
\n
\
paddw %%mm1, %%mm2
\n
\
psllw $2, %%mm1
paddw %%mm1, %%mm3
\n
\
# Now last part for last 4 pix
\n
\
#
\n
\
movq %%mm0, %%mm1
\n
\
punpckhbw %%mm7, %%mm1 # mm1 = ( v5, v6, v7, v8)
\n
\
\n
\
psrlq $16, %%mm1
\n
\
por %%mm6, %%mm1 # mm1 =( v6, v7, v8, p9 )
\n
\
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
psrlq $16, %%mm1
\n
\
por %%mm6, %%mm1 # mm1 =( v7, v8, p9, p9)
\n
\
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
psrlq $16, %%mm1
\n
\
por %%mm6, %%mm1 # mm1 =( v8, p9, p9, p9 )
\n
\
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
psrlq $16, %%mm1
\n
\
por %%mm6, %%mm1 # mm1 =( p9, p9, p9, p9 )
\n
\
\n
\
paddw %%mm1, %%mm3
\n
\
psrlw $4, %%mm2
\n
\
psrlw $4, %%mm3
\n
\
packuswb %%mm3, %%mm2
\n
\
movq %%mm2, 1(%0)
\n
\
"
:
:
"r"
(
p_v
),
"r"
(
i_p0
),
"r"
(
i_p9
)
:
"memory"
);
"pxor %%mm7, %%mm7
\n
"
"movq 1(%0), %%mm0 # get 8 pix
\n
"
" # unpack into mm1
\n
"
"movq %%mm0, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1
\n
"
" # get p_0 and i_p9
\n
"
"movd %1, %%mm5
\n
"
"movd %2, %%mm6
\n
"
"psllq $48, %%mm6
\n
"
"
\n
"
"movq %%mm1, %%mm3 # p_v[5-8] = v[1-4] !!
\n
"
"movq %%mm1, %%mm2
\n
"
"psllw $2, %%mm2 # p_v[1-4] = 4*v[1-4]
\n
"
"
\n
"
"psllq $16, %%mm1
\n
"
"por %%mm5, %%mm1 # mm1 =( p0, v1, v2 ,v3)
\n
"
"
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"psllq $16, %%mm1
\n
"
"por %%mm5, %%mm1 # mm1 =( p0, p0, v1, v2)
\n
"
"
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"psllq $16, %%mm1
\n
"
"por %%mm5, %%mm1 # mm1 =( p0, p0, p0, v1)
\n
"
"
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"psllq $16, %%mm1
\n
"
"por %%mm5, %%mm1 # mm1 =( p0, p0, p0, p0)
\n
"
"
\n
"
"paddw %%mm1, %%mm2
\n
"
" # Now last part a little borring
\n
"
" # last part for mm2, beginig for mm3
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $8, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v2, v3, v4, v5 )
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $16, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v3, v4, v5, v6 )
\n
"
"psllw $1, %%mm1
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $24, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v4, v5, v6, v7)
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $32, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v5, v6, v7, v8)
\n
"
"paddw %%mm1, %%mm2
\n
"
"psllw $2, %%mm1
\n
"
"paddw %%mm1, %%mm3
\n
"
" # Now last part for last 4 pix
\n
"
" #
\n
"
"movq %%mm0, %%mm1
\n
"
"punpckhbw %%mm7, %%mm1 # mm1 = ( v5, v6, v7, v8)
\n
"
"
\n
"
"psrlq $16, %%mm1
\n
"
"por %%mm6, %%mm1 # mm1 =( v6, v7, v8, p9 )
\n
"
"
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"psrlq $16, %%mm1
\n
"
"por %%mm6, %%mm1 # mm1 =( v7, v8, p9, p9)
\n
"
"
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"psrlq $16, %%mm1
\n
"
"por %%mm6, %%mm1 # mm1 =( v8, p9, p9, p9 )
\n
"
"
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"psrlq $16, %%mm1
\n
"
"por %%mm6, %%mm1 # mm1 =( p9, p9, p9, p9 )
\n
"
"
\n
"
"paddw %%mm1, %%mm3
\n
"
"psrlw $4, %%mm2
\n
"
"psrlw $4, %%mm3
\n
"
"packuswb %%mm3, %%mm2
\n
"
"movq %%mm2, 1(%0)
\n
"
:
:
"r"
(
p_v
),
"r"
(
i_p0
),
"r"
(
i_p9
)
:
"memory"
);
#if 0
for( i = 1; i < 9; i++ )
...
...
@@ -471,17 +471,17 @@ static inline void pp_deblock_DCMode( u8 *p_v, /* = int i_v[10] */
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_deblock_V
)(
u
8
*
p_plane
,
void
E_
(
pp_deblock_V
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
,
int
b_chroma
)
{
int
x
,
y
,
i
;
u
8
*
p_v
;
u
int8_t
*
p_v
;
int
i_QP_scale
;
/* use to do ( ? >> i_QP_scale ) */
int
i_QP
;
u
8
i_v
[
10
];
u
int8_t
i_v
[
10
];
i_QP_scale
=
b_chroma
?
5
:
4
;
...
...
@@ -530,13 +530,13 @@ void E_( pp_deblock_V )( u8 *p_plane,
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_deblock_H
)(
u
8
*
p_plane
,
void
E_
(
pp_deblock_H
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
,
int
b_chroma
)
{
int
x
,
y
;
u
8
*
p_v
;
u
int8_t
*
p_v
;
int
i_QP_scale
;
int
i_QP
;
...
...
@@ -575,7 +575,7 @@ void E_( pp_deblock_H )( u8 *p_plane,
*
*****************************************************************************/
static
inline
void
pp_dering_MinMax
(
u
8
*
p_block
,
int
i_stride
,
static
inline
void
pp_dering_MinMax
(
u
int8_t
*
p_block
,
int
i_stride
,
int
*
pi_min
,
int
*
pi_max
)
{
int
x
,
y
;
...
...
@@ -587,9 +587,9 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
and next extract global min/max */
__asm__ __volatile__(
"leal (%2,%3), %%eax \n
\
movq (%2), %%mm0 #load line \n\
movq %%mm0, %%mm1 \n"
"leal (%2,%3), %%eax \n
"
"movq (%2), %%mm0 #load line \n"
"movq %%mm0, %%mm1 \n"
MMXEXT_GET_LMINMAX( (%%eax), %%mm0, %%mm1, %%mm7 )
MMXEXT_GET_LMINMAX( (%%eax, %3), %%mm0, %%mm1, %%mm7 )
...
...
@@ -602,12 +602,12 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
MMXEXT_GET_LMINMAX( (%%eax, %3,2), %%mm0, %%mm1, %%mm7 )
MMXEXT_GET_PMIN( %%mm0, %%mm7 )
MMXEXT_GET_PMAX( %%mm1, %%mm7 )
"movd %%mm0, %%eax \n
\
andl $255, %%eax \n\
movl %%eax, (%0) \n\
movd %%mm1, %%eax \n\
andl $255, %%eax \n\
movl %%eax, (%1) \n"
"movd %%mm0, %%eax \n
"
"andl $255, %%eax \n"
"movl %%eax, (%0) \n"
"movd %%mm1, %%eax \n"
"andl $255, %%eax \n"
"
movl %%eax, (%1) \n"
: : "r"(pi_min), "r"(pi_max), "r"(p_block), "r"(i_stride) : "%eax", "memory" );
#endif
...
...
@@ -629,11 +629,11 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
}
static
inline
void
pp_dering_BinIndex
(
u
8
*
p_block
,
int
i_stride
,
int
i_thr
,
u32
*
p_bin
)
static
inline
void
pp_dering_BinIndex
(
u
int8_t
*
p_block
,
int
i_stride
,
int
i_thr
,
uint32_t
*
p_bin
)
{
int
x
,
y
;
u
32
i_bin
;
u
int32_t
i_bin
;
for
(
y
=
0
;
y
<
10
;
y
++
)
{
...
...
@@ -653,15 +653,15 @@ static inline void pp_dering_BinIndex( u8 *p_block, int i_stride, int i_thr,
}
}
static
inline
void
pp_dering_Filter
(
u
8
*
p_block
,
int
i_stride
,
u
32
*
p_bin
,
static
inline
void
pp_dering_Filter
(
u
int8_t
*
p_block
,
int
i_stride
,
u
int32_t
*
p_bin
,
int
i_QP
)
{
int
x
,
y
;
u
32
i_bin
;
u
int32_t
i_bin
;
int
i_flt
[
8
][
8
];
int
i_f
;
u
8
*
p_sav
;
u
int8_t
*
p_sav
;
int
i_QP_2
;
p_sav
=
p_block
;
...
...
@@ -738,7 +738,7 @@ static inline void pp_dering_Filter( u8 *p_block, int i_stride,
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_dering_Y
)(
u
8
*
p_plane
,
void
E_
(
pp_dering_Y
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
)
{
...
...
@@ -746,8 +746,8 @@ void E_( pp_dering_Y )( u8 *p_plane,
int
i_max
[
4
],
i_min
[
4
],
i_range
[
4
];
int
i_thr
[
4
];
int
i_max_range
,
i_kmax
;
u
32
i_bin
[
4
][
10
];
u
8
*
p_block
[
4
];
u
int32_t
i_bin
[
4
][
10
];
u
int8_t
*
p_block
[
4
];
QT_STORE_T
*
p_QP
;
/* We process 4 blocks/loop*/
...
...
@@ -846,16 +846,16 @@ void E_( pp_dering_Y )( u8 *p_plane,
}
void
E_
(
pp_dering_C
)(
u
8
*
p_plane
,
void
E_
(
pp_dering_C
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
)
{
int
x
,
y
;
int
i_max
,
i_min
;
int
i_thr
;
u
32
i_bin
[
10
];
u
int32_t
i_bin
[
10
];
u
8
*
p_block
;
u
int8_t
*
p_block
;
for
(
y
=
8
;
y
<
i_height
-
8
;
y
+=
8
)
...
...
modules/codec/ffmpeg/postprocessing/postprocessing_mmxext.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* postprocessing_mmxext.c: Post Processing plugin MMXEXT
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: postprocessing_mmxext.c,v 1.
4 2002/12/06 16:34:05
sam Exp $
* $Id: postprocessing_mmxext.c,v 1.
5 2002/12/18 14:17:10
sam Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <vlc/vlc.h>
/* only use u
8, u32
.... */
#include <vlc/vlc.h>
/* only use u
int8_t, uint32_t
.... */
#include "postprocessing.h"
#include "postprocessing_common.h"
...
...
@@ -76,30 +76,30 @@ UNUSED_LONGLONG( mmx_m2_5_m5_2 ) = 0xfffe0005fffb0002ULL;
/* find min bytes from r ans set it in r, t is destroyed */
#define MMXEXT_GET_PMIN( r, t ) \
"movq " #r ", " #t " \n\
psrlq $8, " #t " \n
\
pminub " #t ", " #r " \n
\
pshufw $0xf5, " #r ", " #t " #instead of shift with tmp reg \n
\
pminub " #t ", " #r " \n
\
pshufw $0xfe, " #r ", " #t " \n
\
pminub " #t ", " #r " \n"
"movq " #r ", " #t " \n
"
\
"psrlq $8, " #t " \n"
\
"pminub " #t ", " #r " \n"
\
"pshufw $0xf5, " #r ", " #t " #instead of shift with tmp reg \n"
\
"pminub " #t ", " #r " \n"
\
"pshufw $0xfe, " #r ", " #t " \n"
\
"
pminub " #t ", " #r " \n"
/* find mzx bytes from r ans set it in r, t is destroyed */
#define MMXEXT_GET_PMAX( r, t ) \
"movq " #r ", " #t " \n\
psrlq $8, " #t " \n
\
pmaxub " #t ", " #r " \n
\
pshufw $0xf5, " #r ", " #t " \n
\
pmaxub " #t ", " #r " \n
\
pshufw $0xfe, " #r ", " #t " \n
\
pmaxub " #t ", " #r " \n"
"movq " #r ", " #t " \n
"
\
"psrlq $8, " #t " \n"
\
"pmaxub " #t ", " #r " \n"
\
"pshufw $0xf5, " #r ", " #t " \n"
\
"pmaxub " #t ", " #r " \n"
\
"pshufw $0xfe, " #r ", " #t " \n"
\
"
pmaxub " #t ", " #r " \n"
#define MMXEXT_GET_LMINMAX( s, m, M, t ) \
"movq " #s ", " #t " \n\
pminub " #t ", " #m " \n
\
pmaxub " #t ", " #M " \n"
"movq " #s ", " #t " \n
"
\
"pminub " #t ", " #m " \n"
\
"
pmaxub " #t ", " #M " \n"
/* Some tips for MMX
...
...
@@ -120,7 +120,7 @@ UNUSED_LONGLONG( mmx_m2_5_m5_2 ) = 0xfffe0005fffb0002ULL;
* so need to be fast ...
*
****************************************************************************/
static
inline
int
pp_deblock_isDC_mode
(
u
8
*
p_v
)
static
inline
int
pp_deblock_isDC_mode
(
u
int8_t
*
p_v
)
{
unsigned
int
i_eq_cnt
;
...
...
@@ -134,32 +134,32 @@ static inline int pp_deblock_isDC_mode( u8 *p_v )
and if x >= 127 - 2 * M ie x > 127 -2*M - 1 value is good
*/
#if 0
__asm__ __volatile__ (
" \n\
#* Do (v0-v1) to (v7-v8) \n\
movq (%1), %%mm1 # load v0->v7 \n\
movq 1(%1), %%mm2 # load v1->v8 \n\
psubb %%mm2, %%mm1 # v[i]-v[i+1] \n\
paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap \n\
pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1 \n\
pxor %%mm0, %%mm0 # mm0 = 0 \n\
psadbw %%mm1, %%mm0 \n\
movd %%mm0, %0 # \n\
negl %0 \n\
andl $255, %0"
__asm__ __volatile__ (
" #* Do (v0-v1) to (v7-v8) \n"
"movq (%1), %%mm1 # load v0->v7 \n"
"movq 1(%1), %%mm2 # load v1->v8 \n"
"psubb %%mm2, %%mm1 # v[i]-v[i+1] \n"
"paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap \n"
"pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1 \n"
"pxor %%mm0, %%mm0 # mm0 = 0 \n"
"psadbw %%mm1, %%mm0 \n"
"movd %%mm0, %0 # \n"
"negl %0 \n"
"
andl $255, %0"
: "=r"(i_eq_cnt) : "r" (p_v) );
#endif
__asm__
__volatile__
(
"
\n
\
#* Do (v0-v1) to (v7-v8)
\n
\
movq (%1), %%mm1 # load v0->v7
\n
\
pxor %%mm0, %%mm0 # mm0 = 0
\n
\
movq 1(%1), %%mm2 # load v1->v8
\n
\
psubb %%mm2, %%mm1 # v[i]-v[i+1]
\n
\
paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap
\n
\
pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1
\n
\
psadbw %%mm1, %%mm0
\n
\
movd %%mm0, %0 #
\n
\
negl %0"
__asm__
__volatile__
(
" #* Do (v0-v1) to (v7-v8)
\n
"
"movq (%1), %%mm1 # load v0->v7
\n
"
"pxor %%mm0, %%mm0 # mm0 = 0
\n
"
"movq 1(%1), %%mm2 # load v1->v8
\n
"
"psubb %%mm2, %%mm1 # v[i]-v[i+1]
\n
"
"paddb mmx_127_thr1, %%mm1 # + 127-THR1 with wrap
\n
"
"pcmpgtb mmx_127_2xthr1_1, %%mm1 # > 127 -2*thr1 - 1
\n
"
"psadbw %%mm1, %%mm0
\n
"
"movd %%mm0, %0 #
\n
"
"
negl %0"
:
"=r"
(
i_eq_cnt
)
:
"r"
(
p_v
)
);
...
...
@@ -185,7 +185,7 @@ static inline int pp_deblock_isDC_mode( u8 *p_v )
return
(
(
i_eq_cnt
>=
PP_THR2
)
?
1
:
0
);
}
static
inline
int
pp_deblock_isMinMaxOk
(
u
8
*
p_v
,
int
i_QP
)
static
inline
int
pp_deblock_isMinMaxOk
(
u
int8_t
*
p_v
,
int
i_QP
)
{
int
i_range
;
...
...
@@ -194,9 +194,9 @@ static inline int pp_deblock_isMinMaxOk( u8 *p_v, int i_QP )
"movq %%mm0, %%mm1
\n
"
MMXEXT_GET_PMIN
(
%%
mm0
,
%%
mm7
)
MMXEXT_GET_PMAX
(
%%
mm1
,
%%
mm7
)
"psubd %%mm0, %%mm1 # max - min
\n
\
movd %%mm1, %0
\n
\
andl $255, %0"
:
"=r"
(
i_range
)
:
"r"
(
p_v
)
);
"psubd %%mm0, %%mm1 # max - min
\n
"
"movd %%mm1, %0
\n
"
"
andl $255, %0"
:
"=r"
(
i_range
)
:
"r"
(
p_v
)
);
#if 0
int i_max, i_min;
...
...
@@ -215,7 +215,7 @@ static inline int pp_deblock_isMinMaxOk( u8 *p_v, int i_QP )
}
static
inline
void
pp_deblock_DefaultMode
(
u
8
i_v
[
10
],
int
i_stride
,
static
inline
void
pp_deblock_DefaultMode
(
u
int8_t
i_v
[
10
],
int
i_stride
,
int
i_QP
)
{
int
d
,
i_delta
;
...
...
@@ -225,15 +225,15 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
/* d = CLIP( 5(a3x0' - a3x0)//8, 0, (v4-v5)/2 ).d( abs(a3x0) < QP ) */
/* First calculate a3x0 */
__asm__
__volatile__
(
"
\n
\
pxor %%mm7, %%mm7 # mm7 = 0
\n
\
movq mmx_m2_5_m5_2, %%mm6 # mm6 =(2,-5,5,-2)
\n
\
movd 3(%1), %%mm0
\n
\
punpcklbw %%mm7,%%mm0
\n
\
pmaddwd %%mm6, %%mm0
\n
"
__asm__
__volatile__
(
"pxor %%mm7, %%mm7 # mm7 = 0
\n
"
"movq mmx_m2_5_m5_2, %%mm6 # mm6 =(2,-5,5,-2)
\n
"
"movd 3(%1), %%mm0
\n
"
"punpcklbw %%mm7,%%mm0
\n
"
"
pmaddwd %%mm6, %%mm0
\n
"
"pshufw $0xfe, %%mm0, %%mm1
\n
"
"paddd %%mm1, %%mm0
\n
\
movd %%mm0, %0"
:
"=r"
(
a3x0
)
:
"r"
(
i_v
)
);
"paddd %%mm1, %%mm0
\n
"
"
movd %%mm0, %0"
:
"=r"
(
a3x0
)
:
"r"
(
i_v
)
);
#if 0
a3x0 = 2 * ( i_v[3] - i_v[6] ) + 5 *( i_v[5] - i_v[4] );
#endif
...
...
@@ -251,22 +251,22 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
if
(
(
a3x0
<
8
*
i_QP
)
&&
(
a3x0
!=
0
)
)
/* |a3x0| < 8*i_QP */
{
/* calculate a3x1 et a3x2 */
__asm__
__volatile__
(
"
\n
\
# mm7 = 0
\n
\
# mm6 = ( 2, -5, 5, -2 )
\n
\
movd 1(%2), %%mm0
\n
\
movd 5(%2), %%mm2
\n
\
punpcklbw %%mm7,%%mm0
\n
\
punpcklbw %%mm7,%%mm2
\n
\
pmaddwd %%mm6, %%mm0
\n
\
pmaddwd %%mm6, %%mm2
\n
\
pshufw $0xfe, %%mm0, %%mm1
\n
\
paddd %%mm1, %%mm0 # mm0 = a3x1
\n
\
movd %%mm0, %0
\n
\
pshufw $0xfe, %%mm2, %%mm1
\n
\
paddd %%mm1, %%mm2 # mm2 = a3x2
\n
\
movd %%mm2, %1
\n
\
"
:
"=r"
(
a3x1
),
"=r"
(
a3x2
)
:
"r"
(
i_v
)
);
__asm__
__volatile__
(
" # mm7 = 0
\n
"
" # mm6 = ( 2, -5, 5, -2 )
\n
"
"movd 1(%2), %%mm0
\n
"
"movd 5(%2), %%mm2
\n
"
"punpcklbw %%mm7,%%mm0
\n
"
"punpcklbw %%mm7,%%mm2
\n
"
"pmaddwd %%mm6, %%mm0
\n
"
"pmaddwd %%mm6, %%mm2
\n
"
"pshufw $0xfe, %%mm0, %%mm1
\n
"
"paddd %%mm1, %%mm0 # mm0 = a3x1
\n
"
"movd %%mm0, %0
\n
"
"pshufw $0xfe, %%mm2, %%mm1
\n
"
"paddd %%mm1, %%mm2 # mm2 = a3x2
\n
"
"movd %%mm2, %1
\n
"
:
"=r"
(
a3x1
),
"=r"
(
a3x2
)
:
"r"
(
i_v
)
);
#if 0
a3x1 = 2 * ( i_v[1] - i_v[4] ) + 5 * ( i_v[3] - i_v[2] );
a3x2 = 2 * ( i_v[5] - i_v[8] ) + 5 * ( i_v[7] - i_v[6] );
...
...
@@ -305,7 +305,7 @@ static inline void pp_deblock_DefaultMode( u8 i_v[10], int i_stride,
static
inline
void
pp_deblock_DCMode
(
u
8
*
p_v
,
/* = int i_v[10] */
static
inline
void
pp_deblock_DCMode
(
u
int8_t
*
p_v
,
/* = int i_v[10] */
int
i_QP
)
{
int
i_p0
,
i_p9
;
...
...
@@ -340,92 +340,92 @@ static inline void pp_deblock_DCMode( u8 *p_v, /* = int i_v[10] */
mm6 = p9 << 48
mm7 = 0 */
__asm__
__volatile__
(
"pxor %%mm7, %%mm7
\n
\
movq 1(%0), %%mm0 # get 8 pix
\n
\
# unpack into mm1
\n
\
movq %%mm0, %%mm1
\n
\
punpcklbw %%mm7, %%mm1
\n
\
# get p_0 and i_p9
\n
\
movd %1, %%mm5
\n
\
movd %2, %%mm6
\n
\
psllq $48, %%mm6
\n
\n
\
movq %%mm1, %%mm3 # p_v[5-8] = v[1-4] !!
\n
\
movq %%mm1, %%mm2
\n
\
psllw $2, %%mm2 # p_v[1-4] = 4*v[1-4]
\n
\
\n
\
psllq $16, %%mm1
\n
\
por %%mm5, %%mm1 # mm1 =( p0, v1, v2 ,v3)
\n
\
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, v1, v2)
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, p0, v2)
\n
\
paddw %%mm1, %%mm2
\n
\
\n
\
pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, p0, p0)
\n
\
paddw %%mm1, %%mm2
\n
\
# Now last part a little borring
\n
\
# last part for mm2, beginig for mm3
movq %%mm0, %%mm1
\n
\
psrlq $8, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v2, v3, v4, v5 )
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $16, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v3, v4, v5, v6 )
\n
\
psllw $1, %%mm1
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $24, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v4, v5, v6, v7)
\n
\
paddw %%mm1, %%mm2
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
movq %%mm0, %%mm1
\n
\
psrlq $32, %%mm1
\n
\
punpcklbw %%mm7, %%mm1 # mm1 =( v5, v6, v7, v8)
\n
\
paddw %%mm1, %%mm2
\n
\
psllw $2, %%mm1
paddw %%mm1, %%mm3
\n
\
# Now last part for last 4 pix
\n
\
#
\n
\
movq %%mm0, %%mm1
\n
\
punpckhbw %%mm7, %%mm1 # mm1 = ( v5, v6, v7, v8)
\n
\
\n
\
psrlq $16, %%mm1
\n
\
por %%mm6, %%mm1 # mm1 =( v6, v7, v8, p9 )
\n
\
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
pshufw $0xf9,%%mm1,%%mm1 # mm1 =( v7, v8, p9, p9)
\n
\
paddw %%mm1, %%mm3
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
pshufw $0xf9,%%mm1,%%mm1 # mm1 =( v8, p9, p9, p9)
\n
\
paddw %%mm1, %%mm3
\n
\
\n
\
pshufw $0xf9,%%mm1,%%mm1 # mm1 =( p9, p9, p9, p9)
\n
\
paddw %%mm1, %%mm3
\n
\
psrlw $4, %%mm2
\n
\
psrlw $4, %%mm3
\n
\
packuswb %%mm3, %%mm2
\n
\
movq %%mm2, 1(%0)
\n
\
"
:
:
"r"
(
p_v
),
"r"
(
i_p0
),
"r"
(
i_p9
)
:
"memory"
);
"pxor %%mm7, %%mm7
\n
"
"movq 1(%0), %%mm0 # get 8 pix
\n
"
" # unpack into mm1
\n
"
"movq %%mm0, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1
\n
"
" # get p_0 and i_p9
\n
"
"movd %1, %%mm5
\n
"
"movd %2, %%mm6
\n
"
"psllq $48, %%mm6
\n
"
"
\n
"
"movq %%mm1, %%mm3 # p_v[5-8] = v[1-4] !!
\n
"
"movq %%mm1, %%mm2
\n
"
"psllw $2, %%mm2 # p_v[1-4] = 4*v[1-4]
\n
"
"
\n
"
"psllq $16, %%mm1
\n
"
"por %%mm5, %%mm1 # mm1 =( p0, v1, v2 ,v3)
\n
"
"
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, v1, v2)
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, p0, v2)
\n
"
"paddw %%mm1, %%mm2
\n
"
"
\n
"
"pshufw $0x90,%%mm1,%%mm1 # mm1 =( p0, p0, p0, p0)
\n
"
"paddw %%mm1, %%mm2
\n
"
" # Now last part a little borring
\n
"
" # last part for mm2, beginig for mm3
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $8, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v2, v3, v4, v5 )
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $16, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v3, v4, v5, v6 )
\n
"
"psllw $1, %%mm1
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $24, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v4, v5, v6, v7)
\n
"
"paddw %%mm1, %%mm2
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"movq %%mm0, %%mm1
\n
"
"psrlq $32, %%mm1
\n
"
"punpcklbw %%mm7, %%mm1 # mm1 =( v5, v6, v7, v8)
\n
"
"paddw %%mm1, %%mm2
\n
"
"psllw $2, %%mm1
\n
"
"paddw %%mm1, %%mm3
\n
"
" # Now last part for last 4 pix
\n
"
" #
\n
"
"movq %%mm0, %%mm1
\n
"
"punpckhbw %%mm7, %%mm1 # mm1 = ( v5, v6, v7, v8)
\n
"
"
\n
"
"psrlq $16, %%mm1
\n
"
"por %%mm6, %%mm1 # mm1 =( v6, v7, v8, p9 )
\n
"
"
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"pshufw $0xf9,%%mm1,%%mm1 # mm1 =( v7, v8, p9, p9)
\n
"
"paddw %%mm1, %%mm3
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"pshufw $0xf9,%%mm1,%%mm1 # mm1 =( v8, p9, p9, p9)
\n
"
"paddw %%mm1, %%mm3
\n
"
"
\n
"
"pshufw $0xf9,%%mm1,%%mm1 # mm1 =( p9, p9, p9, p9)
\n
"
"paddw %%mm1, %%mm3
\n
"
"psrlw $4, %%mm2
\n
"
"psrlw $4, %%mm3
\n
"
"packuswb %%mm3, %%mm2
\n
"
"movq %%mm2, 1(%0)
\n
"
:
:
"r"
(
p_v
),
"r"
(
i_p0
),
"r"
(
i_p9
)
:
"memory"
);
#if 0
for( i = 1; i < 9; i++ )
...
...
@@ -470,17 +470,17 @@ static inline void pp_deblock_DCMode( u8 *p_v, /* = int i_v[10] */
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_deblock_V
)(
u
8
*
p_plane
,
void
E_
(
pp_deblock_V
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
,
int
b_chroma
)
{
int
x
,
y
,
i
;
u
8
*
p_v
;
u
int8_t
*
p_v
;
int
i_QP_scale
;
/* use to do ( ? >> i_QP_scale ) */
int
i_QP
;
u
8
i_v
[
10
];
u
int8_t
i_v
[
10
];
i_QP_scale
=
b_chroma
?
5
:
4
;
...
...
@@ -529,13 +529,13 @@ void E_( pp_deblock_V )( u8 *p_plane,
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_deblock_H
)(
u
8
*
p_plane
,
void
E_
(
pp_deblock_H
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
,
int
b_chroma
)
{
int
x
,
y
;
u
8
*
p_v
;
u
int8_t
*
p_v
;
int
i_QP_scale
;
int
i_QP
;
...
...
@@ -574,7 +574,7 @@ void E_( pp_deblock_H )( u8 *p_plane,
*
*****************************************************************************/
static
inline
void
pp_dering_MinMax
(
u
8
*
p_block
,
int
i_stride
,
static
inline
void
pp_dering_MinMax
(
u
int8_t
*
p_block
,
int
i_stride
,
int
*
pi_min
,
int
*
pi_max
)
{
...
...
@@ -582,9 +582,9 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
and next extract global min/max */
__asm__
__volatile__
(
"leal (%2,%3), %%eax
\n
\
movq (%2), %%mm0 #load line
\n
\
movq %%mm0, %%mm1
\n
"
"leal (%2,%3), %%eax
\n
"
"movq (%2), %%mm0 #load line
\n
"
"movq %%mm0, %%mm1
\n
"
MMXEXT_GET_LMINMAX
(
(
%%
eax
),
%%
mm0
,
%%
mm1
,
%%
mm7
)
MMXEXT_GET_LMINMAX
(
(
%%
eax
,
%
3
),
%%
mm0
,
%%
mm1
,
%%
mm7
)
...
...
@@ -597,12 +597,12 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
MMXEXT_GET_LMINMAX
(
(
%%
eax
,
%
3
,
2
),
%%
mm0
,
%%
mm1
,
%%
mm7
)
MMXEXT_GET_PMIN
(
%%
mm0
,
%%
mm7
)
MMXEXT_GET_PMAX
(
%%
mm1
,
%%
mm7
)
"movd %%mm0, %%eax
\n
\
andl $255, %%eax
\n
\
movl %%eax, (%0)
\n
\
movd %%mm1, %%eax
\n
\
andl $255, %%eax
\n
\
movl %%eax, (%1)
\n
"
"movd %%mm0, %%eax
\n
"
"andl $255, %%eax
\n
"
"movl %%eax, (%0)
\n
"
"movd %%mm1, %%eax
\n
"
"andl $255, %%eax
\n
"
"
movl %%eax, (%1)
\n
"
:
:
"r"
(
pi_min
),
"r"
(
pi_max
),
"r"
(
p_block
),
"r"
(
i_stride
)
:
"%eax"
,
"memory"
);
#if 0
...
...
@@ -625,11 +625,11 @@ static inline void pp_dering_MinMax( u8 *p_block, int i_stride,
}
static
inline
void
pp_dering_BinIndex
(
u
8
*
p_block
,
int
i_stride
,
int
i_thr
,
u32
*
p_bin
)
static
inline
void
pp_dering_BinIndex
(
u
int8_t
*
p_block
,
int
i_stride
,
int
i_thr
,
uint32_t
*
p_bin
)
{
int
y
;
u
32
i_bin
;
u
int32_t
i_bin
;
/* first create mm7 with all bytes set to thr and mm6 = 0 */
__asm__
__volatile__
(
...
...
@@ -681,15 +681,15 @@ static inline void pp_dering_BinIndex( u8 *p_block, int i_stride, int i_thr,
}
static
inline
void
pp_dering_Filter
(
u
8
*
p_block
,
int
i_stride
,
u
32
*
p_bin
,
static
inline
void
pp_dering_Filter
(
u
int8_t
*
p_block
,
int
i_stride
,
u
int32_t
*
p_bin
,
int
i_QP
)
{
int
x
,
y
;
u
32
i_bin
;
u
8
i_flt
[
8
][
8
];
u
int32_t
i_bin
;
u
int8_t
i_flt
[
8
][
8
];
int
i_f
;
u
8
*
p_sav
;
u
int8_t
*
p_sav
;
int
i_QP_2
;
p_sav
=
p_block
;
...
...
@@ -769,7 +769,7 @@ static inline void pp_dering_Filter( u8 *p_block, int i_stride,
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
void
E_
(
pp_dering_Y
)(
u
8
*
p_plane
,
void
E_
(
pp_dering_Y
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
)
{
...
...
@@ -777,8 +777,8 @@ void E_( pp_dering_Y )( u8 *p_plane,
int
i_max
[
4
],
i_min
[
4
],
i_range
[
4
];
int
i_thr
[
4
];
int
i_max_range
,
i_kmax
;
u
32
i_bin
[
4
][
10
];
u
8
*
p_block
[
4
];
u
int32_t
i_bin
[
4
][
10
];
u
int8_t
*
p_block
[
4
];
QT_STORE_T
*
p_QP
;
/* We process 4 blocks/loop*/
...
...
@@ -874,20 +874,18 @@ void E_( pp_dering_Y )( u8 *p_plane,
p_block
[
3
]
+=
8
;
}
}
}
void
E_
(
pp_dering_C
)(
u
8
*
p_plane
,
void
E_
(
pp_dering_C
)(
u
int8_t
*
p_plane
,
int
i_width
,
int
i_height
,
int
i_stride
,
QT_STORE_T
*
p_QP_store
,
int
i_QP_stride
)
{
int
x
,
y
;
int
i_max
,
i_min
;
int
i_thr
;
u32
i_bin
[
10
];
u8
*
p_block
;
uint32_t
i_bin
[
10
];
uint8_t
*
p_block
;
for
(
y
=
8
;
y
<
i_height
-
8
;
y
+=
8
)
{
...
...
@@ -916,5 +914,4 @@ void E_( pp_dering_C )( u8 *p_plane,
p_block
+=
8
;
}
}
}
modules/codec/mpeg_video/parser.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: parser.c,v 1.
8 2002/11/28 17:35:0
0 sam Exp $
* $Id: parser.c,v 1.
9 2002/12/18 14:17:1
0 sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -317,22 +317,22 @@ static void EndThread( vpar_thread_t *p_vpar )
vout_Request
(
p_vpar
->
p_fifo
,
p_vpar
->
p_vout
,
0
,
0
,
0
,
0
);
msg_Dbg
(
p_vpar
->
p_fifo
,
"%
d loops among %
d sequence(s)"
,
msg_Dbg
(
p_vpar
->
p_fifo
,
"%
ld loops among %l
d sequence(s)"
,
p_vpar
->
c_loops
,
p_vpar
->
c_sequences
);
#ifdef HAVE_SYS_TIMES_H
msg_Dbg
(
p_vpar
->
p_fifo
,
"cpu usage (user: %
d, system: %
d)"
,
msg_Dbg
(
p_vpar
->
p_fifo
,
"cpu usage (user: %
ld, system: %l
d)"
,
cpu_usage
.
tms_utime
,
cpu_usage
.
tms_stime
);
#endif
msg_Dbg
(
p_vpar
->
p_fifo
,
"read %
d frames/fields (I %d/P %d/B %
d)"
,
msg_Dbg
(
p_vpar
->
p_fifo
,
"read %
ld frames/fields (I %ld/P %ld/B %l
d)"
,
p_vpar
->
pc_pictures
[
I_CODING_TYPE
]
+
p_vpar
->
pc_pictures
[
P_CODING_TYPE
]
+
p_vpar
->
pc_pictures
[
B_CODING_TYPE
],
p_vpar
->
pc_pictures
[
I_CODING_TYPE
],
p_vpar
->
pc_pictures
[
P_CODING_TYPE
],
p_vpar
->
pc_pictures
[
B_CODING_TYPE
]
);
msg_Dbg
(
p_vpar
->
p_fifo
,
"decoded %
d frames/fields (I %d/P %d/B %
d)"
,
msg_Dbg
(
p_vpar
->
p_fifo
,
"decoded %
ld frames/fields (I %ld/P %ld/B %l
d)"
,
p_vpar
->
pc_decoded_pictures
[
I_CODING_TYPE
]
+
p_vpar
->
pc_decoded_pictures
[
P_CODING_TYPE
]
+
p_vpar
->
pc_decoded_pictures
[
B_CODING_TYPE
],
...
...
@@ -340,7 +340,7 @@ static void EndThread( vpar_thread_t *p_vpar )
p_vpar
->
pc_decoded_pictures
[
P_CODING_TYPE
],
p_vpar
->
pc_decoded_pictures
[
B_CODING_TYPE
]
);
msg_Dbg
(
p_vpar
->
p_fifo
,
"read %
d malformed frames/fields (I %d/P %d/B %
d)"
,
"read %
ld malformed frames/fields (I %ld/P %ld/B %l
d)"
,
p_vpar
->
pc_malformed_pictures
[
I_CODING_TYPE
]
+
p_vpar
->
pc_malformed_pictures
[
P_CODING_TYPE
]
+
p_vpar
->
pc_malformed_pictures
[
B_CODING_TYPE
],
...
...
modules/demux/asf/libasf.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* libasf.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libasf.c,v 1.
8 2002/12/06 16:34:06
sam Exp $
* $Id: libasf.c,v 1.
9 2002/12/18 14:17:10
sam Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -353,10 +353,11 @@ int ASF_ReadObject_Index( input_thread_t *p_input,
msg_Dbg
(
p_input
,
"Read
\"
Index Object
\"
file_id:"
GUID_FMT
" index_entry_time_interval:"
I64Fd
" max_packet_count:%d "
"index_entry_count:%d"
,
"index_entry_count:%
l
d"
,
GUID_PRINT
(
p_index
->
i_file_id
),
p_index
->
i_index_entry_time_interval
,
p_index
->
i_max_packet_count
,
p_index
->
i_index_entry_count
);
(
long
int
)
p_index
->
i_index_entry_count
);
#endif
return
(
1
);
}
...
...
modules/demux/demuxdump.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* demuxdump.c : Pseudo demux module for vlc (dump raw stream)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: demuxdump.c,v 1.
1 2002/11/13 20:23:21 fenrir
Exp $
* $Id: demuxdump.c,v 1.
2 2002/12/18 14:17:10 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -157,7 +157,7 @@ static void Desactivate ( vlc_object_t *p_this )
demux_sys_t
*
p_demux
=
(
demux_sys_t
*
)
p_input
->
p_demux_data
;
msg_Info
(
p_input
,
"closing %s (
%d
Kbytes dumped)"
,
"closing %s (
"
I64Fd
"
Kbytes dumped)"
,
p_demux
->
psz_name
,
p_demux
->
i_write
/
1024
);
...
...
modules/demux/mp4/libmp4.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* libmp4.c : LibMP4 library for mp4 module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libmp4.c,v 1.1
0 2002/12/06 16:34:06
sam Exp $
* $Id: libmp4.c,v 1.1
1 2002/12/18 14:17:10
sam Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -1557,7 +1557,7 @@ int MP4_ReadBox_stdp( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
#ifdef MP4_VERBOSE
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
stdp
\"
entry-count
%d"
,
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
stdp
\"
entry-count
"
I64Fd
,
i_read
/
2
);
#endif
...
...
@@ -1602,7 +1602,7 @@ int MP4_ReadBox_padb( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
#ifdef MP4_VERBOSE
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
stdp
\"
entry-count
%d"
,
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
stdp
\"
entry-count
"
I64Fd
,
i_read
/
2
);
#endif
...
...
@@ -1661,7 +1661,7 @@ int MP4_ReadBox_elst( MP4_Stream_t *p_stream, MP4_Box_t *p_box )
#ifdef MP4_VERBOSE
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
elst
\"
entry-count
%d"
,
msg_Dbg
(
p_stream
->
p_input
,
"Read Box:
\"
elst
\"
entry-count
"
I64Fd
,
i_read
/
2
);
#endif
...
...
modules/demux/ogg.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* ogg.c : ogg stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ogg.c,v 1.1
4 2002/12/16 18:30:12 gbazin
Exp $
* $Id: ogg.c,v 1.1
5 2002/12/18 14:17:10 sam
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -457,7 +457,7 @@ static void Ogg_DecodePacket( input_thread_t *p_input,
if
(
p_stream
->
i_fourcc
==
VLC_FOURCC
(
't'
,
'a'
,
'r'
,
'k'
)
)
{
/* FIXME: the biggest hack I've ever done */
msg_Warn
(
p_input
,
"tark pts:
%lli, granule: %i"
,
msg_Warn
(
p_input
,
"tark pts:
"
I64Fd
", granule: "
I64Fd
,
p_pes
->
i_pts
,
p_pes
->
i_dts
);
msleep
(
10000
);
}
...
...
modules/demux/wav/wav.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* wav.c : wav file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: wav.c,v 1.
7 2002/12/10 23:34:19 gbazin
Exp $
* $Id: wav.c,v 1.
8 2002/12/18 14:17:10 sam
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -210,7 +210,7 @@ static int FindTag( input_thread_t *p_input, u32 i_tag )
i_id
=
GetDWLE
(
p_peek
);
i_size
=
GetDWLE
(
p_peek
+
4
);
msg_Dbg
(
p_input
,
"FindTag: tag:%4.4s size:%d"
,
&
i_id
,
i_size
);
msg_Dbg
(
p_input
,
"FindTag: tag:%4.4s size:%d"
,
(
char
*
)
&
i_id
,
i_size
);
if
(
i_id
==
i_tag
)
{
/* Yes, we have found the good tag */
...
...
modules/gui/gtk/display.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* display.c: Gtk+ tools for main interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: display.c,v 1.
5 2002/12/13 01:56:29 gbazin
Exp $
* $Id: display.c,v 1.
6 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
...
...
@@ -288,7 +288,7 @@ void GtkHideToolbarText( vlc_object_t *p_this )
for
(
i_index
=
0
;
i_index
<
list
.
i_count
;
i_index
++
)
{
p_intf
=
(
module
_t
*
)
list
.
p_values
[
i_index
].
p_object
;
p_intf
=
(
intf_thread
_t
*
)
list
.
p_values
[
i_index
].
p_object
;
if
(
strcmp
(
MODULE_STRING
,
p_intf
->
p_module
->
psz_object_name
)
)
{
...
...
modules/mux/mpeg/ps.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* ps.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ps.c,v 1.
2 2002/12/15 23:39:41 fenrir
Exp $
* $Id: ps.c,v 1.
3 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -160,7 +160,7 @@ static int AddStream( sout_instance_t *p_sout, sout_input_t *p_input )
sout_mux_t
*
p_mux
=
(
sout_mux_t
*
)
p_sout
->
p_mux_data
;
ps_stream_t
*
p_stream
;
msg_Dbg
(
p_sout
,
"adding input"
,
p_sout
);
msg_Dbg
(
p_sout
,
"adding input"
);
p_input
->
p_mux_data
=
(
void
*
)
p_stream
=
malloc
(
sizeof
(
ps_stream_t
)
);
p_stream
->
i_ok
=
0
;
switch
(
p_input
->
input_format
.
i_cat
)
...
...
@@ -188,7 +188,7 @@ static int AddStream( sout_instance_t *p_sout, sout_input_t *p_input )
}
p_stream
->
i_ok
=
1
;
msg_Dbg
(
p_sout
,
"adding input stream_id:0x%x [OK]"
,
p_stream
->
i_stream_id
,
p_sout
);
msg_Dbg
(
p_sout
,
"adding input stream_id:0x%x [OK]"
,
p_stream
->
i_stream_id
);
return
(
0
);
}
...
...
src/audio_output/mixer.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* mixer.c : audio output mixing operations
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: mixer.c,v 1.2
1 2002/12/06 10:10:39
sam Exp $
* $Id: mixer.c,v 1.2
2 2002/12/18 14:17:11
sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -229,7 +229,7 @@ static int MixBuffer( aout_instance_t * p_aout )
+
mixer_nb_bytes
))
)
{
msg_Warn
(
p_aout
,
"mixer start isn't output start (
%d)"
,
"mixer start isn't output start (
"
I64Fd
,
i_nb_bytes
-
mixer_nb_bytes
);
/* Round to the nearest multiple */
...
...
src/input/input.c
View file @
f22f4ef5
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: input.c,v 1.2
19 2002/12/12 15:23:43 gbazin
Exp $
* $Id: input.c,v 1.2
20 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -541,10 +541,10 @@ static void EndThread( input_thread_t * p_input )
struct
tms
cpu_usage
;
times
(
&
cpu_usage
);
msg_Dbg
(
p_input
,
"%
d loops consuming user: %d, system: %
d"
,
msg_Dbg
(
p_input
,
"%
ld loops consuming user: %ld, system: %l
d"
,
p_input
->
c_loops
,
cpu_usage
.
tms_utime
,
cpu_usage
.
tms_stime
);
#else
msg_Dbg
(
p_input
,
"%d loops"
,
p_input
->
c_loops
);
msg_Dbg
(
p_input
,
"%
l
d loops"
,
p_input
->
c_loops
);
#endif
/* Free info structures */
...
...
src/input/input_ext-intf.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* input_ext-intf.c: services to the interface
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: input_ext-intf.c,v 1.4
4 2002/12/06 16:34:08
sam Exp $
* $Id: input_ext-intf.c,v 1.4
5 2002/12/18 14:17:11
sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -277,7 +277,7 @@ void input_DumpStream( input_thread_t * p_input )
unsigned
int
i
,
j
;
#define S p_input->stream
msg_Dbg
(
p_input
,
"dumping stream ID 0x%x [OK:%
d/D:%
d]"
,
S
.
i_stream_id
,
msg_Dbg
(
p_input
,
"dumping stream ID 0x%x [OK:%
ld/D:%l
d]"
,
S
.
i_stream_id
,
S
.
c_packets_read
,
S
.
c_packets_trashed
);
if
(
S
.
b_seekable
)
msg_Dbg
(
p_input
,
"seekable stream, position: "
I64Fd
"/"
I64Fd
" (%s/%s)"
,
...
...
@@ -299,8 +299,8 @@ void input_DumpStream( input_thread_t * p_input )
for
(
j
=
0
;
j
<
p_input
->
stream
.
pp_programs
[
i
]
->
i_es_number
;
j
++
)
{
#define ES p_input->stream.pp_programs[i]->pp_es[j]
msg_Dbg
(
p_input
,
"
ES 0x%x, stream 0x%x, fourcc `%4.4s', %s [OK:%d/ERR:%
d]"
,
msg_Dbg
(
p_input
,
"ES 0x%x, "
"
stream 0x%x, fourcc `%4.4s', %s [OK:%ld/ERR:%l
d]"
,
ES
->
i_id
,
ES
->
i_stream_id
,
(
char
*
)
&
ES
->
i_fourcc
,
ES
->
p_decoder_fifo
!=
NULL
?
"selected"
:
"not selected"
,
ES
->
c_packets
,
ES
->
c_invalid_packets
);
...
...
src/misc/threads.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.
29 2002/12/14 19:19:08 gbazin
Exp $
* $Id: threads.c,v 1.
30 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -651,7 +651,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
p_this
->
b_thread
=
1
;
msg_Dbg
(
p_this
,
"thread %d (%s) created at priority %d (%s:%d)"
,
p_this
->
thread_id
,
psz_name
,
i_priority
,
(
int
)
p_this
->
thread_id
,
psz_name
,
i_priority
,
psz_file
,
i_line
);
vlc_mutex_unlock
(
&
p_this
->
object_lock
);
...
...
@@ -752,16 +752,17 @@ void __vlc_thread_join( vlc_object_t *p_this, char * psz_file, int i_line )
{
#ifdef HAVE_STRERROR
msg_Err
(
p_this
,
"thread_join(%d) failed at %s:%d (%s)"
,
p_this
->
thread_id
,
psz_file
,
i_line
,
strerror
(
i_ret
)
);
(
int
)
p_this
->
thread_id
,
psz_file
,
i_line
,
strerror
(
i_ret
)
);
#else
msg_Err
(
p_this
,
"thread_join(%d) failed at %s:%d"
,
p_this
->
thread_id
,
psz_file
,
i_line
);
(
int
)
p_this
->
thread_id
,
psz_file
,
i_line
);
#endif
}
else
{
msg_Dbg
(
p_this
,
"thread %d joined (%s:%d)"
,
p_this
->
thread_id
,
psz_file
,
i_line
);
(
int
)
p_this
->
thread_id
,
psz_file
,
i_line
);
}
p_this
->
b_thread
=
0
;
...
...
src/misc/variables.c
View file @
f22f4ef5
...
...
@@ -2,7 +2,7 @@
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: variables.c,v 1.1
8 2002/12/14 19:34:06 gbazin
Exp $
* $Id: variables.c,v 1.1
9 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -497,7 +497,7 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
i_var
=
Lookup
(
p_this
->
p_vars
,
p_this
->
i_vars
,
psz_name
);
if
(
i_var
<
0
)
{
msg_Err
(
p_this
,
"variable %s has disappeared"
);
msg_Err
(
p_this
,
"variable %s has disappeared"
,
psz_name
);
vlc_mutex_unlock
(
&
p_this
->
var_lock
);
return
VLC_ENOVAR
;
}
...
...
src/video_output/video_output.c
View file @
f22f4ef5
...
...
@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread.
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: video_output.c,v 1.20
4 2002/12/18 08:08:29 gbazin
Exp $
* $Id: video_output.c,v 1.20
5 2002/12/18 14:17:11 sam
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
...
...
@@ -477,7 +477,8 @@ static int InitThread( vout_thread_t *p_vout )
if
(
p_vout
->
chroma
.
p_module
==
NULL
)
{
msg_Err
(
p_vout
,
"no chroma module for %4.4s to %4.4s"
,
&
p_vout
->
render
.
i_chroma
,
&
p_vout
->
output
.
i_chroma
);
(
char
*
)
&
p_vout
->
render
.
i_chroma
,
(
char
*
)
&
p_vout
->
output
.
i_chroma
);
p_vout
->
pf_end
(
p_vout
);
vlc_mutex_unlock
(
&
p_vout
->
change_lock
);
return
VLC_EGENERIC
;
...
...
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