const gchar *dep_name;
const gchar *enable_value;
const gboolean disable_if_equal;
+ const gboolean hide;
} dependency_t;
static dependency_t dep_map[] =
{
- {"title", "queue_add", "none", TRUE},
- {"title", "queue_add_menu", "none", TRUE},
- {"title", "show_picture", "none", TRUE},
- {"title", "show_preview_menu", "none", TRUE},
- {"title", "preview_frame", "none", TRUE},
- {"title", "picture_label", "none", TRUE},
- {"title", "picture_tab", "none", TRUE},
- {"title", "chapters_label", "none", TRUE},
- {"title", "chapters_tab", "none", TRUE},
- {"title", "title", "none", TRUE},
- {"title", "start_chapter", "none", TRUE},
- {"title", "end_chapter", "none", TRUE},
- {"vquality_type_bitrate", "VideoAvgBitrate", "TRUE", FALSE},
- {"vquality_type_target", "VideoTargetSize", "TRUE", FALSE},
- {"vquality_type_constant", "VideoQualitySlider", "TRUE", FALSE},
- {"vquality_type_constant", "constant_rate_factor", "TRUE", FALSE},
- {"vquality_type_constant", "VideoTwoPass", "TRUE", TRUE},
- {"vquality_type_constant", "VideoTurboTwoPass", "TRUE", TRUE},
- {"VideoTwoPass", "VideoTurboTwoPass", "TRUE", FALSE},
- {"FileFormat", "Mp4LargeFile", "mp4|m4v", FALSE},
- {"FileFormat", "Mp4HttpOptimize", "mp4|m4v", FALSE},
- {"FileFormat", "Mp4iPodCompatible", "mp4|m4v", FALSE},
- {"PictureDecomb", "PictureDeinterlace", "TRUE", TRUE},
- {"PictureDecomb", "tweak_PictureDeinterlace", "TRUE", TRUE},
- {"PictureAutoCrop", "PictureTopCrop", "FALSE", FALSE},
- {"PictureAutoCrop", "PictureBottomCrop", "FALSE", FALSE},
- {"PictureAutoCrop", "PictureLeftCrop", "FALSE", FALSE},
- {"PictureAutoCrop", "PictureRightCrop", "FALSE", FALSE},
- {"autoscale", "scale_width", "FALSE", FALSE},
- {"autoscale", "scale_height", "FALSE", FALSE},
- {"anamorphic", "PictureKeepRatio", "FALSE", FALSE},
- {"anamorphic", "scale_height", "FALSE", FALSE},
- {"PictureKeepRatio", "scale_height", "FALSE", FALSE},
- {"VideoEncoder", "x264_tab", "x264", FALSE},
- {"VideoEncoder", "x264_tab_label", "x264", FALSE},
- {"VideoEncoder", "Mp4iPodCompatible", "x264", FALSE},
- {"VideoEncoder", "directqp", "x264|ffmpeg", FALSE},
- {"AudioEncoder", "AudioBitrate", "ac3|dts", TRUE},
- {"AudioEncoder", "AudioSamplerate", "ac3|dts", TRUE},
- {"AudioEncoder", "AudioMixdown", "ac3|dts", TRUE},
- {"AudioEncoder", "AudioTrackDRCSlider", "ac3|dts", TRUE},
- {"x264_bframes", "x264_weighted_bframes", "0", TRUE},
- {"x264_bframes", "x264_bpyramid", "<2", TRUE},
- {"x264_bframes", "x264_direct", "0", TRUE},
- {"x264_refs", "x264_mixed_refs", "<2", TRUE},
- {"x264_cabac", "x264_trellis", "TRUE", FALSE},
- {"ChapterMarkers", "chapters_list", "TRUE", FALSE},
- {"use_source_name", "chapters_in_destination", "TRUE", FALSE},
- {"use_source_name", "title_no_in_destination", "TRUE", FALSE},
+ {"title", "queue_add", "none", TRUE, FALSE},
+ {"title", "queue_add_menu", "none", TRUE, FALSE},
+ {"title", "show_picture", "none", TRUE, FALSE},
+ {"title", "show_preview_menu", "none", TRUE, FALSE},
+ {"title", "preview_frame", "none", TRUE, FALSE},
+ {"title", "picture_label", "none", TRUE, FALSE},
+ {"title", "picture_tab", "none", TRUE, FALSE},
+ {"title", "chapters_label", "none", TRUE, FALSE},
+ {"title", "chapters_tab", "none", TRUE, FALSE},
+ {"title", "start_chapter", "none", TRUE, FALSE},
+ {"title", "end_chapter", "none", TRUE, FALSE},
+ {"vquality_type_bitrate", "VideoAvgBitrate", "TRUE", FALSE, FALSE},
+ {"vquality_type_target", "VideoTargetSize", "TRUE", FALSE, FALSE},
+ {"vquality_type_constant", "VideoQualitySlider", "TRUE", FALSE, FALSE},
+ {"vquality_type_constant", "constant_rate_factor", "TRUE", FALSE, FALSE},
+ {"vquality_type_constant", "VideoTwoPass", "TRUE", TRUE, FALSE},
+ {"vquality_type_constant", "VideoTurboTwoPass", "TRUE", TRUE, FALSE},
+ {"VideoTwoPass", "VideoTurboTwoPass", "TRUE", FALSE, FALSE},
+ {"FileFormat", "Mp4LargeFile", "mp4|m4v", FALSE, TRUE},
+ {"FileFormat", "Mp4HttpOptimize", "mp4|m4v", FALSE, TRUE},
+ {"FileFormat", "Mp4iPodCompatible", "mp4|m4v", FALSE, TRUE},
+ {"PictureDecomb", "PictureDeinterlace", "none", FALSE, FALSE},
+ {"PictureDecomb", "PictureDeinterlaceCustom", "none", FALSE, TRUE},
+ {"PictureDeinterlace", "PictureDeinterlaceCustom", "custom", FALSE, TRUE},
+ {"PictureDenoise", "PictureDenoiseCustom", "custom", FALSE, TRUE},
+ {"PictureDecomb", "PictureDecombCustom", "custom", FALSE, TRUE},
+ {"PictureDetelecine", "PictureDetelecineCustom", "custom", FALSE, TRUE},
+ {"PictureAutoCrop", "PictureTopCrop", "FALSE", FALSE, FALSE},
+ {"PictureAutoCrop", "PictureBottomCrop", "FALSE", FALSE, FALSE},
+ {"PictureAutoCrop", "PictureLeftCrop", "FALSE", FALSE, FALSE},
+ {"PictureAutoCrop", "PictureRightCrop", "FALSE", FALSE, FALSE},
+ {"VideoEncoder", "x264_tab", "x264", FALSE, FALSE},
+ {"VideoEncoder", "x264_tab_label", "x264", FALSE, FALSE},
+ {"VideoEncoder", "Mp4iPodCompatible", "x264", FALSE, FALSE},
+ {"AudioEncoder", "AudioBitrate", "ac3|dts", TRUE, FALSE},
+ {"AudioEncoder", "AudioSamplerate", "ac3|dts", TRUE, FALSE},
+ {"AudioEncoder", "AudioMixdown", "ac3|dts", TRUE, FALSE},
+ {"AudioEncoder", "AudioTrackDRCSlider", "ac3|dts", TRUE, FALSE},
+ {"x264_bframes", "x264_weighted_bframes", "0", TRUE, FALSE},
+ {"x264_bframes", "x264_bpyramid", "<2", TRUE, FALSE},
+ {"x264_bframes", "x264_direct", "0", TRUE, FALSE},
+ {"x264_bframes", "x264_b_adapt", "0", TRUE, FALSE},
+ {"x264_refs", "x264_mixed_refs", "<2", TRUE, FALSE},
+ {"x264_cabac", "x264_trellis", "TRUE", FALSE, FALSE},
+ {"x264_subme", "x264_psy_rd", "<6", TRUE, FALSE},
+ {"x264_subme", "x264_psy_trell", "<6", TRUE, FALSE},
+ {"x264_cabac", "x264_psy_trell", "TRUE", FALSE, FALSE},
+ {"x264_trellis", "x264_psy_trell", "0", TRUE, FALSE},
+ {"ChapterMarkers", "chapters_list", "TRUE", FALSE, FALSE},
+ {"use_source_name", "chapters_in_destination", "TRUE", FALSE, FALSE},
+ {"use_source_name", "title_no_in_destination", "TRUE", FALSE, FALSE},
};
int
}
ghb_dict_insert(top, g_strdup(name), array);
}
- ghb_plist_write_file("widget_deps", top);
+ ghb_plist_write_file("widget.deps", top);
// reverse map
top = ghb_dict_value_new();
ghb_string_value(dep_map[jj].enable_value)));
ghb_array_append(data, ghb_value_dup(
ghb_boolean_value(dep_map[jj].disable_if_equal)));
+ ghb_array_append(data, ghb_value_dup(
+ ghb_boolean_value(dep_map[jj].hide)));
ghb_array_append(array, data);
}
}
ghb_dict_insert(top, g_strdup(name), array);
}
- ghb_plist_write_file("widget_reverse_deps", top);
+ ghb_plist_write_file("widget_reverse.deps", top);
return 0;
}