if test "x$use_x265" = "xyes" ; then
HB_LIBS="$HB_LIBS -lx265"
-if test "x$use_numa" = "xyes" ; then
- HB_LIBS="$HB_LIBS -lnuma"
-fi
fi
if test "x$use_qsv" = "xyes" ; then
- HB_LIBS="$HB_LIBS -lmfx -lva -lva-drm"
+ HB_LIBS="$HB_LIBS -lmfx"
fi
case $host in
*-*-freebsd*)
HB_LIBS="$HB_LIBS -lpthread"
;;
+ *-*-linux*)
+ if test "x$use_qsv" = "xyes" ; then
+ HB_LIBS="$HB_LIBS -lva -lva-drm"
+ fi
+ if test "x$use_x265" = "xyes" ; then
+ if test "x$use_numa" = "xyes" ; then
+ HB_LIBS="$HB_LIBS -lnuma"
+ fi
+ fi
+ ;;
*)
HB_LIBS="$HB_LIBS -ldl -lpthread"
;;
#include "hb-backend.h"
#include "ghb-dvd.h"
#include "ghbcellrenderertext.h"
+#include "libavutil/parseutils.h"
static void update_queue_labels(signal_user_data_t *ud);
static void load_all_titles(signal_user_data_t *ud, int titleindex);
for (int i = 0; i < sizeof(maps); i++)
{
- if (hb_validate_param_string(maps[i].pattern), src)
+ if (hb_validate_param_string(maps[i].pattern, src))
{
av_small_strptime(src, maps[i].format, tm);
return 1;
// Open activity log.
config = ghb_get_user_config_dir(NULL);
pid = getpid();
- path = g_strdup_printf("%s/Activity.log.%d", config, pid);
+ path = g_strdup_printf("%s/Activity.log.%"PRId64, config, (long)pid);
ud->activity_log = g_io_channel_new_file (path, "w", NULL);
ud->job_activity_log = NULL;
str = g_strdup_printf("<big><b>%s</b></big>", path);
hb_window = GTK_WINDOW(GHB_WIDGET(ud->builder, "hb_window"));
dialog = gtk_message_dialog_new(hb_window, GTK_DIALOG_MODAL,
GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE,
- _("%sThe destination filesystem is almost full: %"PRIu64"MB free.\n"
+ _("%sThe destination filesystem is almost full: %"PRId64" MB free.\n"
"Destination: %s\n"
"Encode may be incomplete if you proceed.\n"),
paused_msg, free_size / (1024 * 1024), dest);
return g_strdup_printf(" %-12s", "ERROR");
}
-#include <execinfo.h>
-
G_MODULE_EXPORT gchar*
format_vquality_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
{
char * hb_generate_filter_settings_json(int filter_id, const char *preset,
const char *tune, const char *custom);
+int hb_validate_param_string(const char *regex_pattern, const char *param_string);
int hb_validate_filter_preset(int filter_id, const char *preset,
const char *tune, const char *custom);
int hb_validate_filter_settings(int filter_id, const hb_dict_t *settings);