summaryrefslogtreecommitdiffstats
path: root/libhb/ports.h
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-07-13 18:43:44 +0000
committerRodeo <[email protected]>2013-07-13 18:43:44 +0000
commit0c5cdc16d8c8cb336f052554c1489f2d5badde72 (patch)
treebe2780f7cee80c8fbc611428d74e71ef26a78976 /libhb/ports.h
parent8228a6411ed3c76d521dc398ddb5329154786f43 (diff)
libhb: store and print additional CPU information
Printed in hb_scan(), so that it's present in all Activity Logs (both encode and scan). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5648 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/ports.h')
-rw-r--r--libhb/ports.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/libhb/ports.h b/libhb/ports.h
index 10d01935b..38921300d 100644
--- a/libhb/ports.h
+++ b/libhb/ports.h
@@ -17,11 +17,27 @@
#endif
/************************************************************************
+ * CPU info utilities
+ ***********************************************************************/
+enum hb_cpu_platform
+{
+ // list of microarchitecture codenames
+ HB_CPU_PLATFORM_UNSPECIFIED = 0,
+ HB_CPU_PLATFORM_INTEL_SNB,
+ HB_CPU_PLATFORM_INTEL_IVB,
+ HB_CPU_PLATFORM_INTEL_HSW,
+};
+int hb_get_cpu_count();
+int hb_get_cpu_platform();
+const char* hb_get_cpu_name();
+const char* hb_get_cpu_platform_name();
+extern void ff_cpu_cpuid(int index, int *eax, int *ebx, int *ecx, int *edx);
+
+/************************************************************************
* Utils
***********************************************************************/
uint64_t hb_get_date();
void hb_snooze( int delay );
-int hb_get_cpu_count();
int hb_platform_init();
#ifdef SYS_MINGW
char *strtok_r(char *s, const char *delim, char **save_ptr);