From 0c5cdc16d8c8cb336f052554c1489f2d5badde72 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sat, 13 Jul 2013 18:43:44 +0000 Subject: 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 --- libhb/ports.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'libhb/ports.h') diff --git a/libhb/ports.h b/libhb/ports.h index 10d01935b..38921300d 100644 --- a/libhb/ports.h +++ b/libhb/ports.h @@ -16,12 +16,28 @@ #define DIR_SEP_STR "/" #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); -- cgit v1.2.3