WinGui: Fix the Automatic Auto selection when a preset is selected. Honour the preset using the primary track, then follow the rules of the automatic selection.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5774 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Add System Information to the About Window and Log header.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5775 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: unbreak probe_dts_profile
When doing codec probes, the title hasn't been set yet.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5776 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove system info from about window.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5777 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove some unused References 

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5778 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix the Audio Track selection again.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5779 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: use git diff formatting for the QSV/Libav patch.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5780 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove the AV_MP4 option so we now only have the AV Format Muxer as "MP4 File".   The AV_MKV option will be removed at a later date.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5781 b64f7644-9d1e-0410-96f1-a4d463321fa5
Interop: Various fixes/improvements
* Exposed container list and changing compatible containers from an enum to an int to allow pulling the container list dynamically.
* Removed a few unused and out-of-date functions and structs.
* Updated a few structs to better track with the QSV changes.
* Added a method to create a pointer to a UTF-8 encoded string.
* Dither now is chosen automatically rather than turned off, which helps with FDK AAC.
* Fixed unicode custom chapter names.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5782 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: minor refactoring.

Address the easy issues first.

Apologies if I broke HandBrakeInterop.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5783 b64f7644-9d1e-0410-96f1-a4d463321fa5
QSV: adjust trellis logging when B- or P-frames are disabled.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5784 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove the option to disable libhb features as it's now vital to have this dll present.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5785 b64f7644-9d1e-0410-96f1-a4d463321fa5
Interop: Removed unused structs and constants and added warnings in libhb code to update the ones that are used. Broke out types for each struct into their own file. Switched all references to hb_handle_s to IntPtr and deleted that non-working struct.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5786 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: fix scanning some dvds
e.g. star trek into darkness

This reverts part of a patch that was originally written for dvdread
access.  So we need to watch for regressions.

The patch was originally written for dvdread access and my not actually be
a bug in dvdnav.  So I have reverted it in dvdnav only. I also tried to 
reproduce the original bug in dvdread, but was unsuccessful. So I'm
wondering if the original bug also got "fixed" by subsequent changes.

The original bug report is here:
https://forum.handbrake.fr/viewtopic.php?f=4&t=9758&start=0

The original fix is here:
https://trac.handbrake.fr/changeset/2256


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5787 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: fix compil<tion with clang.

Implementing a protocol is not enough, we need to actually tell the compiler that we are doing it.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5788 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove the scan service wrapper as it's no longer needed.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5789 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix up libhb encode feature.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5790 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Remove now unneeded debug menu

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5791 b64f7644-9d1e-0410-96f1-a4d463321fa5
Merging-in the OpenCL Scaling code from the OpenCL branch to trunk. 
Patch originally by the Multicoreware Inc team, followed by improvements and fixes by Micheal Wootton from AMD Inc,

OpenCL:
This patch implements Bicubic Scaling in OpenCL.  
Note that HandBrake currently uses Lanczos so the performance difference appears to be much more significant. We may offer an option of BiCubic in software later.
Bicubic scaling may appear a bit sharper than the equivalent Lanczos encode and may increase file size a bit. Quality may be better or worse depending on the scaling and content and personal preference towards sharpness.
When comparing performance with a custom HandBrake build that runs Software Bicubic to OpenCL Bicubic, performance increase is about 5~7% on average on a modern GPU.


Hardware Decode via DXVA:
We also have optional DXVA decoding which may come in useful for slower/lower end systems that have a capable GPU.
This is only available on input sources that use the libav decode path.
Most GPU hardware for decoding is designed for playback, so if you are running on a high end CPU, it will bottleneck the encode process.

Requires OpenCL 1.1 or later supporting GPU.

Front end changes and testing framework are not included in this patch. This will be resolved later.

Patch will be revised further before the UI is implemented.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5792 b64f7644-9d1e-0410-96f1-a4d463321fa5
Tidyup a warning in oclscale.c

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