Mercurial > mplayer.hg
comparison mpcommon.c @ 28325:21504ba0f5d3
Factorize print_version().
Print CPU information in verbose mode instead of by default.
author | diego |
---|---|
date | Sun, 25 Jan 2009 20:35:58 +0000 |
parents | e54c9b7eb0d8 |
children | 51797a3b96d2 |
comparison
equal
deleted
inserted
replaced
28324:36321e2ba25a | 28325:21504ba0f5d3 |
---|---|
3 #include "libmpdemux/demuxer.h" | 3 #include "libmpdemux/demuxer.h" |
4 #include "libmpdemux/stheader.h" | 4 #include "libmpdemux/stheader.h" |
5 #include "mplayer.h" | 5 #include "mplayer.h" |
6 #include "libvo/sub.h" | 6 #include "libvo/sub.h" |
7 #include "libvo/video_out.h" | 7 #include "libvo/video_out.h" |
8 #include "cpudetect.h" | |
9 #include "help_mp.h" | |
10 #include "mp_msg.h" | |
8 #include "spudec.h" | 11 #include "spudec.h" |
12 #include "version.h" | |
9 #include "vobsub.h" | 13 #include "vobsub.h" |
10 #ifdef CONFIG_TV_TELETEXT | 14 #ifdef CONFIG_TV_TELETEXT |
11 #include "stream/tv.h" | 15 #include "stream/tv.h" |
12 #endif | 16 #endif |
13 #include "libavutil/intreadwrite.h" | 17 #include "libavutil/intreadwrite.h" |
21 ass_track_t* ass_track = 0; // current track to render | 25 ass_track_t* ass_track = 0; // current track to render |
22 #endif | 26 #endif |
23 | 27 |
24 sub_data* subdata = NULL; | 28 sub_data* subdata = NULL; |
25 subtitle* vo_sub_last = NULL; | 29 subtitle* vo_sub_last = NULL; |
30 | |
31 | |
32 void print_version(const char* name) | |
33 { | |
34 mp_msg(MSGT_CPLAYER, MSGL_INFO, MP_TITLE, name); | |
35 | |
36 /* Test for CPU capabilities (and corresponding OS support) for optimizing */ | |
37 GetCpuCaps(&gCpuCaps); | |
38 #if ARCH_X86 | |
39 mp_msg(MSGT_CPLAYER, MSGL_V, | |
40 "CPUflags: MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n", | |
41 gCpuCaps.hasMMX, gCpuCaps.hasMMX2, | |
42 gCpuCaps.has3DNow, gCpuCaps.has3DNowExt, | |
43 gCpuCaps.hasSSE, gCpuCaps.hasSSE2); | |
44 #ifdef RUNTIME_CPUDETECT | |
45 mp_msg(MSGT_CPLAYER,MSGL_V, MSGTR_CompiledWithRuntimeDetection); | |
46 #else | |
47 mp_msg(MSGT_CPLAYER,MSGL_V, MSGTR_CompiledWithCPUExtensions); | |
48 #if HAVE_MMX | |
49 mp_msg(MSGT_CPLAYER,MSGL_V," MMX"); | |
50 #endif | |
51 #if HAVE_MMX2 | |
52 mp_msg(MSGT_CPLAYER,MSGL_V," MMX2"); | |
53 #endif | |
54 #if HAVE_3DNOW | |
55 mp_msg(MSGT_CPLAYER,MSGL_V," 3DNow"); | |
56 #endif | |
57 #if HAVE_3DNOWEX | |
58 mp_msg(MSGT_CPLAYER,MSGL_V," 3DNowEx"); | |
59 #endif | |
60 #if HAVE_SSE | |
61 mp_msg(MSGT_CPLAYER,MSGL_V," SSE"); | |
62 #endif | |
63 #if HAVE_SSE2 | |
64 mp_msg(MSGT_CPLAYER,MSGL_V," SSE2"); | |
65 #endif | |
66 mp_msg(MSGT_CPLAYER,MSGL_V,"\n"); | |
67 #endif /* RUNTIME_CPUDETECT */ | |
68 #endif /* ARCH_X86 */ | |
69 } | |
70 | |
26 | 71 |
27 void update_subtitles(sh_video_t *sh_video, demux_stream_t *d_dvdsub, int reset) | 72 void update_subtitles(sh_video_t *sh_video, demux_stream_t *d_dvdsub, int reset) |
28 { | 73 { |
29 unsigned char *packet=NULL; | 74 unsigned char *packet=NULL; |
30 int len; | 75 int len; |