summaryrefslogtreecommitdiffstats
path: root/gtk/src/makedeps.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-02-05 00:39:50 +0000
committerjstebbins <[email protected]>2009-02-05 00:39:50 +0000
commitb73c90bb0678a98ce90b2d73d7df63f6740e3e18 (patch)
tree71fe973a200e617a1d7553592b41e10b86044323 /gtk/src/makedeps.c
parent362e212cde83400feb0398eb46520393a5ec8c15 (diff)
LinGui: Picture Filter enhancements
Add custom settings fields to Detelecine, Decomb, Deinterlace, and Denoise. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2116 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/makedeps.c')
-rw-r--r--gtk/src/makedeps.c105
1 files changed, 56 insertions, 49 deletions
diff --git a/gtk/src/makedeps.c b/gtk/src/makedeps.c
index 3aa6fcf6d..87ab6ace4 100644
--- a/gtk/src/makedeps.c
+++ b/gtk/src/makedeps.c
@@ -11,61 +11,66 @@ typedef struct
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},
+ {"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", "title", "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},
+ {"autoscale", "scale_width", "FALSE", FALSE, FALSE},
+ {"autoscale", "scale_height", "FALSE", FALSE, FALSE},
+ {"anamorphic", "PictureKeepRatio", "FALSE", FALSE, FALSE},
// "CHECK" is a dummy value that forces scale_height deps to
// be re-evaluated whenever anamorphic changes
- {"anamorphic", "scale_height", "CHECK", TRUE},
- {"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},
+ {"anamorphic", "scale_height", "CHECK", TRUE, FALSE},
+ {"PictureKeepRatio", "scale_height", "FALSE", FALSE, FALSE},
+ {"VideoEncoder", "x264_tab", "x264", FALSE, FALSE},
+ {"VideoEncoder", "x264_tab_label", "x264", FALSE, FALSE},
+ {"VideoEncoder", "Mp4iPodCompatible", "x264", FALSE, FALSE},
+ {"VideoEncoder", "directqp", "x264|ffmpeg", 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_refs", "x264_mixed_refs", "<2", TRUE, FALSE},
+ {"x264_cabac", "x264_trellis", "TRUE", FALSE, 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
@@ -122,6 +127,8 @@ main(gint argc, gchar *argv[])
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);
}
}