summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Implemented a configuration panel similar to the win/lin gui one for ↵ritsuka2014-07-291-22/+16
| | | | | | | | | | 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
* MacGui: moved two methods used by the whole app to HBUtilities.m:ritsuka2014-07-161-1/+2
| | | | | | | - appSupportPath: - writeToActivityLog: git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6232 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Varius warnings fixes:ritsuka2013-10-251-1/+3
| | | | | | | | | | - NSUInteger and NSInteger instead of int (where the Cocoa 64bit api uses them). - Cast to int when needed because NSInteger on 64bit is defined as long. - NSURL instead of NSString when possible. - Replaced some deprecated methods/functions. - numberWithInteger instead of numberWithInt. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5854 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fixed a number of leaks/null-deferences/dead-code found by clang ↵ritsuka2013-10-151-34/+46
| | | | | | static analyzer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5838 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: calculate the actual height of the queue rows. Align the interface ↵ritsuka2013-08-181-119/+13
| | | | | | elements a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5711 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: simplify queue display code.Rodeo2013-04-121-186/+29
| | | | | | | | | | | | | Add detailed summaries to the queue item dictionary and use them in HBQueueController. This helps remove a lot of duplicate logic. Uses existing methods pictureSettingsSummary, pictureFiltersSummary and new muxerOptionsSummary. Also add a few height rows for long lines that often wrap to a second row. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5398 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: don't mention grayscale twice in the queue display.Rodeo2013-04-121-5/+0
| | | | | | | | Since it's mentioned in the filter summary, we don't need to repeat it in the picture summary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5394 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update the in-app icons to the new graphicssr552013-03-181-8/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5342 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: more refactoring, bugfixes.Rodeo2013-01-021-44/+31
| | | | | | | | Apologies if anything breaks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5131 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Initial x264 presets implementation.dynaflash2013-01-011-5/+50
| | | | | | | | | - Note: HB Built-ins are not updated as needs more testing - Backwards compatible afaik for older presets including custom. - Queue Item editing function needs to be updated yet. - Preset import/ export will probably need work as well especially since some kvp's seem to still be up in the air. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5126 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fix stupid bug introduced in revision 4633.Rodeo2012-05-031-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4634 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: lots of stuff I forgot to to in revision 4627, plus a minor code ↵Rodeo2012-05-031-49/+50
| | | | | | cleanup. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4633 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix an issue where lavc options were shown and passed when Theora ↵dynaflash2012-02-191-1/+3
| | | | | | was chosen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4457 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add ffmpeg (lavc) advanced options text box to the advanced panel.dynaflash2012-02-091-1/+21
| | | | | | | - Fix a couple other traps for x264 opts as well. - Add lavcOption Key to the presets as per the LinGui to maintain preset parity. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add Auto Passthru support.Rodeo2012-01-241-4/+79
| | | | | | | | | | By default, all available passthru codecs are allowed, and the fallback is the AC3 encoder. Advanced settings can be enabled in Preferences > Audio, but are disabled by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4419 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: add "Fast" decomb option.Rodeo2011-12-081-1/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4374 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio Gain Control initial implementationdynaflash2011-05-261-3/+7
| | | | | | | | | | | | | | - Adds a Circular Slider to implement gain from a range of -5 to +15 which is sane by any reasonable measure. - Note: the circular slider with this range puts the default of 0.0 at the three o'clock position on the slider which is kind of wonky. Any ideas to make it more intuitive are welcome. -The accompanying text field readout is left editable so values beyond the sliders range can be specified manually. - Gain is disabled for any passthru options obviously. - Though it has been in cli and lingui for some time, as a note my tests show that anything above +15 can get distorted quite easily. Of course that is open to opinion depending on source, I have yet to see a complaint about the volume of encoded audio being too high but we leave up to -5 there just for the corner cases. - Any existing presets not specifying gain will use a gain of 0.0 which means of course its unmodified. - Also as a sidenote takes care of blindjimmy's patch https://reviews.handbrake.fr/r/99/ as far as /macosx/HBQueueController.m git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4000 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: change key for video framerate mode from VideoframerateMode to ↵dynaflash2011-04-281-2/+2
| | | | | | | | VideoFramerateMode to match the lingui. - Good catch Rodeo ... thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3967 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: implement Frame Rate Mode as per the Lingui.dynaflash2011-04-151-6/+6
| | | | | | | - Removes the current Peak Framerate checkbox and replaces it with appropriate Radio Buttons depending on if Same as Source or a specific framerate is chosen in the Frame Rate popup widget. - Gets the macgui up to speed with https://trac.handbrake.fr/changeset/3770 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3930 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Make the queue window's wording match that of the main window.dynaflash2011-03-311-2/+6
| | | | | | - Patch by Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3892 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio ... Allow more than 4 audio tracks.dynaflash2010-09-151-126/+42
| | | | | | | | | | | | | | - Patch courtesy of circleone ... Thanks! - Use a NSTableView to dynamically add/delete audio tracks ala the Subtitle tab. - Sets a 24 track limit until someone tests more than 24 tracks (the libhb 8 track limit was removed as per http://trac.handbrake.fr/changeset/3531). - Replaces the old static 4 tracks to a dynamic array. - Moves macgui audio handling to a separate class. Known caveats: - Borks queue editing which needs a revamp anyway. - Queue window display needs to be adjusted to show more than 4 tracks appropriately. Again, its cosmetic and is not a show stopper. - There may be other possible unknown side effects even though tested on all presets. That said, I feel it needs to get in so that we can get feedback from nightlies. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3532 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix how we get the current instances pid number since ↵dynaflash2010-07-191-2/+5
| | | | | | | | | | NSRunningApplication is a 10.6 only api and therefore breaks 10.5 compatibility (which also borked the nightly build). - Many thanks to ritsuka for pointing this out. - Also adds ability to get the full path to each running instance if we need it in the future. - Note: Adds additional logging to hbInstances which can be removed when we see fit. But for now imho could be useful since we are early in multi-instance queue encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3450 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Initial implementation of new queue sync code which allows ↵dynaflash2010-07-171-46/+46
| | | | | | | | | | | | | | | | | | multi-instance encoding. This allows more than one instances of HandBrake.app to run off of the same queue file. In the case of multi-instance use these changes occur in the queue window: - The delete icon for a given queue item does not exist in the queue window if another instance is doing the encoding. - The encoding icon does not spin if another instance is doing the encoding. - As before if the queue window is for the instance doing the encoding on that item it will be animated and "spins". - The queue window status readout now also includes the output file name for the file being encoded for that instance. Known bugs: - Drag and Drop queue reordering is somwehat borked. Doesn't corrupt queue but can not allow a drop in some instances. - I have tested this over 20 multi instance encodes and not once had an issue, but anytime more than one instance is writing to the same external file anything can happen. Beware! - The session activity log will of course be full of activity log info from all instances in a multi instance scenario. Individual encode logs are unaffected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Peak Framerate initial implementationdynaflash2010-06-181-0/+7
| | | | | | | | - Adds a checkbox below the fps drop down to allow selecting pfr as long as Same as Source is not selected. - Checkbox is shows and hides based on the fps dropdown. - Uses job->cfr = 2 instead of 1 to enable libhb's pfr mode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3390 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Adjustable picture modulus: Base patch by BradleyS, Thanks BradleyS!dynaflash2010-02-111-0/+2
| | | | | | | - Enables setting modulus for all anamorphic modes (including non-anamorphic) except strict. The job variable "anamorphic.modulus" is repurposed for this and is renamed to simply "modulus" - Other changes: Increases minimum output dimensions to 32x32 pixels in libhb (prevents possible crashes, notably in macgui). Better crop value and maximum crop value calculations to prevent crashes. Some code optimization / refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3113 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queued item editing initial implementation.dynaflash2010-01-211-4/+46
| | | | | | | | | - Sends a chosen queued item back to the main window for reload ( and rescan ) via contextual menu (right click) - Deletes queued item from queue after being reloaded to main window ( after editing or whatever, send back to queue via Add To Queue Button same as a new source). - New queue window contextual menu also includes delete and show options previously only available via separate icons. - Note: Needs testing particularly in the subtitle area, which is not to say there aren't other bugs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3080 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Interface changes to allow pts or frame based point to point ↵dynaflash2009-12-231-8/+19
| | | | | | encoding on top of our existing chapters based encoding. ... Based upon jstebbins most excellent work. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3042 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Make sure that drc is set to 0 by default (not just in the built in ↵dynaflash2009-11-051-4/+4
| | | | | | | | presets). Patch by Rodeo. - Update the queue readout to only display "Off" for drc when the drc is 0.0 instead of 1.0 ( our previous off ). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2915 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Filtersdynaflash2009-08-261-13/+13
| | | | | | | | - Re order NSPopupButton selections for Detelecine, Decomb, Deinterlace, and Denoise so the first three choices for each are ordered: Off, Custom, Default - Change so off is "Off" instead of "None" - NOTE: This *will* break any custom user presets that use these filters. You will need to recreate them. Built In Presets will be updated properly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2779 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: include deep scan ( subtitle foreign language search) pass ↵dynaflash2009-06-301-4/+9
| | | | | | | | information in both the queue window and on the progress bar for the deep scan pass. - Also removed one queue increment debug log line git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2650 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Display varying row heights based on the content of the encode. dynaflash2009-06-231-4/+110
| | | | | | | | - Accommodates varying numbers of subtitles and audio tracks as well as optional lines based on encode settings. - fixes issue where many audio tracks and subtitles can cause the bottom part of the expanded view to get cut off. - Note: seems to be a bit of extra padding especially when using many subtitles, may want to adjust that at some point. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2603 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Only display audio tracks with a valid track selected ↵dynaflash2009-06-161-17/+28
| | | | | | (removes the useless "None" tracks in the display). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2540 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Multiple subtitle tracks initial implementationdynaflash2009-06-131-0/+34
| | | | | | | | | | | | | | | | | | | | | - Subtitles now get their own tab - "None" track is an empty track, add a new subtitle track by switching it to a valid source track. - First track allows for "Foreign Language Search" which replaces the old "Auto Select". - Remove a previously selected track by setting it back to "None" - Sanity Checks: -- Allow only one Burned In track. -- Text tracks do not allow burned in to be set. -- MP4 specific: --- Allow only one VobSub and force burned in to be set. ---- Trying to set more than one vobsub in mp4 results in a warning, and the first vobsub track is retained. - Presets: Currently subtitles are not recorded into presets (which they never have been). - Live Preview: -- Foreign Language Search is borked for live preview, so is ignored -- Burned in subtitles work for both mp4 and mkv -- Text subtitles work for mp4 if set to default (preview has no way to turn soft subs on/off) -- Text subtitles do not show up in preview window even if checked as default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2530 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: ritsuka2009-03-021-15/+10
| | | | | | | | - Switched some float to CGFloat and int to NSInteger. - Fixed a warning in writeToActivityLog: when compiling with gcc-4.2 - Fixed an issue when dragging items in the queue if the item was not already selected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2199 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui; fixed warnings related to 64bit cocoa.ritsuka2009-03-011-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2183 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue -Stop animating currently encoding job icon when paused, ↵dynaflash2009-02-121-2/+8
| | | | | | restart animation upon resume. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2151 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Constant Quality Slider now QP/RF based.dynaflash2009-02-101-1/+1
| | | | | | | | | | | | | | | | | - Constant Quality Slider now uses QP/RF values instead of the long maligned % scale. - Nearest percentage is also shown for reference. -- For reference, PercentRFConversion on the wiki is a table of corresponding values for the old and new scales. - Slider changes scale base on the chosen encoder. -- x264: 0-51 -- FFmpeg and Xvid: 1-31 -- Theora: 0-63 - x264 Specific - Slider allows for fractional granularity (other encoders just whole ints). -- Advanced Preference to adjust the granularity from 1.0,0.50,0.33,0.25,0.20 with a default of 0.25. - Existing presets using the % based values converted to the nearest QP/RF value (within the granularity of the slider). -- Example: A current preset using x264 at 62% will now actually use 61.76% since the nearest RF value converted to 62% is 19.50 with the slider set to 0.25 granularity. -- New presets created will store the QP/RF value instead of the % value. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2135 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Video Filter and Picture Settingsdynaflash2009-02-061-16/+23
| | | | | | | | | | | - Changed picture settings and video filter display in the main window to three text fields (removed 24 outlets and text fields). Its a hoky layout right now, but I have a feeling the video tab will be changing. - Show actual cropping values in the main window as well as Auto/Custom - Show custom filter settings if used. - Removed redundant anamorphic calculation code. Its now accessed from each controller that needs it from preview controller - Fixed an issue where decomb from a previous preset would linger in a preset that did not have decomb specified. - Updated the queue display to show custom filter info if present. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2125 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Filters Inspector enhancementsdynaflash2009-02-041-17/+40
| | | | | | | | | | | | | - Add custom settings fields to Detelecine, Decomb, Deinterlace, and Denoise. - Add a two position slider to choose between Decomb and Deinterlace (can no longer run both in the macgui). - Update Presets, Queue, and Live Preview code accordingly. - Moved Grayscale to the Filters inspector and removed it from the main window. - Changed the style of the buttons on both the settings and filters inspectors to better fit in with HUD. Known Issues: - Resizing of the inspector to show/hide the custom fields is a touch ugly. - Setting the filter to "Custom" then not using a custom string, results in default from libhb, though should probably error trap against that actually. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2114 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Add the estimated bitrate to the queue display when ↵dynaflash2008-10-271-1/+1
| | | | | | displaying target size info. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1872 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Add drc info for the audio tracks thanks to NightStorm for ↵dynaflash2008-10-011-0/+37
| | | | | | bringing it to my attention. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1798 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue - Fix drag'n drop so that when dragging over an item, it ↵dynaflash2008-09-261-67/+33
| | | | | | | | | doesn't auto expand. - Also fix some really hosed up formatting - Remove the unused moveObjectsInQueueArray method from HBQueueController ( we moved that to Controller.mm back in 1703 but left it "just in case"). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1778 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Update labels for the mp4 options in both the main window and the ↵dynaflash2008-09-261-3/+3
| | | | | | | | | | | queue readout. - "64 Bit MP4" -> "Large file size" - "HTTP Optimized MP4" -> "Web optimized" - "Insert iPod Atom" -> "iPod 5G support" Less technical and hopefully more descriptive to the users (one of those rare instances where jbrjake prefers to be less technical) :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1768 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue display - fix display of deinterlace modesdynaflash2008-09-241-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1755 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: queue - add the file output name to the first title line in the ↵dynaflash2008-09-241-2/+24
| | | | | | | | | queue, and make the framerate chosen more descriptive. - Output names makes it easier to distinguish multiple encodes from the same source when the item is collapsed in the queue. - Include info on constant frame rate and vfr detelecine in the video section. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1754 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: update the deblock filter setting display in the queue.dynaflash2008-09-231-11/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1751 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Re-enable deleting encodes with the delete key if hilighted.dynaflash2008-09-221-1/+12
| | | | | | | - Currently one at a time, multiple selections are shut off for queue sync reasons . - Note: To delete a finished encode, click on it and hit your delete key ( since the action icon is an "open file in finder" magnifying glass) as this is the only way currently to delete a finished encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1744 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add encoding status readout to the queue windowdynaflash2008-09-221-0/+9
| | | | | | - is fed info from controller.mm instead of the old setup which had another NSTimer polling libhb just for the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1742 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: "Stop" command modificationsdynaflash2008-09-181-1/+2
| | | | | | | | | | | - Clicking on the "stop" icon in the toolbar now produces a different alert window with three choices - " Continue Encoding " default, just dismisses the window and continues on its merry way. - " Cancel Current and Stop " Cancels the current encode and stops the queue - " Cancel Current and Continue " Cancels the current encode and moves to the next pending encode (if there is one). - Also fixed an issue with deleting a canceled encode at the top of the queue list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1718 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue allow proper deleting of encoding queue items and proper ↵dynaflash2008-09-181-3/+49
| | | | | | deleting of previously cancelled items. Also fixed Pause. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1716 b64f7644-9d1e-0410-96f1-a4d463321fa5