summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-09-11 09:56:06 -0700
committerJohn Stebbins <[email protected]>2019-09-12 10:22:07 -0700
commit1b7948495fcf4d511e62d7f9c3a0c1a3ccb59f80 (patch)
treec87c308f35d862678a4bca37637d24acb8de1c2c
parenta7f548861f9f0be309659e93eaccd1994a3a5cfe (diff)
libhb: resolve header conflicts with pango/harfbuzz
Newest versions appear to have a "common.h" somewhere that is interfering with libhb/common.h. move headers into "handbrake" subdirectory
-rw-r--r--gtk/src/audiohandler.c2
-rw-r--r--gtk/src/callbacks.c2
-rw-r--r--gtk/src/callbacks.h2
-rw-r--r--gtk/src/hb-backend.c4
-rw-r--r--gtk/src/hb-backend.h4
-rw-r--r--gtk/src/main.c2
-rw-r--r--gtk/src/presets.c4
-rw-r--r--gtk/src/presets.h2
-rw-r--r--gtk/src/preview.c2
-rw-r--r--gtk/src/queuehandler.c2
-rw-r--r--gtk/src/subtitlehandler.c2
-rw-r--r--gtk/src/values.h2
-rw-r--r--libhb/audio_remap.c6
-rw-r--r--libhb/audio_resample.c6
-rw-r--r--libhb/avfilter.c6
-rw-r--r--libhb/batch.c4
-rw-r--r--libhb/bd.c6
-rw-r--r--libhb/chroma_smooth.c2
-rw-r--r--libhb/colormap.c2
-rw-r--r--libhb/colorspace.c4
-rw-r--r--libhb/comb_detect.c4
-rw-r--r--libhb/common.c18
-rw-r--r--libhb/compat.c2
-rw-r--r--libhb/cropscale.c4
-rw-r--r--libhb/deblock.c4
-rw-r--r--libhb/decavcodec.c14
-rw-r--r--libhb/deccc608sub.c4
-rw-r--r--libhb/declpcm.c6
-rw-r--r--libhb/decomb.c10
-rw-r--r--libhb/decpgssub.c4
-rw-r--r--libhb/decsrtsub.c6
-rw-r--r--libhb/decssasub.c6
-rw-r--r--libhb/dectx3gsub.c4
-rw-r--r--libhb/decutf8sub.c4
-rw-r--r--libhb/decvobsub.c2
-rw-r--r--libhb/deinterlace.c6
-rw-r--r--libhb/demuxmpeg.c2
-rw-r--r--libhb/denoise.c4
-rw-r--r--libhb/detelecine.c4
-rw-r--r--libhb/dvd.c6
-rw-r--r--libhb/dvdnav.c6
-rw-r--r--libhb/eedi2.c4
-rw-r--r--libhb/enc_qsv.c14
-rw-r--r--libhb/encavcodec.c12
-rw-r--r--libhb/encavcodecaudio.c4
-rw-r--r--libhb/enctheora.c2
-rw-r--r--libhb/encvobsub.c2
-rw-r--r--libhb/encvorbis.c4
-rw-r--r--libhb/encx264.c6
-rw-r--r--libhb/encx265.c8
-rw-r--r--libhb/fifo.c4
-rw-r--r--libhb/grayscale.c6
-rw-r--r--libhb/handbrake/audio_remap.h (renamed from libhb/audio_remap.h)0
-rw-r--r--libhb/handbrake/audio_resample.h (renamed from libhb/audio_resample.h)0
-rw-r--r--libhb/handbrake/avfilter_priv.h (renamed from libhb/avfilter_priv.h)2
-rw-r--r--libhb/handbrake/bits.h (renamed from libhb/bits.h)0
-rw-r--r--libhb/handbrake/colormap.h (renamed from libhb/colormap.h)0
-rw-r--r--libhb/handbrake/common.h (renamed from libhb/common.h)6
-rw-r--r--libhb/handbrake/compat.h (renamed from libhb/compat.h)0
-rw-r--r--libhb/handbrake/deccc608sub.h (renamed from libhb/deccc608sub.h)2
-rw-r--r--libhb/handbrake/decomb.h (renamed from libhb/decomb.h)0
-rw-r--r--libhb/handbrake/decsrtsub.h (renamed from libhb/decsrtsub.h)0
-rw-r--r--libhb/handbrake/decssasub.h (renamed from libhb/decssasub.h)0
-rw-r--r--libhb/handbrake/dvd.h (renamed from libhb/dvd.h)0
-rw-r--r--libhb/handbrake/eedi2.h (renamed from libhb/eedi2.h)0
-rw-r--r--libhb/handbrake/encx264.h (renamed from libhb/encx264.h)2
-rw-r--r--libhb/handbrake/h264_common.h (renamed from libhb/h264_common.h)0
-rw-r--r--libhb/handbrake/h265_common.h (renamed from libhb/h265_common.h)2
-rw-r--r--libhb/handbrake/handbrake.h (renamed from libhb/handbrake.h)16
-rw-r--r--libhb/handbrake/hb_dict.h (renamed from libhb/hb_dict.h)2
-rw-r--r--libhb/handbrake/hb_json.h (renamed from libhb/hb_json.h)2
-rw-r--r--libhb/handbrake/hbavfilter.h (renamed from libhb/hbavfilter.h)2
-rw-r--r--libhb/handbrake/hbffmpeg.h (renamed from libhb/hbffmpeg.h)2
-rw-r--r--libhb/handbrake/hbtypes.h (renamed from libhb/hbtypes.h)0
-rw-r--r--libhb/handbrake/internal.h (renamed from libhb/internal.h)6
-rw-r--r--libhb/handbrake/lang.h (renamed from libhb/lang.h)0
-rw-r--r--libhb/handbrake/nal_units.h (renamed from libhb/nal_units.h)2
-rw-r--r--libhb/handbrake/nlmeans.h (renamed from libhb/nlmeans.h)0
-rw-r--r--libhb/handbrake/nvenc_common.h (renamed from libhb/nvenc_common.h)0
-rw-r--r--libhb/handbrake/param.h (renamed from libhb/param.h)0
-rw-r--r--libhb/handbrake/plist.h (renamed from libhb/plist.h)2
-rw-r--r--libhb/handbrake/ports.h (renamed from libhb/ports.h)2
-rw-r--r--libhb/handbrake/preset.h (renamed from libhb/preset.h)4
-rw-r--r--libhb/handbrake/preset_builtin.h (renamed from libhb/preset_builtin.h)0
-rw-r--r--libhb/handbrake/project.h.m4 (renamed from libhb/project.h.m4)0
-rw-r--r--libhb/handbrake/qsv_common.h (renamed from libhb/qsv_common.h)4
-rw-r--r--libhb/handbrake/qsv_filter.h (renamed from libhb/qsv_filter.h)2
-rw-r--r--libhb/handbrake/qsv_filter_pp.h (renamed from libhb/qsv_filter_pp.h)2
-rw-r--r--libhb/handbrake/qsv_libav.h (renamed from libhb/qsv_libav.h)0
-rw-r--r--libhb/handbrake/qsv_memory.h (renamed from libhb/qsv_memory.h)4
-rw-r--r--libhb/handbrake/ssautil.h (renamed from libhb/ssautil.h)0
-rw-r--r--libhb/handbrake/taskset.h (renamed from libhb/taskset.h)2
-rw-r--r--libhb/handbrake/vce_common.h (renamed from libhb/vce_common.h)0
-rw-r--r--libhb/hb.c8
-rw-r--r--libhb/hb_dict.c4
-rw-r--r--libhb/hb_json.c6
-rw-r--r--libhb/hbavfilter.c8
-rw-r--r--libhb/hbffmpeg.c4
-rw-r--r--libhb/lang.c2
-rw-r--r--libhb/lapsharp.c2
-rw-r--r--libhb/module.defs4
-rw-r--r--libhb/mt_frame_filter.c4
-rw-r--r--libhb/muxavformat.c6
-rw-r--r--libhb/muxcommon.c4
-rw-r--r--libhb/nal_units.c4
-rw-r--r--libhb/nlmeans.c8
-rw-r--r--libhb/nlmeans_x86.c4
-rw-r--r--libhb/nvenc_common.c4
-rw-r--r--libhb/pad.c6
-rw-r--r--libhb/param.c12
-rw-r--r--libhb/platform/macosx/encca_aac.c4
-rw-r--r--libhb/platform/macosx/vt_common.c2
-rw-r--r--libhb/plist.c6
-rw-r--r--libhb/ports.c4
-rw-r--r--libhb/preset.c12
-rw-r--r--libhb/qsv_common.c32
-rw-r--r--libhb/qsv_filter.c10
-rw-r--r--libhb/qsv_filter_pp.c14
-rw-r--r--libhb/qsv_libav.c6
-rw-r--r--libhb/qsv_memory.c8
-rw-r--r--libhb/reader.c2
-rw-r--r--libhb/rendersub.c4
-rw-r--r--libhb/rotate.c4
-rw-r--r--libhb/scan.c4
-rw-r--r--libhb/ssautil.c4
-rw-r--r--libhb/stream.c6
-rw-r--r--libhb/sync.c6
-rw-r--r--libhb/taskset.c6
-rw-r--r--libhb/unsharp.c2
-rw-r--r--libhb/vce_common.c4
-rw-r--r--libhb/vfr.c2
-rw-r--r--libhb/work.c10
-rw-r--r--macosx/HBAudio.m2
-rw-r--r--macosx/HBAudioDefaults.m4
-rw-r--r--macosx/HBAudioTrack.m2
-rw-r--r--macosx/HBAudioTrackPreset.m2
-rw-r--r--macosx/HBAudioTransformers.m2
-rw-r--r--macosx/HBFilters+UIAdditions.m2
-rw-r--r--macosx/HBFilters.m2
-rw-r--r--macosx/HBImageUtilities.m2
-rw-r--r--macosx/HBJob+HBAdditions.m2
-rw-r--r--macosx/HBJob+HBJobConversion.h2
-rw-r--r--macosx/HBJob+UIAdditions.m2
-rw-r--r--macosx/HBJob.m2
-rw-r--r--macosx/HBLanguagesSelection.m2
-rw-r--r--macosx/HBPicture+UIAdditions.m2
-rw-r--r--macosx/HBPicture.m2
-rw-r--r--macosx/HBPreset.m2
-rw-r--r--macosx/HBPresetsManager.m2
-rw-r--r--macosx/HBStateFormatter+Private.h2
-rw-r--r--macosx/HBStateFormatter.m2
-rw-r--r--macosx/HBSubtitles.m2
-rw-r--r--macosx/HBSubtitlesTrack.m4
-rw-r--r--macosx/HBTitle+Private.h2
-rw-r--r--macosx/HBTitle.m2
-rw-r--r--macosx/HBUtilities.m2
-rw-r--r--macosx/HBVideo+UIAdditions.m2
-rw-r--r--macosx/HBVideo.m2
-rw-r--r--macosx/HandBrake.xcodeproj/project.pbxproj4
-rw-r--r--macosx/NSDictionary+HBAdditions.h2
-rw-r--r--test/parsecsv.c2
-rw-r--r--test/test.c6
162 files changed, 314 insertions, 318 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c
index e922d40f7..404c37659 100644
--- a/gtk/src/audiohandler.c
+++ b/gtk/src/audiohandler.c
@@ -24,7 +24,7 @@
#include <glib/gi18n.h>
#include "ghbcompat.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "settings.h"
#include "jobdict.h"
#include "titledict.h"
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index b8c41321e..0a9442c9b 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -74,7 +74,7 @@
#include <dbt.h>
#endif
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "callbacks.h"
#include "chapters.h"
#include "queuehandler.h"
diff --git a/gtk/src/callbacks.h b/gtk/src/callbacks.h
index 94f64bb74..d2390e0ff 100644
--- a/gtk/src/callbacks.h
+++ b/gtk/src/callbacks.h
@@ -30,7 +30,7 @@
#endif
#include <gtk/gtk.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "values.h"
#include "settings.h"
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 260f09034..535d60f93 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -25,7 +25,7 @@
#include <limits.h>
#include <ctype.h>
#include <math.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "ghbcompat.h"
#include <glib/gstdio.h>
#include <glib/gi18n.h>
@@ -39,7 +39,7 @@
#include "preview.h"
#include "presets.h"
#include "values.h"
-#include "lang.h"
+#include "handbrake/lang.h"
#include "jansson.h"
typedef struct
diff --git a/gtk/src/hb-backend.h b/gtk/src/hb-backend.h
index 37d21c14a..38b1545a8 100644
--- a/gtk/src/hb-backend.h
+++ b/gtk/src/hb-backend.h
@@ -26,8 +26,8 @@
#include "values.h"
#include "settings.h"
-#include "handbrake.h"
-#include "lang.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
enum
{
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 7b59bc460..c7c422724 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -47,7 +47,7 @@
#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "renderer_button.h"
#include "hb-backend.h"
#include "ghb-dvd.h"
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index f06f4552d..8e94cfb6c 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -31,7 +31,7 @@
#include <glib/gi18n.h>
#include <string.h>
#include "ghbcompat.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "settings.h"
#include "callbacks.h"
#include "audiohandler.h"
@@ -40,7 +40,7 @@
#include "resources.h"
#include "presets.h"
#include "values.h"
-#include "lang.h"
+#include "handbrake/lang.h"
#include "videohandler.h"
#define MAX_NESTED_PRESET 3
diff --git a/gtk/src/presets.h b/gtk/src/presets.h
index 32011e4e2..aed1d5d56 100644
--- a/gtk/src/presets.h
+++ b/gtk/src/presets.h
@@ -24,7 +24,7 @@
#if !defined(_GHB_PRESETS_H_)
#define _GHB_PRESETS_H_
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "values.h"
void ghb_presets_load(signal_user_data_t *ud);
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index 7ae956355..be97edbe8 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -43,7 +43,7 @@
#include "preview.h"
#include "values.h"
#include "queuehandler.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define PREVIEW_STATE_IMAGE 0
#define PREVIEW_STATE_LIVE 1
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index efc8292db..ace9064dd 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -26,7 +26,7 @@
#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "settings.h"
#include "jobdict.h"
#include "titledict.h"
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c
index 5e31f684f..d7d0c7e9c 100644
--- a/gtk/src/subtitlehandler.c
+++ b/gtk/src/subtitlehandler.c
@@ -24,7 +24,7 @@
#include <glib/gi18n.h>
#include "ghbcompat.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "settings.h"
#include "jobdict.h"
#include "titledict.h"
diff --git a/gtk/src/values.h b/gtk/src/values.h
index fabc2021f..a6369a7a1 100644
--- a/gtk/src/values.h
+++ b/gtk/src/values.h
@@ -26,7 +26,7 @@
#include <glib.h>
#include <glib-object.h>
-#include "hb_dict.h"
+#include "handbrake/hb_dict.h"
#define GHB_DICT HB_VALUE_TYPE_DICT
#define GHB_ARRAY HB_VALUE_TYPE_ARRAY
diff --git a/libhb/audio_remap.c b/libhb/audio_remap.c
index b480a69dd..e44a9572c 100644
--- a/libhb/audio_remap.c
+++ b/libhb/audio_remap.c
@@ -7,9 +7,9 @@
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "hbffmpeg.h"
-#include "audio_remap.h"
+#include "handbrake/common.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/audio_remap.h"
// source: libavutil/channel_layout.h
hb_chan_map_t hb_libav_chan_map =
diff --git a/libhb/audio_resample.c b/libhb/audio_resample.c
index d415b574a..3c1bb6f00 100644
--- a/libhb/audio_resample.c
+++ b/libhb/audio_resample.c
@@ -7,9 +7,9 @@
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "hbffmpeg.h"
-#include "audio_resample.h"
+#include "handbrake/common.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/audio_resample.h"
hb_audio_resample_t* hb_audio_resample_init(enum AVSampleFormat sample_fmt,
int sample_rate,
diff --git a/libhb/avfilter.c b/libhb/avfilter.c
index d7fe4ea04..64dab8371 100644
--- a/libhb/avfilter.c
+++ b/libhb/avfilter.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "hbavfilter.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/hbavfilter.h"
+#include "handbrake/avfilter_priv.h"
static int avfilter_init(hb_filter_object_t * filter, hb_filter_init_t * init);
static int avfilter_post_init( hb_filter_object_t * filter, hb_job_t * job );
diff --git a/libhb/batch.c b/libhb/batch.c
index ca61d3932..d633d83b8 100644
--- a/libhb/batch.c
+++ b/libhb/batch.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "lang.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
struct hb_batch_s
{
diff --git a/libhb/bd.c b/libhb/bd.c
index ba230d98f..c5a41c7fc 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "lang.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
+#include "handbrake/hbffmpeg.h"
#include "libbluray/bluray.h"
diff --git a/libhb/chroma_smooth.c b/libhb/chroma_smooth.c
index 0cbfbeea1..1b14dc8cb 100644
--- a/libhb/chroma_smooth.c
+++ b/libhb/chroma_smooth.c
@@ -8,7 +8,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define CHROMA_SMOOTH_STRENGTH_DEFAULT 0.25
#define CHROMA_SMOOTH_SIZE_DEFAULT 7
diff --git a/libhb/colormap.c b/libhb/colormap.c
index 071af4d88..862036254 100644
--- a/libhb/colormap.c
+++ b/libhb/colormap.c
@@ -10,7 +10,7 @@
#include <stdio.h>
#include <stdint.h>
#include <strings.h>
-#include "colormap.h"
+#include "handbrake/colormap.h"
typedef struct
{
diff --git a/libhb/colorspace.c b/libhb/colorspace.c
index 581886561..2e94fc045 100644
--- a/libhb/colorspace.c
+++ b/libhb/colorspace.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/avfilter_priv.h"
static int colorspace_init(hb_filter_object_t * filter,
hb_filter_init_t * init);
diff --git a/libhb/comb_detect.c b/libhb/comb_detect.c
index 6bd922398..b0917cb9c 100644
--- a/libhb/comb_detect.c
+++ b/libhb/comb_detect.c
@@ -28,8 +28,8 @@ Original "Faster" settings:
#define FILTER_CLASSIC 1
#define FILTER_ERODE_DILATE 2
-#include "handbrake.h"
-#include "taskset.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/taskset.h"
typedef struct decomb_thread_arg_s {
hb_filter_private_t *pv;
diff --git a/libhb/common.c b/libhb/common.c
index a3edef84a..f7fb9dbb5 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -12,15 +12,15 @@
#include <ctype.h>
#include <sys/time.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "x264.h"
-#include "lang.h"
-#include "common.h"
-#include "h264_common.h"
-#include "h265_common.h"
-#include "encx264.h"
+#include "handbrake/lang.h"
+#include "handbrake/common.h"
+#include "handbrake/h264_common.h"
+#include "handbrake/h265_common.h"
+#include "handbrake/encx264.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
#endif
#if HB_PROJECT_FEATURE_X265
@@ -32,10 +32,10 @@
#endif
#if HB_PROJECT_FEATURE_NVENC
-#include "nvenc_common.h"
+#include "handbrake/nvenc_common.h"
#endif
#if HB_PROJECT_FEATURE_VCE
-#include "vce_common.h"
+#include "handbrake/vce_common.h"
#endif
#ifdef __APPLE__
diff --git a/libhb/compat.c b/libhb/compat.c
index 67a5dba7e..fd69dec8b 100644
--- a/libhb/compat.c
+++ b/libhb/compat.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "compat.h"
+#include "handbrake/compat.h"
#ifdef HB_NEED_STRTOK_R
#include <string.h>
diff --git a/libhb/cropscale.c b/libhb/cropscale.c
index 09af92e09..10e7d01c9 100644
--- a/libhb/cropscale.c
+++ b/libhb/cropscale.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/avfilter_priv.h"
static int crop_scale_init(hb_filter_object_t * filter,
hb_filter_init_t * init);
diff --git a/libhb/deblock.c b/libhb/deblock.c
index 31efc1d15..42627b48c 100644
--- a/libhb/deblock.c
+++ b/libhb/deblock.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/avfilter_priv.h"
static int deblock_init(hb_filter_object_t * filter, hb_filter_init_t * init);
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index f705d7035..4c4fb3446 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -38,20 +38,20 @@
VC1 decoder) can't easily be used by the HB mpeg stream reader.
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "hbavfilter.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/hbavfilter.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersrc.h"
#include "libavfilter/buffersink.h"
#include "libavutil/hwcontext.h"
-#include "lang.h"
-#include "audio_resample.h"
+#include "handbrake/lang.h"
+#include "handbrake/audio_resample.h"
#if HB_PROJECT_FEATURE_QSV
#include "libavutil/hwcontext_qsv.h"
-#include "qsv_common.h"
-#include "qsv_libav.h"
+#include "handbrake/qsv_common.h"
+#include "handbrake/qsv_libav.h"
#endif
static void compute_frame_duration( hb_work_private_t *pv );
diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c
index e0defc785..6a6a8494d 100644
--- a/libhb/deccc608sub.c
+++ b/libhb/deccc608sub.c
@@ -13,8 +13,8 @@
*
* Note that the SRT sub generation from CC could be useful for mkv subs.
*/
-#include "handbrake.h"
-#include "deccc608sub.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/deccc608sub.h"
#define SSA_PREAMBLE_LEN 24
/*
diff --git a/libhb/declpcm.c b/libhb/declpcm.c
index 1c322c568..cf2f99de3 100644
--- a/libhb/declpcm.c
+++ b/libhb/declpcm.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "audio_resample.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/audio_resample.h"
struct hb_work_private_s
{
diff --git a/libhb/decomb.c b/libhb/decomb.c
index 13adfd01c..3721f9a59 100644
--- a/libhb/decomb.c
+++ b/libhb/decomb.c
@@ -54,11 +54,11 @@ which will feed EEDI2 interpolations to yadif.
12-15: EEDI2 will override cubic interpolation
*****/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "eedi2.h"
-#include "taskset.h"
-#include "decomb.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/eedi2.h"
+#include "handbrake/taskset.h"
+#include "handbrake/decomb.h"
#define PARITY_DEFAULT -1
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c
index cafc4cf5c..c7120484a 100644
--- a/libhb/decpgssub.c
+++ b/libhb/decpgssub.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
struct hb_work_private_s
{
diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c
index 303387c32..35aa9c157 100644
--- a/libhb/decsrtsub.c
+++ b/libhb/decsrtsub.c
@@ -12,9 +12,9 @@
#include <string.h>
#include <iconv.h>
#include <errno.h>
-#include "handbrake.h"
-#include "colormap.h"
-#include "decsrtsub.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/colormap.h"
+#include "handbrake/decsrtsub.h"
struct start_and_end {
unsigned long start, end;
diff --git a/libhb/decssasub.c b/libhb/decssasub.c
index 9729e6863..b5d8339b9 100644
--- a/libhb/decssasub.c
+++ b/libhb/decssasub.c
@@ -26,11 +26,11 @@
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include <ass/ass.h>
-#include "decssasub.h"
-#include "colormap.h"
+#include "handbrake/decssasub.h"
+#include "handbrake/colormap.h"
struct hb_work_private_s
{
diff --git a/libhb/dectx3gsub.c b/libhb/dectx3gsub.c
index 49ea0e9b7..f2f5d4eea 100644
--- a/libhb/dectx3gsub.c
+++ b/libhb/dectx3gsub.c
@@ -19,8 +19,8 @@
#include <stdlib.h>
#include <stdio.h>
-#include "handbrake.h"
-#include "colormap.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/colormap.h"
struct hb_work_private_s
{
diff --git a/libhb/decutf8sub.c b/libhb/decutf8sub.c
index 45f522c22..c3336d1ab 100644
--- a/libhb/decutf8sub.c
+++ b/libhb/decutf8sub.c
@@ -18,8 +18,8 @@
#include <stdlib.h>
#include <stdio.h>
-#include "handbrake.h"
-#include "decsrtsub.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/decsrtsub.h"
struct hb_work_private_s
{
diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c
index 4a6a6ec94..be64a9013 100644
--- a/libhb/decvobsub.c
+++ b/libhb/decvobsub.c
@@ -27,7 +27,7 @@
* }
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
struct hb_work_private_s
{
diff --git a/libhb/deinterlace.c b/libhb/deinterlace.c
index de91a8202..4ab1c1d16 100644
--- a/libhb/deinterlace.c
+++ b/libhb/deinterlace.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "decomb.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/decomb.h"
+#include "handbrake/avfilter_priv.h"
static int deinterlace_init(hb_filter_object_t * filter,
hb_filter_init_t * init);
diff --git a/libhb/demuxmpeg.c b/libhb/demuxmpeg.c
index 09a9325b0..e76578586 100644
--- a/libhb/demuxmpeg.c
+++ b/libhb/demuxmpeg.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
static inline int check_mpeg_scr( hb_psdemux_t *state, int64_t scr, int tol )
{
diff --git a/libhb/denoise.c b/libhb/denoise.c
index 0da2bf8af..b43acaa84 100644
--- a/libhb/denoise.c
+++ b/libhb/denoise.c
@@ -17,8 +17,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
#define HQDN3D_SPATIAL_LUMA_DEFAULT 4.0f
#define HQDN3D_SPATIAL_CHROMA_DEFAULT 3.0f
diff --git a/libhb/detelecine.c b/libhb/detelecine.c
index 2d2026124..3d8283876 100644
--- a/libhb/detelecine.c
+++ b/libhb/detelecine.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
/*
*
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 9b1c6fca0..2ae506c7d 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "lang.h"
-#include "dvd.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
+#include "handbrake/dvd.h"
#include "dvdread/ifo_read.h"
#include "dvdread/ifo_print.h"
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c
index 72833fcd4..52a48adfe 100644
--- a/libhb/dvdnav.c
+++ b/libhb/dvdnav.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "lang.h"
-#include "dvd.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
+#include "handbrake/dvd.h"
#include "dvdnav/dvdnav.h"
#include "dvdread/ifo_read.h"
diff --git a/libhb/eedi2.c b/libhb/eedi2.c
index e531ea96a..92606183f 100644
--- a/libhb/eedi2.c
+++ b/libhb/eedi2.c
@@ -10,8 +10,8 @@
http://web.missouri.edu/~kes25c/
*/
-#include "handbrake.h"
-#include "eedi2.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/eedi2.h"
/**
* EEDI2 directional limit lookup table
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c
index 0b4f78a68..750bd35f2 100644
--- a/libhb/enc_qsv.c
+++ b/libhb/enc_qsv.c
@@ -26,16 +26,16 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\* ********************************************************************* */
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
-#include "handbrake.h"
-#include "nal_units.h"
-#include "qsv_common.h"
-#include "qsv_memory.h"
-#include "h264_common.h"
-#include "h265_common.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/nal_units.h"
+#include "handbrake/qsv_common.h"
+#include "handbrake/qsv_memory.h"
+#include "handbrake/h264_common.h"
+#include "handbrake/h265_common.h"
#include "libavutil/hwcontext_qsv.h"
#include "libavutil/hwcontext.h"
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 99bf4010b..1c949249c 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -7,12 +7,12 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hb_dict.h"
-#include "hbffmpeg.h"
-#include "h264_common.h"
-#include "h265_common.h"
-#include "nal_units.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/h264_common.h"
+#include "handbrake/h265_common.h"
+#include "handbrake/nal_units.h"
/*
* The frame info struct remembers information about each frame across calls
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c
index 29117ded6..7c81d1736 100644
--- a/libhb/encavcodecaudio.c
+++ b/libhb/encavcodecaudio.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
struct hb_work_private_s
{
diff --git a/libhb/enctheora.c b/libhb/enctheora.c
index 429f8e2fa..7a3f969c8 100644
--- a/libhb/enctheora.c
+++ b/libhb/enctheora.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "theora/codec.h"
#include "theora/theoraenc.h"
diff --git a/libhb/encvobsub.c b/libhb/encvobsub.c
index 0650f3501..33b611ed0 100644
--- a/libhb/encvobsub.c
+++ b/libhb/encvobsub.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
struct hb_work_private_s
{
diff --git a/libhb/encvorbis.c b/libhb/encvorbis.c
index 3d521e3ea..92f24a13f 100644
--- a/libhb/encvorbis.c
+++ b/libhb/encvorbis.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "audio_remap.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/audio_remap.h"
#include "vorbis/vorbisenc.h"
diff --git a/libhb/encx264.c b/libhb/encx264.c
index b0f6781bc..a94eb066e 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -9,9 +9,9 @@
#include <stdarg.h>
-#include "handbrake.h"
-#include "hb_dict.h"
-#include "encx264.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/encx264.h"
int encx264Init( hb_work_object_t *, hb_job_t * );
int encx264Work( hb_work_object_t *, hb_buffer_t **, hb_buffer_t ** );
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 39e912737..025f80120 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -7,13 +7,13 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_X265
-#include "handbrake.h"
-#include "hb_dict.h"
-#include "h265_common.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/h265_common.h"
#include "x265.h"
int encx265Init (hb_work_object_t*, hb_job_t*);
diff --git a/libhb/fifo.c b/libhb/fifo.c
index 1bc89f823..1ded249fc 100644
--- a/libhb/fifo.c
+++ b/libhb/fifo.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_libav.h"
+#include "handbrake/qsv_libav.h"
#endif
#ifndef SYS_DARWIN
diff --git a/libhb/grayscale.c b/libhb/grayscale.c
index 1608f8f45..d8de86224 100644
--- a/libhb/grayscale.c
+++ b/libhb/grayscale.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "taskset.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/taskset.h"
// Settings:
// This filter has no settings.
diff --git a/libhb/audio_remap.h b/libhb/handbrake/audio_remap.h
index d8f1ed3b6..d8f1ed3b6 100644
--- a/libhb/audio_remap.h
+++ b/libhb/handbrake/audio_remap.h
diff --git a/libhb/audio_resample.h b/libhb/handbrake/audio_resample.h
index 103237758..103237758 100644
--- a/libhb/audio_resample.h
+++ b/libhb/handbrake/audio_resample.h
diff --git a/libhb/avfilter_priv.h b/libhb/handbrake/avfilter_priv.h
index 8c6b0a627..20e616cc2 100644
--- a/libhb/avfilter_priv.h
+++ b/libhb/handbrake/avfilter_priv.h
@@ -11,7 +11,7 @@
#define HB_AVFILTER_PRIV_H
#include "libavfilter/avfilter.h"
-#include "hbavfilter.h"
+#include "handbrake/hbavfilter.h"
struct hb_filter_private_s
{
diff --git a/libhb/bits.h b/libhb/handbrake/bits.h
index 8785f4b5c..8785f4b5c 100644
--- a/libhb/bits.h
+++ b/libhb/handbrake/bits.h
diff --git a/libhb/colormap.h b/libhb/handbrake/colormap.h
index 7ea9ac57c..7ea9ac57c 100644
--- a/libhb/colormap.h
+++ b/libhb/handbrake/colormap.h
diff --git a/libhb/common.h b/libhb/handbrake/common.h
index cd66d6f16..8ab21fa8a 100644
--- a/libhb/common.h
+++ b/libhb/handbrake/common.h
@@ -10,9 +10,9 @@
#ifndef HB_COMMON_H
#define HB_COMMON_H
-#include "project.h"
-#include "hbtypes.h"
-#include "hb_dict.h"
+#include "handbrake/project.h"
+#include "handbrake/hbtypes.h"
+#include "handbrake/hb_dict.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libhb/compat.h b/libhb/handbrake/compat.h
index f8ab40614..f8ab40614 100644
--- a/libhb/compat.h
+++ b/libhb/handbrake/compat.h
diff --git a/libhb/deccc608sub.h b/libhb/handbrake/deccc608sub.h
index 14f98c25d..044fc78f7 100644
--- a/libhb/deccc608sub.h
+++ b/libhb/handbrake/deccc608sub.h
@@ -13,7 +13,7 @@
#ifndef __DECCC608SUB_H__
#define __DECCC608SUB_H__
-#include "common.h"
+#include "handbrake/common.h"
struct s_write;
diff --git a/libhb/decomb.h b/libhb/handbrake/decomb.h
index 181bb8ad3..181bb8ad3 100644
--- a/libhb/decomb.h
+++ b/libhb/handbrake/decomb.h
diff --git a/libhb/decsrtsub.h b/libhb/handbrake/decsrtsub.h
index d38357d25..d38357d25 100644
--- a/libhb/decsrtsub.h
+++ b/libhb/handbrake/decsrtsub.h
diff --git a/libhb/decssasub.h b/libhb/handbrake/decssasub.h
index 19c7ce633..19c7ce633 100644
--- a/libhb/decssasub.h
+++ b/libhb/handbrake/decssasub.h
diff --git a/libhb/dvd.h b/libhb/handbrake/dvd.h
index 7ac673ca0..7ac673ca0 100644
--- a/libhb/dvd.h
+++ b/libhb/handbrake/dvd.h
diff --git a/libhb/eedi2.h b/libhb/handbrake/eedi2.h
index e524092f0..e524092f0 100644
--- a/libhb/eedi2.h
+++ b/libhb/handbrake/eedi2.h
diff --git a/libhb/encx264.h b/libhb/handbrake/encx264.h
index 75b98675b..29085e50c 100644
--- a/libhb/encx264.h
+++ b/libhb/handbrake/encx264.h
@@ -11,7 +11,7 @@
#define HB_ENCX264_H
#include "x264.h"
-#include "h264_common.h"
+#include "handbrake/h264_common.h"
/* x264 preferred option names (left) and synonyms (right).
* The "preferred" names match names used in x264's param2string function more
diff --git a/libhb/h264_common.h b/libhb/handbrake/h264_common.h
index afe240113..afe240113 100644
--- a/libhb/h264_common.h
+++ b/libhb/handbrake/h264_common.h
diff --git a/libhb/h265_common.h b/libhb/handbrake/h265_common.h
index 067b652e5..8b5c1072d 100644
--- a/libhb/h265_common.h
+++ b/libhb/handbrake/h265_common.h
@@ -10,7 +10,7 @@
#ifndef HB_H265_COMMON_H
#define HB_H265_COMMON_H
-#include "project.h"
+#include "handbrake/project.h"
// inspired by libavcodec/hevc.h
// in HEVC, all "random access point" NAL units are keyframes
diff --git a/libhb/handbrake.h b/libhb/handbrake/handbrake.h
index 9cf744476..6143316d5 100644
--- a/libhb/handbrake.h
+++ b/libhb/handbrake/handbrake.h
@@ -14,14 +14,14 @@
extern "C" {
#endif
-#include "common.h"
-#include "project.h"
-#include "compat.h"
-#include "hb_json.h"
-#include "preset.h"
-#include "plist.h"
-#include "param.h"
-#include "colormap.h"
+#include "handbrake/common.h"
+#include "handbrake/project.h"
+#include "handbrake/compat.h"
+#include "handbrake/hb_json.h"
+#include "handbrake/preset.h"
+#include "handbrake/plist.h"
+#include "handbrake/param.h"
+#include "handbrake/colormap.h"
/* hb_init()
Initializes a libhb session (launches his own thread, detects CPUs,
diff --git a/libhb/hb_dict.h b/libhb/handbrake/hb_dict.h
index 3984d1a0d..5d8a188e0 100644
--- a/libhb/hb_dict.h
+++ b/libhb/handbrake/hb_dict.h
@@ -9,7 +9,7 @@
#if !defined(HB_DICT_H)
#define HB_DICT_H
-#include "hbtypes.h"
+#include "handbrake/hbtypes.h"
#include <jansson.h>
#define HB_VALUE_TYPE_DICT JSON_OBJECT
diff --git a/libhb/hb_json.h b/libhb/handbrake/hb_json.h
index 8f8a08cbc..aac3223f7 100644
--- a/libhb/hb_json.h
+++ b/libhb/handbrake/hb_json.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#include "common.h"
+#include "handbrake/common.h"
hb_dict_t * hb_state_to_dict( hb_state_t * state);
hb_dict_t * hb_job_to_dict( const hb_job_t * job );
diff --git a/libhb/hbavfilter.h b/libhb/handbrake/hbavfilter.h
index 1495d3b41..319b48871 100644
--- a/libhb/hbavfilter.h
+++ b/libhb/handbrake/hbavfilter.h
@@ -10,7 +10,7 @@
#ifndef HB_AVFILTER_H
#define HB_AVFILTER_H
-#include "common.h"
+#include "handbrake/common.h"
typedef struct hb_avfilter_graph_s hb_avfilter_graph_t;
diff --git a/libhb/hbffmpeg.h b/libhb/handbrake/hbffmpeg.h
index 119347153..6357dcd9c 100644
--- a/libhb/hbffmpeg.h
+++ b/libhb/handbrake/hbffmpeg.h
@@ -21,7 +21,7 @@
#include "libavutil/display.h"
#include "libswscale/swscale.h"
#include "libswresample/swresample.h"
-#include "common.h"
+#include "handbrake/common.h"
#define HB_FFMPEG_THREADS_AUTO (-1) // let hb_avcodec_open() decide thread_count
diff --git a/libhb/hbtypes.h b/libhb/handbrake/hbtypes.h
index 127f9d50c..127f9d50c 100644
--- a/libhb/hbtypes.h
+++ b/libhb/handbrake/hbtypes.h
diff --git a/libhb/internal.h b/libhb/handbrake/internal.h
index e642c2d2c..93ae27dca 100644
--- a/libhb/internal.h
+++ b/libhb/handbrake/internal.h
@@ -10,10 +10,10 @@
#ifndef HB_INTERNAL_H
#define HB_INTERNAL_H
-#include "project.h"
-#include "hbffmpeg.h"
+#include "handbrake/project.h"
+#include "handbrake/hbffmpeg.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_libav.h"
+#include "handbrake/qsv_libav.h"
#endif
/***********************************************************************
diff --git a/libhb/lang.h b/libhb/handbrake/lang.h
index 9017de066..9017de066 100644
--- a/libhb/lang.h
+++ b/libhb/handbrake/lang.h
diff --git a/libhb/nal_units.h b/libhb/handbrake/nal_units.h
index 210419041..0efccc476 100644
--- a/libhb/nal_units.h
+++ b/libhb/handbrake/nal_units.h
@@ -12,7 +12,7 @@
#include <stdint.h>
-#include "common.h"
+#include "handbrake/common.h"
/*
* Write a NAL unit of the specified size to the provided
diff --git a/libhb/nlmeans.h b/libhb/handbrake/nlmeans.h
index 3ed4d7461..3ed4d7461 100644
--- a/libhb/nlmeans.h
+++ b/libhb/handbrake/nlmeans.h
diff --git a/libhb/nvenc_common.h b/libhb/handbrake/nvenc_common.h
index f7873b882..f7873b882 100644
--- a/libhb/nvenc_common.h
+++ b/libhb/handbrake/nvenc_common.h
diff --git a/libhb/param.h b/libhb/handbrake/param.h
index 378c5e578..378c5e578 100644
--- a/libhb/param.h
+++ b/libhb/handbrake/param.h
diff --git a/libhb/plist.h b/libhb/handbrake/plist.h
index e33d7fc33..12b51dd2e 100644
--- a/libhb/plist.h
+++ b/libhb/handbrake/plist.h
@@ -11,7 +11,7 @@
#define _HB_PLIST_H_
#include <stdio.h>
-#include "hb_dict.h"
+#include "handbrake/hb_dict.h"
hb_value_t * hb_plist_parse(const char *buf, size_t len);
hb_value_t * hb_plist_parse_file(const char *filename);
diff --git a/libhb/ports.h b/libhb/handbrake/ports.h
index e1eef623d..6b793da28 100644
--- a/libhb/ports.h
+++ b/libhb/handbrake/ports.h
@@ -24,7 +24,7 @@
#define IS_DIR_SEP(c) (c == '/')
#endif
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
#include "mfx/mfxstructures.h"
diff --git a/libhb/preset.h b/libhb/handbrake/preset.h
index fda7ebefd..abb188487 100644
--- a/libhb/preset.h
+++ b/libhb/handbrake/preset.h
@@ -9,8 +9,8 @@
#if !defined(HB_PRESET_H)
#define HB_PRESET_H
-#include "common.h"
-#include "hb_dict.h"
+#include "handbrake/common.h"
+#include "handbrake/hb_dict.h"
#define HB_MAX_PRESET_FOLDER_DEPTH 8
diff --git a/libhb/preset_builtin.h b/libhb/handbrake/preset_builtin.h
index 294dfb556..294dfb556 100644
--- a/libhb/preset_builtin.h
+++ b/libhb/handbrake/preset_builtin.h
diff --git a/libhb/project.h.m4 b/libhb/handbrake/project.h.m4
index 93af47419..93af47419 100644
--- a/libhb/project.h.m4
+++ b/libhb/handbrake/project.h.m4
diff --git a/libhb/qsv_common.h b/libhb/handbrake/qsv_common.h
index 9522f7488..ca844c5e9 100644
--- a/libhb/qsv_common.h
+++ b/libhb/handbrake/qsv_common.h
@@ -12,14 +12,14 @@
int hb_qsv_available();
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
#include "mfx/mfxvideo.h"
#include "mfx/mfxplugin.h"
#include "libavcodec/avcodec.h"
-#include "hb_dict.h"
+#include "handbrake/hb_dict.h"
/* Minimum Intel Media SDK version (currently 1.3, for Sandy Bridge support) */
#define HB_QSV_MINVERSION_MAJOR HB_QSV_MSDK_VERSION_MAJOR
diff --git a/libhb/qsv_filter.h b/libhb/handbrake/qsv_filter.h
index fc3ba95f8..6d2650059 100644
--- a/libhb/qsv_filter.h
+++ b/libhb/handbrake/qsv_filter.h
@@ -29,7 +29,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef QSV_FILTER_H
#define QSV_FILTER_H
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
void qsv_filter_close( hb_qsv_context* qsv, HB_QSV_STAGE_TYPE vpp_type );
diff --git a/libhb/qsv_filter_pp.h b/libhb/handbrake/qsv_filter_pp.h
index bb2c3cc68..c0e7f605e 100644
--- a/libhb/qsv_filter_pp.h
+++ b/libhb/handbrake/qsv_filter_pp.h
@@ -29,7 +29,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef QSV_FILTER_PP_H
#define QSV_FILTER_PP_H
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
diff --git a/libhb/qsv_libav.h b/libhb/handbrake/qsv_libav.h
index b74b50c2b..b74b50c2b 100644
--- a/libhb/qsv_libav.h
+++ b/libhb/handbrake/qsv_libav.h
diff --git a/libhb/qsv_memory.h b/libhb/handbrake/qsv_memory.h
index 9397306f0..3434114e1 100644
--- a/libhb/qsv_memory.h
+++ b/libhb/handbrake/qsv_memory.h
@@ -29,12 +29,12 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef QSV_MEMORY_H
#define QSV_MEMORY_H
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
#include "mfx/mfxplugin.h"
-#include "qsv_libav.h"
+#include "handbrake/qsv_libav.h"
typedef struct{
diff --git a/libhb/ssautil.h b/libhb/handbrake/ssautil.h
index 319262b73..319262b73 100644
--- a/libhb/ssautil.h
+++ b/libhb/handbrake/ssautil.h
diff --git a/libhb/taskset.h b/libhb/handbrake/taskset.h
index 07a7e32bc..35c21e1c0 100644
--- a/libhb/taskset.h
+++ b/libhb/handbrake/taskset.h
@@ -12,7 +12,7 @@
#define TASKSET_POSIX_COMPLIANT 1
-#include "bits.h"
+#include "handbrake/bits.h"
typedef struct hb_taskset_s {
int thread_count;
diff --git a/libhb/vce_common.h b/libhb/handbrake/vce_common.h
index 0c5da62b2..0c5da62b2 100644
--- a/libhb/vce_common.h
+++ b/libhb/handbrake/vce_common.h
diff --git a/libhb/hb.c b/libhb/hb.c
index b44c2679e..da65650a1 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -7,16 +7,16 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "encx264.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/encx264.h"
#include "libavfilter/avfilter.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
#endif
#if defined( SYS_MINGW )
diff --git a/libhb/hb_dict.c b/libhb/hb_dict.c
index b9bd5a8d3..52f585a94 100644
--- a/libhb/hb_dict.c
+++ b/libhb/hb_dict.c
@@ -9,8 +9,8 @@
#include <ctype.h>
#include <stdio.h>
-#include "handbrake.h"
-#include "hb_dict.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_dict.h"
hb_value_type_t hb_value_type(const hb_value_t *value)
{
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index 5fb92b8b8..8ad0a720d 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -8,10 +8,10 @@
*/
#include <jansson.h>
-#include "handbrake.h"
-#include "hb_json.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_json.h"
#include "libavutil/base64.h"
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
/**
* Convert an hb_state_t to a jansson dict
diff --git a/libhb/hbavfilter.c b/libhb/hbavfilter.c
index 5e050e28f..fa86ac5f8 100644
--- a/libhb/hbavfilter.c
+++ b/libhb/hbavfilter.c
@@ -7,13 +7,13 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersrc.h"
#include "libavfilter/buffersink.h"
-#include "hbavfilter.h"
-#include "avfilter_priv.h"
+#include "handbrake/hbavfilter.h"
+#include "handbrake/avfilter_priv.h"
struct hb_avfilter_graph_s
{
diff --git a/libhb/hbffmpeg.c b/libhb/hbffmpeg.c
index af0707874..f5a140c75 100644
--- a/libhb/hbffmpeg.c
+++ b/libhb/hbffmpeg.c
@@ -1,5 +1,5 @@
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
static int get_frame_type(int type)
{
diff --git a/libhb/lang.c b/libhb/lang.c
index cd3c8887f..0cf828a61 100644
--- a/libhb/lang.c
+++ b/libhb/lang.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "lang.h"
+#include "handbrake/lang.h"
#include <string.h>
#include <ctype.h>
diff --git a/libhb/lapsharp.c b/libhb/lapsharp.c
index 192b26721..9174ac394 100644
--- a/libhb/lapsharp.c
+++ b/libhb/lapsharp.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define LAPSHARP_STRENGTH_LUMA_DEFAULT 0.2
#define LAPSHARP_STRENGTH_CHROMA_DEFAULT 0.2
diff --git a/libhb/module.defs b/libhb/module.defs
index e76358f39..a2d444447 100644
--- a/libhb/module.defs
+++ b/libhb/module.defs
@@ -15,7 +15,7 @@ $(eval $(call import.GCC,LIBHB))
LIBHB.src/ = $(SRC/)libhb/
LIBHB.build/ = $(BUILD/)libhb/
-LIBHB.m4.in = $(wildcard $(LIBHB.src/)*.m4)
+LIBHB.m4.in = $(wildcard $(LIBHB.src/)handbrake/*.m4)
LIBHB.m4.out = $(patsubst $(LIBHB.src/)%.m4,$(LIBHB.build/)%,$(LIBHB.m4.in))
LIBHB.c = $(wildcard $(LIBHB.src/)*.c)
@@ -24,7 +24,7 @@ LIBHB.m.o = $(patsubst $(SRC/)%.m,$(BUILD/)%.o,$(LIBHB.m))
LIBHB.d = $(LIBHB.m4.out) $(LIBHB.h.out) \
$(foreach n,$(LIBHB.prerequisites),$($n.INSTALL.target) )
-LIBHB.h.in = $(wildcard $(LIBHB.src/)*.h)
+LIBHB.h.in = $(wildcard $(LIBHB.src/)handbrake/*.h)
LIBHB.h.in += $(wildcard $(LIBHB.src/)extras/*.h)
LIBHB.h.out = $(patsubst $(SRC/)%,$(BUILD/)%,$(LIBHB.h.in))
diff --git a/libhb/mt_frame_filter.c b/libhb/mt_frame_filter.c
index fd6bf780e..11f5ffc72 100644
--- a/libhb/mt_frame_filter.c
+++ b/libhb/mt_frame_filter.c
@@ -12,8 +12,8 @@
* operate on each frame independently with no context carried over
* from one frame to the next. */
-#include "handbrake.h"
-#include "taskset.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/taskset.h"
typedef struct
{
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
index 1d630ebd2..983c5d348 100644
--- a/libhb/muxavformat.c
+++ b/libhb/muxavformat.c
@@ -12,9 +12,9 @@
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
-#include "handbrake.h"
-#include "ssautil.h"
-#include "lang.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/ssautil.h"
+#include "handbrake/lang.h"
struct hb_mux_data_s
{
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c
index a16a27a52..842ed86e8 100644
--- a/libhb/muxcommon.c
+++ b/libhb/muxcommon.c
@@ -6,8 +6,8 @@
It may be used under the terms of the GNU General Public License v2.
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "decssasub.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/decssasub.h"
#define MIN_BUFFERING (1024*1024*10)
#define MAX_BUFFERING (1024*1024*50)
diff --git a/libhb/nal_units.c b/libhb/nal_units.c
index 5fd332a37..9c326b81a 100644
--- a/libhb/nal_units.c
+++ b/libhb/nal_units.c
@@ -10,8 +10,8 @@
#include <stdint.h>
#include <string.h>
-#include "common.h"
-#include "nal_units.h"
+#include "handbrake/common.h"
+#include "handbrake/nal_units.h"
static const uint8_t hb_annexb_startcode[] = { 0x00, 0x00, 0x00, 0x01, };
diff --git a/libhb/nlmeans.c b/libhb/nlmeans.c
index d838e0575..2297d4f7b 100644
--- a/libhb/nlmeans.c
+++ b/libhb/nlmeans.c
@@ -50,10 +50,10 @@
* etc...
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "taskset.h"
-#include "nlmeans.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/taskset.h"
+#include "handbrake/nlmeans.h"
#define NLMEANS_STRENGTH_LUMA_DEFAULT 6
#define NLMEANS_STRENGTH_CHROMA_DEFAULT 6
diff --git a/libhb/nlmeans_x86.c b/libhb/nlmeans_x86.c
index 131b81007..423fa50e4 100644
--- a/libhb/nlmeans_x86.c
+++ b/libhb/nlmeans_x86.c
@@ -8,14 +8,14 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h" // needed for ARCH_X86
+#include "handbrake/handbrake.h" // needed for ARCH_X86
#if defined(ARCH_X86)
#include <emmintrin.h>
#include "libavutil/cpu.h"
-#include "nlmeans.h"
+#include "handbrake/nlmeans.h"
static void build_integral_sse2(uint32_t *integral,
int integral_stride,
diff --git a/libhb/nvenc_common.c b/libhb/nvenc_common.c
index fb711b0ed..c6897a84c 100644
--- a/libhb/nvenc_common.c
+++ b/libhb/nvenc_common.c
@@ -7,8 +7,8 @@
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "hbffmpeg.h"
-#include "handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/handbrake.h"
#if HB_PROJECT_FEATURE_NVENC
#include <ffnvcodec/nvEncodeAPI.h>
diff --git a/libhb/pad.c b/libhb/pad.c
index 10631bffe..eee3e1c79 100644
--- a/libhb/pad.c
+++ b/libhb/pad.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "colormap.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/colormap.h"
+#include "handbrake/avfilter_priv.h"
static int pad_init(hb_filter_object_t * filter, hb_filter_init_t * init);
diff --git a/libhb/param.c b/libhb/param.c
index 1f73de622..e5baa9d26 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -8,13 +8,13 @@
* http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "project.h"
-#include "hb_dict.h"
-#include "param.h"
-#include "common.h"
-#include "colormap.h"
+#include "handbrake/project.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/param.h"
+#include "handbrake/common.h"
+#include "handbrake/colormap.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
#endif
#include <regex.h>
diff --git a/libhb/platform/macosx/encca_aac.c b/libhb/platform/macosx/encca_aac.c
index 8d770c2e9..5c108cba4 100644
--- a/libhb/platform/macosx/encca_aac.c
+++ b/libhb/platform/macosx/encca_aac.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "audio_remap.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/audio_remap.h"
#include <AudioToolbox/AudioToolbox.h>
#include <CoreAudio/CoreAudio.h>
diff --git a/libhb/platform/macosx/vt_common.c b/libhb/platform/macosx/vt_common.c
index 51c0ff97c..3ea9ce15e 100644
--- a/libhb/platform/macosx/vt_common.c
+++ b/libhb/platform/macosx/vt_common.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "vt_common.h"
#include <VideoToolbox/VideoToolbox.h>
diff --git a/libhb/plist.c b/libhb/plist.c
index 6db6dd389..2bd5a02ec 100644
--- a/libhb/plist.c
+++ b/libhb/plist.c
@@ -14,9 +14,9 @@
#include <inttypes.h>
#include "libxml/parser.h"
-#include "common.h"
-#include "hb_dict.h"
-#include "plist.h"
+#include "handbrake/common.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/plist.h"
#define BUF_SZ (128*1024)
diff --git a/libhb/ports.c b/libhb/ports.c
index 6086aa628..917da62b9 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "project.h"
+#include "handbrake/project.h"
#ifdef SYS_MINGW
#define _WIN32_WINNT 0x600
@@ -88,7 +88,7 @@
#include <stddef.h>
#include <unistd.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "libavutil/cpu.h"
/************************************************************************
diff --git a/libhb/preset.c b/libhb/preset.c
index b592a2bba..b7a30013a 100644
--- a/libhb/preset.c
+++ b/libhb/preset.c
@@ -7,14 +7,14 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "preset_builtin.h"
-#include "handbrake.h"
-#include "hb_dict.h"
-#include "plist.h"
-#include "lang.h"
+#include "handbrake/preset_builtin.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/plist.h"
+#include "handbrake/lang.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
#endif
#if defined(SYS_LINUX)
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c
index 9f7762159..08d4f030b 100644
--- a/libhb/qsv_common.c
+++ b/libhb/qsv_common.c
@@ -7,20 +7,26 @@
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
#include <stdio.h>
#include <string.h>
-#include "handbrake.h"
-#include "ports.h"
-#include "common.h"
-#include "hb_dict.h"
-#include "qsv_common.h"
-#include "h264_common.h"
-#include "h265_common.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/ports.h"
+#include "handbrake/common.h"
+#include "handbrake/hb_dict.h"
+#include "handbrake/qsv_common.h"
+#include "handbrake/h264_common.h"
+#include "handbrake/h265_common.h"
+#include "handbrake/hbffmpeg.h"
+#include "libavfilter/avfilter.h"
+#include "libavfilter/buffersrc.h"
+#include "libavfilter/buffersink.h"
+#include "libavutil/hwcontext_qsv.h"
+#include "libavutil/hwcontext.h"
// QSV info for each codec
static hb_qsv_info_t *hb_qsv_info_avc = NULL;
@@ -2279,16 +2285,6 @@ void hb_qsv_force_workarounds()
#undef FORCE_WORKAROUNDS
}
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "libavfilter/avfilter.h"
-#include "libavfilter/buffersrc.h"
-#include "libavfilter/buffersink.h"
-#include "libavutil/hwcontext_qsv.h"
-#include "libavutil/hwcontext.h"
-#include "lang.h"
-#include "audio_resample.h"
-
AVBufferRef *enc_hw_frames_ctx = NULL;
extern EncQSVFramesContext hb_enc_qsv_frames_ctx;
AVBufferRef *hb_hw_device_ctx = NULL;
diff --git a/libhb/qsv_filter.c b/libhb/qsv_filter.c
index b330c78ad..925e43a1e 100644
--- a/libhb/qsv_filter.c
+++ b/libhb/qsv_filter.c
@@ -26,14 +26,14 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\* ********************************************************************* */
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "qsv_filter.h"
-#include "qsv_libav.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/qsv_filter.h"
+#include "handbrake/qsv_libav.h"
struct hb_filter_private_s
{
diff --git a/libhb/qsv_filter_pp.c b/libhb/qsv_filter_pp.c
index ddab314fd..512b2bd9f 100644
--- a/libhb/qsv_filter_pp.c
+++ b/libhb/qsv_filter_pp.c
@@ -26,16 +26,16 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\* ********************************************************************* */
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "qsv_filter_pp.h"
-#include "qsv_filter.h"
-#include "qsv_libav.h"
-#include "qsv_memory.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/qsv_filter_pp.h"
+#include "handbrake/qsv_filter.h"
+#include "handbrake/qsv_libav.h"
+#include "handbrake/qsv_memory.h"
static int hb_qsv_filter_pre_init( hb_filter_object_t * filter,
diff --git a/libhb/qsv_libav.c b/libhb/qsv_libav.c
index 797aee184..0a6a1a6ce 100644
--- a/libhb/qsv_libav.c
+++ b/libhb/qsv_libav.c
@@ -26,12 +26,12 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\* ********************************************************************* */
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
-#include "hbffmpeg.h"
-#include "qsv_libav.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/qsv_libav.h"
int hb_qsv_get_free_encode_task(hb_qsv_list * tasks)
{
diff --git a/libhb/qsv_memory.c b/libhb/qsv_memory.c
index bb6c91a6c..625674910 100644
--- a/libhb/qsv_memory.c
+++ b/libhb/qsv_memory.c
@@ -26,13 +26,13 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\* ********************************************************************* */
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_QSV
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "qsv_memory.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/qsv_memory.h"
int qsv_nv12_to_yuv420(struct SwsContext* sws_context,hb_buffer_t* dst, mfxFrameSurface1* src, mfxCoreInterface *core){
int ret = 0;
diff --git a/libhb/reader.c b/libhb/reader.c
index a0496a8f5..2f9f72288 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -6,7 +6,7 @@
It may be used under the terms of the GNU General Public License v2.
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
static int reader_init( hb_work_object_t * w, hb_job_t * job );
static void reader_close( hb_work_object_t * w );
diff --git a/libhb/rendersub.c b/libhb/rendersub.c
index a909ce4f2..40613598e 100644
--- a/libhb/rendersub.c
+++ b/libhb/rendersub.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
#include <ass/ass.h>
#define ABS(a) ((a) > 0 ? (a) : (-(a)))
diff --git a/libhb/rotate.c b/libhb/rotate.c
index 7ba140514..c21c4d802 100644
--- a/libhb/rotate.c
+++ b/libhb/rotate.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "common.h"
-#include "avfilter_priv.h"
+#include "handbrake/common.h"
+#include "handbrake/avfilter_priv.h"
static int rotate_init(hb_filter_object_t * filter, hb_filter_init_t * init);
diff --git a/libhb/scan.c b/libhb/scan.c
index 97567c8b3..9aed75d19 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -7,8 +7,8 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
typedef struct
{
diff --git a/libhb/ssautil.c b/libhb/ssautil.c
index 291620dfe..8ff5ea50f 100644
--- a/libhb/ssautil.c
+++ b/libhb/ssautil.c
@@ -8,8 +8,8 @@
*/
#include <stdio.h>
#include <ctype.h>
-#include "handbrake.h"
-#include "ssautil.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/ssautil.h"
struct hb_subtitle_style_s
{
diff --git a/libhb/stream.c b/libhb/stream.c
index aaeaf022e..feb390c07 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -11,9 +11,9 @@
#include <ctype.h>
#include <errno.h>
-#include "handbrake.h"
-#include "hbffmpeg.h"
-#include "lang.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
+#include "handbrake/lang.h"
#include "libbluray/bluray.h"
#define min(a, b) a < b ? a : b
diff --git a/libhb/sync.c b/libhb/sync.c
index 0af052471..446129b09 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -7,10 +7,10 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "hbffmpeg.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/hbffmpeg.h"
#include <stdio.h>
-#include "audio_resample.h"
+#include "handbrake/audio_resample.h"
#define SYNC_MAX_VIDEO_QUEUE_LEN 40
#define SYNC_MIN_VIDEO_QUEUE_LEN 20
diff --git a/libhb/taskset.c b/libhb/taskset.c
index e829fd79b..936ef4de5 100644
--- a/libhb/taskset.c
+++ b/libhb/taskset.c
@@ -7,9 +7,9 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
-#include "ports.h"
-#include "taskset.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/ports.h"
+#include "handbrake/taskset.h"
int
taskset_init( taskset_t *ts, int thread_count, size_t arg_size )
diff --git a/libhb/unsharp.c b/libhb/unsharp.c
index f47c6a1bd..bf5e8b99b 100644
--- a/libhb/unsharp.c
+++ b/libhb/unsharp.c
@@ -8,7 +8,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define UNSHARP_STRENGTH_LUMA_DEFAULT 0.25
#define UNSHARP_SIZE_LUMA_DEFAULT 7
diff --git a/libhb/vce_common.c b/libhb/vce_common.c
index da0476a64..51d9c07ac 100644
--- a/libhb/vce_common.c
+++ b/libhb/vce_common.c
@@ -7,13 +7,13 @@
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "project.h"
+#include "handbrake/project.h"
#if HB_PROJECT_FEATURE_VCE
#include "AMF/core/Factory.h"
#include "AMF/components/VideoEncoderVCE.h"
#include "AMF/components/VideoEncoderHEVC.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
AMF_RESULT check_component_available(const wchar_t *componentID)
{
diff --git a/libhb/vfr.c b/libhb/vfr.c
index a42a5342e..728b32644 100644
--- a/libhb/vfr.c
+++ b/libhb/vfr.c
@@ -7,7 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
//#define HB_DEBUG_CFR_DROPS 1
#define MAX_FRAME_ANALYSIS_DEPTH 10
diff --git a/libhb/work.c b/libhb/work.c
index 7d096aca5..05bd0b04c 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -7,14 +7,14 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "libavformat/avformat.h"
-#include "decomb.h"
-#include "hbavfilter.h"
+#include "handbrake/decomb.h"
+#include "handbrake/hbavfilter.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
-#include "qsv_filter_pp.h"
+#include "handbrake/qsv_common.h"
+#include "handbrake/qsv_filter_pp.h"
#endif
typedef struct
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m
index 0d825ddf6..046d9a8e7 100644
--- a/macosx/HBAudio.m
+++ b/macosx/HBAudio.m
@@ -17,7 +17,7 @@
#import "HBLocalizationUtilities.h"
#import "HBJob+Private.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define NONE_TRACK_INDEX 0
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m
index ac05c2b25..a59b55cef 100644
--- a/macosx/HBAudioDefaults.m
+++ b/macosx/HBAudioDefaults.m
@@ -9,8 +9,8 @@
#import "HBCodingUtilities.h"
#import "HBMutablePreset.h"
-#import "handbrake.h"
-#import "lang.h"
+#import "handbrake/handbrake.h"
+#import "handbrake/lang.h"
@interface HBAudioDefaults ()
diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m
index 0ac7f619d..1f4b8b034 100644
--- a/macosx/HBAudioTrack.m
+++ b/macosx/HBAudioTrack.m
@@ -9,7 +9,7 @@
#import "HBJob.h"
#import "HBCodingUtilities.h"
#import "HBTitle.h"
-#import "handbrake.h"
+#import "handbrake/handbrake.h"
#define DEFAULT_SAMPLERATE 48000
diff --git a/macosx/HBAudioTrackPreset.m b/macosx/HBAudioTrackPreset.m
index ea286c3f4..94542de7e 100644
--- a/macosx/HBAudioTrackPreset.m
+++ b/macosx/HBAudioTrackPreset.m
@@ -6,7 +6,7 @@
#import "HBAudioTrackPreset.h"
#import "HBCodingUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#define DEFAULT_SAMPLERATE 48000
diff --git a/macosx/HBAudioTransformers.m b/macosx/HBAudioTransformers.m
index 95cd66116..07a95001b 100644
--- a/macosx/HBAudioTransformers.m
+++ b/macosx/HBAudioTransformers.m
@@ -6,7 +6,7 @@
#import "HBAudioTransformers.h"
#import "HBLocalizationUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#pragma mark - Value Transformers
diff --git a/macosx/HBFilters+UIAdditions.m b/macosx/HBFilters+UIAdditions.m
index d76f25feb..443d0f884 100644
--- a/macosx/HBFilters+UIAdditions.m
+++ b/macosx/HBFilters+UIAdditions.m
@@ -7,7 +7,7 @@
#import "HBFilters+UIAdditions.h"
#import "HBLocalizationUtilities.h"
-#import "handbrake.h"
+#import "handbrake/handbrake.h"
/**
* Converts a hb_filter_param_t * array to a NSArray of NSString.
diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m
index d969d82ab..077c85e8d 100644
--- a/macosx/HBFilters.m
+++ b/macosx/HBFilters.m
@@ -10,7 +10,7 @@
#import "NSDictionary+HBAdditions.h"
#import "HBMutablePreset.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification";
diff --git a/macosx/HBImageUtilities.m b/macosx/HBImageUtilities.m
index 61d1fcfae..f0c296a78 100644
--- a/macosx/HBImageUtilities.m
+++ b/macosx/HBImageUtilities.m
@@ -6,7 +6,7 @@
#import "HBImageUtilities.h"
#import <Cocoa/Cocoa.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
CGImageRef CreateScaledCGImageFromCGImage(CGImageRef image, CGFloat thumbnailHeight)
{
diff --git a/macosx/HBJob+HBAdditions.m b/macosx/HBJob+HBAdditions.m
index 552b8570e..3d8a211bc 100644
--- a/macosx/HBJob+HBAdditions.m
+++ b/macosx/HBJob+HBAdditions.m
@@ -6,7 +6,7 @@
#import "HBJob+HBAdditions.h"
#import "HBPreferencesKeys.h"
-#import "handbrake.h"
+#import "handbrake/handbrake.h"
static NSDateFormatter *_timeFormatter = nil;
static NSDateFormatter *_dateFormatter = nil;
diff --git a/macosx/HBJob+HBJobConversion.h b/macosx/HBJob+HBJobConversion.h
index fdbca64e4..44fe60d60 100644
--- a/macosx/HBJob+HBJobConversion.h
+++ b/macosx/HBJob+HBJobConversion.h
@@ -6,7 +6,7 @@
#import <Foundation/Foundation.h>
#import "HBJob.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
@interface HBJob (HBJobConversion)
diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m
index 3ce379eed..85118083e 100644
--- a/macosx/HBJob+UIAdditions.m
+++ b/macosx/HBJob+UIAdditions.m
@@ -20,7 +20,7 @@
#import "HBLocalizationUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
// Text Styles
static NSDictionary *detailAttr;
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index 5960ee51b..8fe439212 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -17,7 +17,7 @@
#import "HBUtilities.h"
#import "HBSecurityAccessToken.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
NSString *HBContainerChangedNotification = @"HBContainerChangedNotification";
NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
diff --git a/macosx/HBLanguagesSelection.m b/macosx/HBLanguagesSelection.m
index 3fedddd6d..018c84875 100644
--- a/macosx/HBLanguagesSelection.m
+++ b/macosx/HBLanguagesSelection.m
@@ -5,7 +5,7 @@
It may be used under the terms of the GNU General Public License. */
#import "HBLanguagesSelection.h"
-#include "lang.h"
+#include "handbrake/lang.h"
@implementation HBLang
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m
index 9250d0211..41b40425e 100644
--- a/macosx/HBPicture+UIAdditions.m
+++ b/macosx/HBPicture+UIAdditions.m
@@ -8,7 +8,7 @@
#import "HBTitle.h"
#import "HBLocalizationUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
@implementation HBPicture (UIAdditions)
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m
index 6048714d1..a623d9600 100644
--- a/macosx/HBPicture.m
+++ b/macosx/HBPicture.m
@@ -10,7 +10,7 @@
#import "HBCodingUtilities.h"
#import "HBMutablePreset.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m
index 917657c74..81b0b51b2 100644
--- a/macosx/HBPreset.m
+++ b/macosx/HBPreset.m
@@ -7,7 +7,7 @@
#import "HBPreset.h"
#import "HBMutablePreset.h"
-#include "preset.h"
+#include "handbrake/preset.h"
#import "NSJSONSerialization+HBAdditions.h"
#import "HBLocalizationUtilities.h"
diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m
index e5b3b3173..ac2ea95c1 100644
--- a/macosx/HBPresetsManager.m
+++ b/macosx/HBPresetsManager.m
@@ -10,7 +10,7 @@
#import "HBUtilities.h"
#import "NSJSONSerialization+HBAdditions.h"
-#include "preset.h"
+#include "handbrake/preset.h"
NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification";
diff --git a/macosx/HBStateFormatter+Private.h b/macosx/HBStateFormatter+Private.h
index e7d2e3624..2f4f261a8 100644
--- a/macosx/HBStateFormatter+Private.h
+++ b/macosx/HBStateFormatter+Private.h
@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
#import "HBStateFormatter.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
NS_ASSUME_NONNULL_BEGIN
diff --git a/macosx/HBStateFormatter.m b/macosx/HBStateFormatter.m
index 39b69a6b2..6d7ca5e16 100644
--- a/macosx/HBStateFormatter.m
+++ b/macosx/HBStateFormatter.m
@@ -6,7 +6,7 @@
#import "HBStateFormatter.h"
#import "HBLocalizationUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
@implementation HBStateFormatter
diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m
index 8119813ea..9d2833df4 100644
--- a/macosx/HBSubtitles.m
+++ b/macosx/HBSubtitles.m
@@ -18,7 +18,7 @@
#import "HBJob+Private.h"
#import "HBSecurityAccessToken.h"
-#include "common.h"
+#include "handbrake/common.h"
#define NONE_TRACK_INDEX 0
#define FOREIGN_TRACK_INDEX 1
diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m
index 019c89cf9..457410a27 100644
--- a/macosx/HBSubtitlesTrack.m
+++ b/macosx/HBSubtitlesTrack.m
@@ -8,8 +8,8 @@
#import "HBCodingUtilities.h"
#import "HBTitle.h"
-#include "common.h"
-#include "lang.h"
+#include "handbrake/common.h"
+#include "handbrake/lang.h"
#define CHAR_CODE_DEFAULT_INDEX 28
diff --git a/macosx/HBTitle+Private.h b/macosx/HBTitle+Private.h
index 7afb7defc..57e4cb9e6 100644
--- a/macosx/HBTitle+Private.h
+++ b/macosx/HBTitle+Private.h
@@ -7,7 +7,7 @@
#import <Foundation/Foundation.h>
#import "HBTitle.h"
#import "HBPreset.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
@interface HBTitle (Private)
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index dbb52a080..895ef6fe8 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -14,7 +14,7 @@
#import "HBSecurityAccessToken.h"
#import "HBUtilities.h"
-#include "lang.h"
+#include "handbrake/lang.h"
@interface HBMetadata ()
diff --git a/macosx/HBUtilities.m b/macosx/HBUtilities.m
index 1f2810a52..4015dd916 100644
--- a/macosx/HBUtilities.m
+++ b/macosx/HBUtilities.m
@@ -7,7 +7,7 @@
#import "HBUtilities.h"
#import <Cocoa/Cocoa.h>
-#include "lang.h"
+#include "handbrake/lang.h"
static BOOL hb_resolveBookmarks = YES;
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m
index a2c1b4d39..cd9823698 100644
--- a/macosx/HBVideo+UIAdditions.m
+++ b/macosx/HBVideo+UIAdditions.m
@@ -8,7 +8,7 @@
#import "HBJob+Private.h"
#import "HBLocalizationUtilities.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
@implementation HBVideo (UIAdditions)
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m
index 815292157..c062759e0 100644
--- a/macosx/HBVideo.m
+++ b/macosx/HBVideo.m
@@ -9,7 +9,7 @@
#import "HBCodingUtilities.h"
#import "HBMutablePreset.h"
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification";
diff --git a/macosx/HandBrake.xcodeproj/project.pbxproj b/macosx/HandBrake.xcodeproj/project.pbxproj
index f96e2958f..2b30ed702 100644
--- a/macosx/HandBrake.xcodeproj/project.pbxproj
+++ b/macosx/HandBrake.xcodeproj/project.pbxproj
@@ -1860,8 +1860,8 @@
outputFileListPaths = (
);
outputPaths = (
- "$(EXTERNAL_BUILD)/libhb/hb_dict.h",
- "$(EXTERNAL_BUILD)/libhb/handbrake.h",
+ "$(EXTERNAL_BUILD)/libhb/handbrake/hb_dict.h",
+ "$(EXTERNAL_BUILD)/libhb/handbrake/handbrake.h",
"$(EXTERNAL_BUILD)/macosx/Info.plist",
);
runOnlyForDeploymentPostprocessing = 0;
diff --git a/macosx/NSDictionary+HBAdditions.h b/macosx/NSDictionary+HBAdditions.h
index b653d1b59..42fc79a54 100644
--- a/macosx/NSDictionary+HBAdditions.h
+++ b/macosx/NSDictionary+HBAdditions.h
@@ -5,7 +5,7 @@
It may be used under the terms of the GNU General Public License. */
#import <Foundation/Foundation.h>
-#include "hb_dict.h"
+#include "handbrake/hb_dict.h"
NS_ASSUME_NONNULL_BEGIN
diff --git a/test/parsecsv.c b/test/parsecsv.c
index b777d1dab..95a6f883a 100644
--- a/test/parsecsv.c
+++ b/test/parsecsv.c
@@ -8,7 +8,7 @@
*/
#include <fcntl.h>
-#include "handbrake.h"
+#include "handbrake/handbrake.h"
#include "parsecsv.h"
/* Internal declarations */
diff --git a/test/test.c b/test/test.c
index c4abe7687..227340fb6 100644
--- a/test/test.c
+++ b/test/test.c
@@ -30,12 +30,12 @@
#include <pthread.h>
#endif
-#include "handbrake.h"
-#include "lang.h"
+#include "handbrake/handbrake.h"
+#include "handbrake/lang.h"
#include "parsecsv.h"
#if HB_PROJECT_FEATURE_QSV
-#include "qsv_common.h"
+#include "handbrake/qsv_common.h"
#endif
#if defined( __APPLE_CC__ )