Skip to content

Commit

Permalink
libhb: resolve header conflicts with pango/harfbuzz
Browse files Browse the repository at this point in the history
Newest versions appear to have a "common.h" somewhere that is
interfering with libhb/common.h.

move headers into "handbrake" subdirectory
  • Loading branch information
jstebbins committed Sep 12, 2019
1 parent a7f5488 commit 1b79484
Show file tree
Hide file tree
Showing 162 changed files with 314 additions and 318 deletions.
2 changes: 1 addition & 1 deletion gtk/src/audiohandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
#include <dbt.h>
#endif

#include "handbrake.h"
#include "handbrake/handbrake.h"
#include "callbacks.h"
#include "chapters.h"
#include "queuehandler.h"
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

#include <gtk/gtk.h>
#include "handbrake.h"
#include "handbrake/handbrake.h"
#include "values.h"
#include "settings.h"

Expand Down
4 changes: 2 additions & 2 deletions gtk/src/hb-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/hb-backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/presets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/presets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/preview.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/queuehandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/subtitlehandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gtk/src/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions libhb/audio_remap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
6 changes: 3 additions & 3 deletions libhb/audio_resample.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions libhb/avfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions libhb/batch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions libhb/bd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion libhb/chroma_smooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libhb/colormap.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <stdio.h>
#include <stdint.h>
#include <strings.h>
#include "colormap.h"
#include "handbrake/colormap.h"

typedef struct
{
Expand Down
4 changes: 2 additions & 2 deletions libhb/colorspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions libhb/comb_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 9 additions & 9 deletions libhb/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion libhb/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions libhb/cropscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions libhb/deblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
14 changes: 7 additions & 7 deletions libhb/decavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions libhb/deccc608sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down
6 changes: 3 additions & 3 deletions libhb/declpcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
10 changes: 5 additions & 5 deletions libhb/decomb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions libhb/decpgssub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions libhb/decsrtsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 1b79484

Please sign in to comment.