OSDN Git Service

LinGui: Picture Filter enhancements
[handbrake-jp/handbrake-jp-git.git] / gtk / src / makedeps.c
index 433068a..87ab6ac 100644 (file)
@@ -11,62 +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", "preview_button", "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", "video_bitrate", "TRUE", FALSE},
-       {"vquality_type_target", "video_target_size", "TRUE", FALSE},
-       {"vquality_type_constant", "video_quality", "TRUE", FALSE},
-       {"vquality_type_constant", "constant_rate_factor", "TRUE", FALSE},
-       {"vquality_type_constant", "two_pass", "TRUE", TRUE},
-       {"vquality_type_constant", "turbo", "TRUE", TRUE},
-       {"two_pass", "turbo", "TRUE", FALSE},
-       {"container", "large_mp4", "mp4|m4v", FALSE},
-       {"container", "http_optimize_mp4", "mp4|m4v", FALSE},
-       {"container", "ipod_file", "mp4|m4v", FALSE},
-       {"decomb", "deinterlace", "TRUE", TRUE},
-       {"decomb", "tweak_deinterlace", "TRUE", TRUE},
-       {"autocrop", "crop_top", "FALSE", FALSE},
-       {"autocrop", "crop_bottom", "FALSE", FALSE},
-       {"autocrop", "crop_left", "FALSE", FALSE},
-       {"autocrop", "crop_right", "FALSE", FALSE},
-       {"autoscale", "scale_width", "FALSE", FALSE},
-       {"autoscale", "scale_height", "FALSE", FALSE},
-       {"anamorphic", "keep_aspect", "FALSE", FALSE},
-       {"anamorphic", "scale_height", "FALSE", FALSE},
-       {"keep_aspect", "scale_height", "FALSE", FALSE},
-       {"video_codec", "x264_tab", "x264", FALSE},
-       {"video_codec", "x264_tab_label", "x264", FALSE},
-       {"video_codec", "ipod_file", "x264", FALSE},
-       {"audio_codec", "audio_bitrate", "ac3", TRUE},
-       {"audio_codec", "audio_rate", "ac3", TRUE},
-       {"audio_codec", "audio_mix", "ac3", TRUE},
-       {"audio_codec", "audio_drc", "ac3", TRUE},
-       {"x264_bframes", "x264_weighted_bframes", "0", TRUE},
-       {"x264_bframes", "x264_brdo", "0", TRUE},
-       {"x264_bframes", "x264_bime", "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},
-       {"x264_subme", "x264_brdo", "<6", TRUE},
-       {"x264_analyse", "x264_direct", "none", TRUE},
-       {"x264_me", "x264_merange", "umh|esa", FALSE},
-       {"chapter_markers", "chapters_list", "TRUE", FALSE},
-       {"use_source_name", "chapters_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", "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, 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
@@ -123,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);
                        }
                }