MacGui: separate the video settings logic from the view controller. There are a number of small regression ("Custom" preset and auto naming not updating) that will be fixed in the next commits.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6606 b64f7644-9d1e-0410-96f1-a4d463321fa5
json: fix building with --enable-hwd


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6607 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Update the libhb scan code to work with the updated API. See rev6602 for API changes.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6608 b64f7644-9d1e-0410-96f1-a4d463321fa5
json: add hb_get_preview_json

No idea if it actually works as advertised.  Probably not ;)
Returns a json representation of an hb_image_t with the data
encoded in base64.

Also, fix a bug in hb_set_anamorphic_size_json that probably would have
cause it to just fail.

And fix a couple of memory leaks.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6609 b64f7644-9d1e-0410-96f1-a4d463321fa5
json: fix memory leak in hb_get_preview_json

forgot to call hb_image_close on the image


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6610 b64f7644-9d1e-0410-96f1-a4d463321fa5
json: fix plane size in hb_get_preview_image_json
The actual size of the base64 encoded data is the length of the string


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6611 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: make hb_get_preview2 always return a valid image
When we fail to read the preview image, create a blank image


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6612 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: add hb_image_init to create blank images


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6613 b64f7644-9d1e-0410-96f1-a4d463321fa5
json: fix hb_get_preview_json
and add some routines for json conversion of preview parameters and images


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6614 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: fix frame rate when loading a queue item.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6615 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: add a "name" property to HBCore to easy debugging multiple instances. Add a missing retain to the titles property.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6616 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: remove a unused ivar in HBController.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6617 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: use the right string format specifier in HBCore.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6618 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: use title->list_chapter directly instead of title->job->list_chapter.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6619 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: QuickFix for a crash, will resolve properly later.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6620 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Refactor the scan model namespace in preparation for json api impl

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6621 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Switch to using the new JSON based scan API.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6622 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix a bug in the anamorphic size code.

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