Changeset 85faf5c580984877c07392b099d1cd4181c11512
- Timestamp:
- 05/19/07 23:44:01
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1179611041 +0000
- git-parent:
[7b0773e690a9c1388f4cfbe7c8fa3fa43a76e54c]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1179611041 +0000
- Message:
Same as previous commit
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r75a6568 |
r85faf5c |
|
| 147 | 147 | p_vout->p_sys->b_embedded = VLC_FALSE; |
|---|
| 148 | 148 | |
|---|
| 149 | | p_vout->p_sys->b_cpu_has_simd = (p_vout->p_libvlc_global->i_cpu & CPU_CAPABILITY_ALTIVEC) |
|---|
| 150 | | | (p_vout->p_libvlc_global->i_cpu & CPU_CAPABILITY_MMXEXT); |
|---|
| | 149 | p_vout->p_sys->b_cpu_has_simd = |
|---|
| | 150 | vlc_CPU() & (CPU_CAPABILITY_ALTIVEC|CPU_CAPABILITY_MMXEXT); |
|---|
| 151 | 151 | msg_Dbg( p_vout, "we do%s have SIMD enabled CPU", p_vout->p_sys->b_cpu_has_simd ? "" : "n't" ); |
|---|
| 152 | 152 | |
|---|
| rd3fe7f2 |
r85faf5c |
|
| 327 | 327 | * access keyboard events, a 100ms delay is a good compromise */ |
|---|
| 328 | 328 | gdk_threads_leave(); |
|---|
| 329 | | if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) |
|---|
| | 329 | if (vlc_CPU() & CPU_CAPABILITY_FPU) |
|---|
| 330 | 330 | msleep( INTF_IDLE_SLEEP ); |
|---|
| 331 | 331 | else |
|---|
| … | … | |
| 337 | 337 | /* Sleep to avoid using all CPU - since some interfaces needs to access |
|---|
| 338 | 338 | * keyboard events, a 1000ms delay is a good compromise */ |
|---|
| 339 | | if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) |
|---|
| | 339 | if (vlc_CPU() & CPU_CAPABILITY_FPU) |
|---|
| 340 | 340 | i_dummy = gtk_timeout_add( INTF_IDLE_SLEEP / 1000, (GtkFunction)Manage, p_intf ); |
|---|
| 341 | 341 | else |
|---|
| … | … | |
| 448 | 448 | i_length = var_GetTime( p_intf->p_sys->p_input, "length" ); |
|---|
| 449 | 449 | |
|---|
| 450 | | if (p_intf->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) |
|---|
| | 450 | if (vlc_CPU() & CPU_CAPABILITY_FPU) |
|---|
| 451 | 451 | { |
|---|
| 452 | 452 | /* Manage the slider for CPU_CAPABILITY_FPU hardware */ |
|---|
| r49cafbc |
r85faf5c |
|
| 176 | 176 | /* Non-S/PDIF mixer only deals with float32 or fixed32. */ |
|---|
| 177 | 177 | p_aout->mixer.mixer.i_format |
|---|
| 178 | | = (p_aout->p_libvlc_global->i_cpu & CPU_CAPABILITY_FPU) ? |
|---|
| | 178 | = (vlc_CPU() & CPU_CAPABILITY_FPU) ? |
|---|
| 179 | 179 | VLC_FOURCC('f','l','3','2') : |
|---|
| 180 | 180 | VLC_FOURCC('f','i','3','2'); |
|---|
| rd57b277 |
r85faf5c |
|
| 77 | 77 | |
|---|
| 78 | 78 | #include "modules/configuration.h" |
|---|
| | 79 | #include "libvlc.h" |
|---|
| 79 | 80 | |
|---|
| 80 | 81 | #include "vlc_interface.h" |
|---|
| … | … | |
| 482 | 483 | p_list = malloc( p_all->i_count * sizeof( module_list_t ) ); |
|---|
| 483 | 484 | p_first = NULL; |
|---|
| | 485 | unsigned i_cpu = vlc_CPU(); |
|---|
| 484 | 486 | |
|---|
| 485 | 487 | /* Parse the module list for capabilities and probe each of them */ |
|---|
| … | … | |
| 499 | 501 | |
|---|
| 500 | 502 | /* Test if we have the required CPU */ |
|---|
| 501 | | if( (p_module->i_cpu & p_this->p_libvlc_global->i_cpu) != p_module->i_cpu ) |
|---|
| | 503 | if( (p_module->i_cpu & i_cpu) != p_module->i_cpu ) |
|---|
| 502 | 504 | { |
|---|
| 503 | 505 | continue; |
|---|