summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.m
Commit message (Collapse)AuthorAgeFilesLines
* fix race in getting sequence_id of completed jobJohn Stebbins2018-08-071-1/+1
| | | | | | | | | The sequence_id was only available for the WORKING state and not the WORKDONE state. But frontends poll for status periodically and can miss all status updates for the WORKING state if the file is very short or an error occurs early during transcoding. When WORKING status is missed, there was no way to know the sequence_id associated with the WORKDONE status.
* MacGui: set the minimum deployment target to 10.10. Remove Growl and use ↵Damiano Galassi2018-06-081-3/+2
| | | | macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
* mac: Rename instances of cancelled to canceled.Bradley Sepos2017-12-051-2/+2
|
* MacGui: fix a wrong usage of CFData API, CFDataCreateMutable creates a a ↵Damiano Galassi2017-11-031-17/+21
| | | | CFData instance that can be filled up to the wanted capacity, but it doesn't set the CFData length to the capacity. Use CFDataSetLength to set the length. The original code doesn't work on 10.13.2 beta 1.
* MacGui: move the color space code out of HBCore.Damiano Galassi2017-08-311-176/+5
|
* MacGui: fix a small leak.Damiano Galassi2017-06-131-1/+2
|
* MacGui: call CVImageBufferCreateColorSpaceFromAttachments() to create the ↵Damiano Galassi2017-06-121-2/+79
| | | | preview image color spaces on 10.11 and newer.
* MacGui: improve management of security scoped resources. Fix external SRT in ↵Damiano Galassi2017-01-251-9/+5
| | | | the sandboxed build.
* MacGui: initial sandbox support. Added two new scheme RELEASE-SANDBOX and ↵Damiano Galassi2017-01-201-13/+41
| | | | DEBUG-SANDBOX to build HandBrake with sandbox enabled.
* MacGui: sleep prevention in HBCore should be on by default.Damiano Galassi2017-01-091-0/+1
|
* MacGui: add an option to disable HBCore automatic sleep prevention behaviour.Damiano Galassi2017-01-051-5/+35
|
* MacGui: [HBUtilities writeToActivityLog:] wants a c string, not a NSString.Damiano Galassi2017-01-011-1/+1
|
* MacGui: write the job preset name to the activity log.Damiano Galassi2017-01-011-0/+1
|
* MacGui: make possible to configure on which queue HBCore will call the ↵Damiano Galassi2016-12-301-7/+5
| | | | callback blocks.
* MacGui: do not use the raw block device path for bluray.Damiano Galassi2016-12-271-1/+1
|
* MacGui: use the right color profile for Bt 2020 primaries.Damiano Galassi2016-12-211-0/+8
| | | | Closes #401.
* MacGui: do not display pass info if pass_count is -1. Start the HBCore ↵Damiano Galassi2016-12-201-7/+8
| | | | update timer only after starting a scan/job.
* MacGui: set the appropriate colorspace for preview images, and use a gamma ↵Damiano Galassi2016-11-101-3/+41
| | | | value of ~1.96, same as Apple media frameworks.
* MacGui: use hb_preset_job_init instead of custom logic for audio, subtitles ↵Damiano Galassi2016-10-291-2/+2
| | | | and picture job settings.
* MacGui: use HB_ERROR_CANCELED status rather than tracking canceled in HBCoreDamiano Galassi2016-10-271-35/+22
|
* MacGui: show the encode progress when paused too.Damiano Galassi2016-05-241-1/+1
|
* Remove the CLI / LibHB Update Checker. It's been broken since we switched to ↵sr552016-03-121-1/+1
| | | | HTTPS and it's terrible code.
* MacGui: move the objc libhb wrapper to a separate framework.Damiano Galassi2016-03-111-1/+16
|
* MacGui: make HBCore titles ivar always non null.Damiano Galassi2016-02-261-2/+4
|
* MacGui: cosmetics.Damiano Galassi2016-01-211-1/+2
|
* MacGui: update the preview window to reflect the rotate filter state.Damiano Galassi2016-01-151-2/+63
|
* MacGui: disk -> disc, plus a bunch of NSLocalizedString.Damiano Galassi2016-01-141-4/+4
|
* MacGui: show a warning the first time a user try to scan a bluray directly too.Damiano Galassi2016-01-101-14/+18
|
* MacGui: add type parameter to some arrays.Damiano Galassi2015-10-241-1/+1
|
* MacGui: expose a property to set the log level in HBCore.Damiano Galassi2015-10-201-0/+8
|
* MacGui: add a way to differentiate a cancelled scan/encoded from a failed ↵Damiano Galassi2015-09-301-21/+12
| | | | scan/encode
* MacGui: read the actual preview count so we don't try to load a non existing ↵Damiano Galassi2015-09-291-0/+5
| | | | image
* MacGui: split HBTitle header to make it easier to test. Added some simple tests.ritsuka2015-06-011-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7256 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add a test target to the Xcode project, plus some simple test. Use a ↵ritsuka2015-05-201-0/+2
| | | | | | forward declaration instead of a #import to in HBJob to allow testing to work. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7214 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: run the Xcode "convert to modern objective-c" on the entire project.ritsuka2015-04-091-12/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7075 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix the error variable in canScan:error: , it was dereferenced one ↵ritsuka2015-03-191-2/+2
| | | | | | time too many. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7006 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: convert the mac gui to Objective-C ARC.ritsuka2015-03-171-15/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: properly deregister the job observers, and refactor a bit the ↵ritsuka2015-02-041-1/+1
| | | | | | 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: set the paused/working state immediately, so the pause toolbar item ↵ritsuka2015-01-281-0/+2
| | | | | | will be update correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6824 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: disable the cancel button while the queue is scanning because there ↵ritsuka2015-01-271-11/+4
| | | | | | 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-52/+136
| | | | | | 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-51/+78
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6799 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove the public hb_state property in HBCore, fix a bug in HBVideo ↵ritsuka2015-01-201-0/+3
| | | | | | and change some strings in the queue job's description. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6777 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: enable and fix more compiler warnings in the Xcode project.ritsuka2015-01-191-1/+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-13/+8
| | | | | | 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-84/+71
| | | | | | 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: 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
* Simplify frontend useage of hb_add()jstebbins2015-01-121-48/+1
| | | | | | | | | 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: use a smaller timer internal while scanning to make the UI more ↵ritsuka2015-01-111-5/+7
| | | | | | responsive. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6727 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: use NSURL where possible, replace a api call not available on 10.6.ritsuka2015-01-071-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6694 b64f7644-9d1e-0410-96f1-a4d463321fa5