19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid.c,v 1.75 2008-11-26 01:04:34 Isibaar Exp $ |
* $Id: xvid.c,v 1.78 2008-11-28 18:16:42 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
661 |
return XVID_ERR_VERSION; |
return XVID_ERR_VERSION; |
662 |
|
|
663 |
info->actual_version = XVID_VERSION; |
info->actual_version = XVID_VERSION; |
664 |
info->build = "xvid-1.2.0-dev"; |
info->build = "xvid-1.3.0-dev"; |
665 |
info->cpu_flags = detect_cpu_flags(); |
info->cpu_flags = detect_cpu_flags(); |
666 |
info->num_threads = 0; |
info->num_threads = 0; |
667 |
|
|
674 |
if ((dwProcessAffinityMask & (1<<i))) |
if ((dwProcessAffinityMask & (1<<i))) |
675 |
info->num_threads++; |
info->num_threads++; |
676 |
} |
} |
677 |
|
if (info->num_threads == 0) { |
678 |
|
SYSTEM_INFO siSysInfo; |
679 |
|
GetSystemInfo(&siSysInfo); |
680 |
|
info->num_threads = siSysInfo.dwNumberOfProcessors; /* number of _logical_ cores */ |
681 |
|
} |
682 |
} |
} |
683 |
} |
} |
684 |
#else |
#else |