cli: always keep display aspect unless using custom anamorphic mode


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6240 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: Implemented a configuration panel similar to the win/lin gui one for the subtitles defaults, and added some more options from the other guis (add all, remove all).
The SubtitleAddForeignAudioSubtitle setting will be added later after the automatic audio selection is done.
Fixed a bug where HandBrake used 50% of cpu time if the subtitles table view was selected.
Refactored a big part of HBSubtitlesController to make it works with the new automatic options and to cleaned the table view data source.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6241 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: add new function for retrieving previews

This new function has a couple advantages over the old one (which we
should phase out).

It does not require hb_job_t as a parameter, instead it uses hb_ui_geometry_t
which is a smaller and simpler struct. The entire job struct is overkill as
input to this function.

It returns an hb_image_t that fully describes the returned image instead of
just a uint8_t array. The caller does not have to make assumptions about image
size, line stide, or pixel format since hb_image_t specifies these things.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6242 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: use the new preview generation method hb_get_preview2.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6243 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: check if the image returned by hb_get_preview2 is null to avoid a crash. The preview window will try to show the number of previews selected in the preferences, but an already loaded title might not have enough preview images.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6244 b64f7644-9d1e-0410-96f1-a4d463321fa5
LinGui: protect against failure to get preview image


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6245 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: fix potential seg fault in hb_hexdump


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6246 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: add i-frame detection for mpeg4 ts/ps streams


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6247 b64f7644-9d1e-0410-96f1-a4d463321fa5
fix comment in isIframe()


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6248 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: use the native language if available in the subtitles table and languages selection table.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6249 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: fixed a memory leak.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6250 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: remove the DiskArbitration framework from the Xcode project and the MACOSX_DEPLOYMENT_TARGET setting.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6251 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: removed another duplicated method to get the Application Support path.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6252 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: added some tooltips to the subtitles defaults window and made the defaults buttons in the subtitles tab more visible.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6253 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: corrected the label alignment in the add preset window.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6254 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: upgrade more xib files to the latest version.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6255 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui:  Fix a styling issue on the preview window.  Disable libhb encode for the upcoming release so that users don't inadvertently turn it on.  Made the new preview window an optional setting, off by default as it's a Alpha feature. (See Preferences) 

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6256 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Force 2dp on Preview %

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6257 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: add drag & drop to rearrange languages in the subtitles default panel.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6258 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: set the import/export chapters buttons size to small in an effort to use the same button size in the whole app (and the mini size on Yosemite is hard to read)

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6259 b64f7644-9d1e-0410-96f1-a4d463321fa5