summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewGenerator.m
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: initial sandbox support. Added two new scheme RELEASE-SANDBOX and ↵Damiano Galassi2017-01-201-1/+2
| | | | DEBUG-SANDBOX to build HandBrake with sandbox enabled.
* MacGui: fix the "encoding (null)" string that was shown when encoding a preview.Damiano Galassi2016-03-261-0/+2
|
* MacGui: move the objc libhb wrapper to a separate framework.Damiano Galassi2016-03-111-10/+7
|
* MacGui: batch the preview updates so we don't reload the same preview ↵Damiano Galassi2016-01-151-1/+16
| | | | multiple times.
* MacGui: update the preview window to reflect the rotate filter state.Damiano Galassi2016-01-151-1/+3
|
* MacGui: use the new deinterlate preset keysDamiano Galassi2015-10-091-2/+1
|
* MacGui: add a way to differentiate a cancelled scan/encoded from a failed ↵Damiano Galassi2015-09-301-2/+2
| | | | scan/encode
* MacGui: read the actual preview count so we don't try to load a non existing ↵Damiano Galassi2015-09-291-1/+1
| | | | image
* MacGui: second part of the previous commitritsuka2015-08-061-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7392 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add nullability annotations to the headers and use weak where is ↵ritsuka2015-05-301-2/+2
| | | | | | possible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix deinterlace in preview window.ritsuka2015-05-141-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7187 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove che previews cache in HBPreviewGenerator when a setting ↵ritsuka2015-05-131-0/+4
| | | | | | changed and not in HBPreviewController git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7173 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: limit the preview images cache to ~ the size of 60 1080p images.ritsuka2015-05-121-4/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7171 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix scan progress bar.ritsuka2015-04-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7135 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add a new formatter to convert a hb_state_t to a textual representation.ritsuka2015-04-301-37/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7134 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: run the Xcode "convert to modern objective-c" on the entire project.ritsuka2015-04-091-6/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7075 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix live preview crash caused by the ARC conversion.ritsuka2015-03-171-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6999 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: clean up the preview controller, and fix the preview not updating ↵ritsuka2015-03-171-0/+5
| | | | | | when a new title is selected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6998 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: convert the mac gui to Objective-C ARC.ritsuka2015-03-171-24/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add a preference to toggle the log cleanup. Use NSURL directly where ↵ritsuka2015-02-211-11/+6
| | | | | | possible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6934 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: properly deregister the job observers, and refactor a bit the ↵ritsuka2015-02-041-0/+16
| | | | | | HBAudioTrack notification. Refactored HBPreviewController to take a single HBPreviewGenerator instance in input. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6869 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: disable the cancel button while the queue is scanning because there ↵ritsuka2015-01-271-2/+0
| | | | | | isn't a way to pause the scan. Use hb_state param.workdone.error to signal the result of an encode operation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6818 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add a method to return a CGImageRef for a preview in HBCore, and ↵ritsuka2015-01-261-87/+10
| | | | | | skip the alpha to use less memory. Use a dispatch_source as a timer in HBCore so we will be able to run the update loop on its own thread. Remove the pointer to hb_handle_t, no class outside HBCore uses it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6816 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: clean up HBCore, add a way to register a block as error handler.ritsuka2015-01-231-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6799 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: enable and fix more compiler warnings in the Xcode project.ritsuka2015-01-191-9/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6772 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove startProgressHandler:completationHandler: method in HBCore. ↵ritsuka2015-01-191-22/+17
| | | | | | Switched HBPreviewGenerator to encodeJob: . git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6771 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: moved the queue code from HBController to HBQueueController, ↵ritsuka2015-01-191-54/+40
| | | | | | reworked the way the queue synchronise itself between multiple instances to be more resilient (hopefully). Modified HBCore to take callback blocks instead of notifications. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6770 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: simplify the toolbar/menu validation methods, plus some cosmetics.ritsuka2015-01-141-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6748 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Move the audio/subtitles selection logic out of the view ↵ritsuka2015-01-131-0/+1
| | | | | | controllers. Now it's possible to create a HBJob and apply a preset to without the UI classes help. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6741 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: reorganize createMovieAsyncWithImageIndex:andDuration: method. and ↵ritsuka2015-01-131-32/+28
| | | | | | add an additional check before switching the preview window HUD. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6740 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Simplify frontend useage of hb_add()jstebbins2015-01-121-38/+0
| | | | | | | | | Modify hb_add() to automatically add all necessary passes, so hb_add() only needs to be called once per job. It now automatically adds subtitle scan and 2-pass encoding passes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6738 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: clean up headers and imports.ritsuka2014-12-271-1/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6661 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove the last usage of title->job.ritsuka2014-12-211-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6636 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: integrated HBPicture in HBPictureController and started to move ↵ritsuka2014-12-201-15/+22
| | | | | | things over to HBJob. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6628 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: add json APIsjstebbins2014-12-161-5/+6
| | | | | | | | | | There are several changes to job and title structs that break current windows interop code. The interop code should be changed such that it only uses json APIs. So if there is any missing features (or bugs) in these APIs, please let me know. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: improvement to the HBCore class, use it in HBPreviewGenerator. Added ↵ritsuka2014-11-291-107/+48
| | | | | | some classes to be used in the near future. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6566 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: when a live preview is cancelled, wait for libhb to end its work ↵ritsuka2014-09-191-0/+4
| | | | | | before reverting back the hud. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6418 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: removed another duplicated method to get the Application Support path.ritsuka2014-07-311-18/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6252 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: check if the image returned by hb_get_preview2 is null to avoid a ↵ritsuka2014-07-301-29/+34
| | | | | | 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
* MacGui: use the new preview generation method hb_get_preview2.ritsuka2014-07-291-42/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6243 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: make encoder options less x264-centric.Rodeo2014-02-131-11/+30
| | | | | | | | profile/level control and, to a lesser extent, encoder presets and tunes are becoming more common. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6031 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Release the cached images when the preview window is closed.ritsuka2013-12-031-2/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5912 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Refactor HBPreviewController. Rename the actual class to ↵ritsuka2013-11-041-0/+423
HBPreviewController, and move the image and video creation code to a separate HBPreviewGenerator class. Update the preview duration list as Rodeo suggested. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5874 b64f7644-9d1e-0410-96f1-a4d463321fa5