summaryrefslogtreecommitdiffstats
path: root/gtk/src/internal_defaults.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-09-02 22:56:19 +0000
committerjstebbins <[email protected]>2008-09-02 22:56:19 +0000
commit45cabbfe4ab8b95b5f25a236f8c93b64d3ccf8df (patch)
tree40326771d4a7f4721363e3b76ebfca5329595deb /gtk/src/internal_defaults.h
parentfd744170cb1da2675e1168402866f5c20f08a726 (diff)
LinGui: Presets and preferences are now stored as plists
This will also make saving/restoring the queue much easier. It's a scary big change. 1400 new lines of code. Due to efficiencies of a better desing, 2400 lines of old code also gets refactored down to 1600. Giving a final net +600 lines. Along the way, I stumbled across a couple bugs and fixed them. Chapter list entry would get wedged under certain circumstances. Pausing encoding didn't display pause message in status bar. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1662 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/internal_defaults.h')
-rw-r--r--gtk/src/internal_defaults.h287
1 files changed, 197 insertions, 90 deletions
diff --git a/gtk/src/internal_defaults.h b/gtk/src/internal_defaults.h
index 7751dd2e5..fe4e9317f 100644
--- a/gtk/src/internal_defaults.h
+++ b/gtk/src/internal_defaults.h
@@ -1,90 +1,197 @@
-"[Presets]\n"
-"preset_type=1\n"
-"preset_description=\n"
-"subtitle_lang=none\n"
-"forced_subtitles=enable\n"
-"source_audio_lang=und\n"
-"pref_audio_codec=ac3\n"
-"pref_audio_bitrate=192\n"
-"pref_audio_rate=source\n"
-"pref_audio_mix=dpl2\n"
-"pref_audio_drc=1.0\n"
-"chapter_markers=enable\n"
-"container=mp4\n"
-"ipod_file=disable\n"
-"large_mp4=disable\n"
-"autocrop=enable\n"
-"autoscale=enable\n"
-"max_width=0\n"
-"max_height=0\n"
-"anamorphic=enable\n"
-"round_dimensions=enable\n"
-"keep_aspect=enable\n"
-"detelecine=enable\n"
-"decomb=enable\n"
-"deinterlace=none\n"
-"denoise=none\n"
-"deblock=disable\n"
-"tweak_decomb=\n"
-"tweak_detelecine=\n"
-"tweak_deblock=\n"
-"grayscale=disable\n"
-"video_codec=x264\n"
-"two_pass=disable\n"
-"turbo=enable\n"
-"constant_rate_factor=enable\n"
-"variable_frame_rate=enable\n"
-"framerate=source\n"
-"vquality_type_constant=disable\n"
-"vquality_type_bitrate=disable\n"
-"vquality_type_target=disable\n"
-"video_bitrate=1800\n"
-"video_target_size=700\n"
-"video_quality=64\n"
-"x264_options=\n"
-"directqp=disable\n"
-"\n"
-"[Initialization]\n"
-"title=none\n"
-"start_chapter=1\n"
-"end_chapter=100\n"
-"scale_width=720\n"
-"scale_height=480\n"
-"crop_top=0\n"
-"crop_bottom=0\n"
-"crop_left=0\n"
-"crop_right=0\n"
-"x264_refs=1\n"
-"x264_mixed_refs=disable\n"
-"x264_bframes=0\n"
-"x264_direct=spatial\n"
-"x264_weighted_bframes=disable\n"
-"x264_brdo=disable\n"
-"x264_bime=disable\n"
-"x264_bpyramid=disable\n"
-"x264_me=hex\n"
-"x264_merange=16\n"
-"x264_subme=5\n"
-"x264_analyse=some\n"
-"x264_8x8dct=disable\n"
-"x264_deblock_alpha=0\n"
-"x264_deblock_beta=0\n"
-"x264_trellis=0\n"
-"x264_no_fast_pskip=disable\n"
-"x264_no_dct_decimate=disable\n"
-"x264_cabac=enable\n"
-"\n"
-"[Preferences]\n"
-"version=0.1\n"
-"default_preset=Normal\n"
-"default_source=/dev/dvd\n"
-"destination_dir=\n"
-"use_source_name=enable\n"
-"hbfd=disable\n"
-"hbfd_feature=disable\n"
-"show_presets=enable\n"
-"linear_vquality=disable\n"
-"noscale=disable\n"
-"nocheckvquality=disable\n"
-"allow_tweaks=disable\n"
-"\n"
+"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n"
+"<plist version=\"1.0\">\n"
+"<dict>\n"
+" <key>Initialization</key>\n"
+" <dict>\n"
+" <key>crop_bottom</key>\n"
+" <integer>0</integer>\n"
+" <key>crop_left</key>\n"
+" <integer>0</integer>\n"
+" <key>crop_right</key>\n"
+" <integer>0</integer>\n"
+" <key>crop_top</key>\n"
+" <integer>0</integer>\n"
+" <key>end_chapter</key>\n"
+" <integer>100</integer>\n"
+" <key>preset</key>\n"
+" <string>Normal</string>\n"
+" <key>scale_height</key>\n"
+" <integer>480</integer>\n"
+" <key>scale_width</key>\n"
+" <integer>720</integer>\n"
+" <key>start_chapter</key>\n"
+" <integer>1</integer>\n"
+" <key>title</key>\n"
+" <string>none</string>\n"
+" <key>volume_label</key>\n"
+" <string>New Video</string>\n"
+" <key>x264_8x8dct</key>\n"
+" <false />\n"
+" <key>x264_analyse</key>\n"
+" <string>some</string>\n"
+" <key>x264_bframes</key>\n"
+" <integer>0</integer>\n"
+" <key>x264_bime</key>\n"
+" <false />\n"
+" <key>x264_bpyramid</key>\n"
+" <false />\n"
+" <key>x264_brdo</key>\n"
+" <false />\n"
+" <key>x264_cabac</key>\n"
+" <true />\n"
+" <key>x264_deblock_alpha</key>\n"
+" <integer>0</integer>\n"
+" <key>x264_deblock_beta</key>\n"
+" <integer>0</integer>\n"
+" <key>x264_direct</key>\n"
+" <string>spatial</string>\n"
+" <key>x264_me</key>\n"
+" <string>hex</string>\n"
+" <key>x264_merange</key>\n"
+" <integer>16</integer>\n"
+" <key>x264_mixed_refs</key>\n"
+" <false />\n"
+" <key>x264_no_dct_decimate</key>\n"
+" <false />\n"
+" <key>x264_no_fast_pskip</key>\n"
+" <false />\n"
+" <key>x264_refs</key>\n"
+" <integer>1</integer>\n"
+" <key>x264_subme</key>\n"
+" <integer>5</integer>\n"
+" <key>x264_trellis</key>\n"
+" <integer>0</integer>\n"
+" <key>x264_weighted_bframes</key>\n"
+" <false />\n"
+" <key>audio_list</key>\n"
+" <array>\n"
+" </array>\n"
+" </dict>\n"
+" <key>Preferences</key>\n"
+" <dict>\n"
+" <key>allow_tweaks</key>\n"
+" <false />\n"
+" <key>default_preset</key>\n"
+" <string>Normal</string>\n"
+" <key>default_source</key>\n"
+" <string>/dev/dvd</string>\n"
+" <key>destination_dir</key>\n"
+" <string></string>\n"
+" <key>hbfd</key>\n"
+" <false />\n"
+" <key>hbfd_feature</key>\n"
+" <false />\n"
+" <key>linear_vquality</key>\n"
+" <false />\n"
+" <key>nocheckvquality</key>\n"
+" <false />\n"
+" <key>noscale</key>\n"
+" <false />\n"
+" <key>show_presets</key>\n"
+" <true />\n"
+" <key>use_source_name</key>\n"
+" <true />\n"
+" <key>version</key>\n"
+" <string>0.1</string>\n"
+" </dict>\n"
+" <key>Presets</key>\n"
+" <dict>\n"
+" <key>anamorphic</key>\n"
+" <true />\n"
+" <key>autocrop</key>\n"
+" <true />\n"
+" <key>autoscale</key>\n"
+" <true />\n"
+" <key>chapter_markers</key>\n"
+" <true />\n"
+" <key>constant_rate_factor</key>\n"
+" <true />\n"
+" <key>container</key>\n"
+" <string>mp4</string>\n"
+" <key>deblock</key>\n"
+" <false />\n"
+" <key>decomb</key>\n"
+" <true />\n"
+" <key>deinterlace</key>\n"
+" <string>none</string>\n"
+" <key>denoise</key>\n"
+" <string>none</string>\n"
+" <key>detelecine</key>\n"
+" <true />\n"
+" <key>directqp</key>\n"
+" <false />\n"
+" <key>forced_subtitles</key>\n"
+" <true />\n"
+" <key>framerate</key>\n"
+" <string>source</string>\n"
+" <key>grayscale</key>\n"
+" <false />\n"
+" <key>http_optimize_mp4</key>\n"
+" <false />\n"
+" <key>ipod_file</key>\n"
+" <false />\n"
+" <key>keep_aspect</key>\n"
+" <true />\n"
+" <key>large_mp4</key>\n"
+" <false />\n"
+" <key>max_height</key>\n"
+" <integer>0</integer>\n"
+" <key>max_width</key>\n"
+" <integer>0</integer>\n"
+" <key>pref_audio_list</key>\n"
+" <array>\n"
+" <dict>\n"
+" <key>audio_bitrate</key>\n"
+" <string>192</string>\n"
+" <key>audio_codec</key>\n"
+" <string>ac3</string>\n"
+" <key>audio_drc</key>\n"
+" <real>1</real>\n"
+" <key>audio_mix</key>\n"
+" <string>dpl2</string>\n"
+" <key>audio_rate</key>\n"
+" <string>source</string>\n"
+" </dict>\n"
+" </array>\n"
+" <key>preset_description</key>\n"
+" <string></string>\n"
+" <key>preset_type</key>\n"
+" <integer>1</integer>\n"
+" <key>round_dimensions</key>\n"
+" <true />\n"
+" <key>source_audio_lang</key>\n"
+" <string>und</string>\n"
+" <key>subtitle_lang</key>\n"
+" <string>none</string>\n"
+" <key>turbo</key>\n"
+" <false />\n"
+" <key>tweak_deblock</key>\n"
+" <string></string>\n"
+" <key>tweak_decomb</key>\n"
+" <string></string>\n"
+" <key>tweak_detelecine</key>\n"
+" <string></string>\n"
+" <key>two_pass</key>\n"
+" <false />\n"
+" <key>variable_frame_rate</key>\n"
+" <true />\n"
+" <key>video_bitrate</key>\n"
+" <integer>1800</integer>\n"
+" <key>video_codec</key>\n"
+" <string>x264</string>\n"
+" <key>video_quality</key>\n"
+" <integer>64</integer>\n"
+" <key>video_target_size</key>\n"
+" <integer>700</integer>\n"
+" <key>vquality_type_bitrate</key>\n"
+" <false />\n"
+" <key>vquality_type_constant</key>\n"
+" <false />\n"
+" <key>vquality_type_target</key>\n"
+" <false />\n"
+" <key>x264_options</key>\n"
+" <string></string>\n"
+" </dict>\n"
+"</dict>\n"
+"</plist>\n"