summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-29 16:22:30 +0000
committerjstebbins <[email protected]>2015-03-29 16:22:30 +0000
commit8e9bff8f32423c3ac69986bb3e4d03300d41dd4e (patch)
treea31260ce3ac5fc295f93f48ca2f7136563aa4455 /libhb/common.h
parent168ce686fd837de7fbf20266df31af2ac00c8db1 (diff)
libhb: Eliminate global variable hb_gui_use_hwd_flag
This global was shared between the CLI and libhb and used as a back door to force scan and encode passes to use the same ffmpeg context for hardware decoding. Aside from the fact that this context sharing should not be necessary and needs fixing, this information belongs in the hb_handle_t that is shared between the scan and the encode. So put it there and make sure the hb_handle_t get propagated to where the flag is needed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7028 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libhb/common.h b/libhb/common.h
index a8a699387..08e073296 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -71,6 +71,7 @@
#define HB_DVD_READ_BUFFER_SIZE 2048
typedef struct hb_handle_s hb_handle_t;
+typedef struct hb_hwd_s hb_hwd_t;
typedef struct hb_list_s hb_list_t;
typedef struct hb_rate_s hb_rate_t;
typedef struct hb_dither_s hb_dither_t;
@@ -430,8 +431,6 @@ struct hb_title_set_s
int feature; // Detected DVD feature title
};
-extern int hb_gui_use_hwd_flag;
-
typedef enum
{
HB_ANAMORPHIC_NONE,
@@ -581,8 +580,8 @@ struct hb_job_s
// to non-I frames).
int use_opencl;
int use_hwd;
- int use_decomb;
- int use_detelecine;
+ PRIVATE int use_decomb;
+ PRIVATE int use_detelecine;
#ifdef USE_QSV
// QSV-specific settings
@@ -1099,6 +1098,8 @@ struct hb_work_object_s
hb_work_object_t * next;
int thread_sleep_interval;
+
+ hb_handle_t * h;
#endif
};