summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGUI: Renamed Controller.mm to Controller.m, changed the default std to C99.ritsuka2009-08-291-7519/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2789 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Filtersdynaflash2009-08-261-66/+71
| | | | | | | | - 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: srt subtitle support initial implementationdynaflash2009-07-161-0/+84
| | | | | | | | | - Allows adding an external srt sub file as a subtitle source. -- Adds fields for srt language, char code and offset in ms. - Known issues: adding the srt file to the sources list also adds a new subtitle track for that source, however to "set" it you have to click on it. - srt subtitles do not seem to work in preview even if set to default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2699 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: include deep scan ( subtitle foreign language search) pass ↵dynaflash2009-06-301-2/+18
| | | | | | | | 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: Fix the quality slider setting when using presets for ffmpeg and theora.dynaflash2009-06-241-1/+10
| | | | | | | | - Fix issue where ffmpeg's presets were 2.0 low on the slider. - Fix theora presets to recognize that the slider is not "inverted" (qp value go higher as quality increases). -Tested all tree encoders to verify that value saved in preset is reset in gui and reported correctly by libhb. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2614 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preview - Add the foreign language search for subtitles scan to the ↵dynaflash2009-06-231-2/+6
| | | | | | | | live preview. - Note: Its very possible that we are getting a full title scan for the foreign language search due to the observed time of the scan during the preview encode. Further testing probably necessary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2609 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fix 64-bit icon to be used during dock-icon progress bar updates.konablend2009-06-181-8/+3
| | | | | | | - also prevents icon from getting trumped back to 32-bit after encode completes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2566 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix creating new user presets which was borked in rev 2530.dynaflash2009-06-171-3/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2557 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: added 64-bit savvy application icon.konablend2009-06-171-2/+22
| | | | | | | | - icon is chosen based on compile-time architecture: HandBrake.icns or HandBrake-64.icns - added action for MainMenu->About to call Controller.showAboutPanel as the default about panel needs dictionary override to force icon. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2547 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix subtitle issuesdynaflash2009-06-151-16/+8
| | | | | | | - fix crash if only closed captions are selected (thanks van). - set RENDERSUB when burned is selected for foreign audio search (thanks j45) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2536 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Multiple subtitle tracks initial implementationdynaflash2009-06-131-108/+295
| | | | | | | | | | | | | | | | | | | | | - 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
* softsubtitles:jstebbins2009-06-021-2/+2
| | | | | | | | | | | | | | | | | | - when doing an indepth scan, do not scan CC tracks - separate subtitle configureation attributes into separate hb_subtitle_config_t. Add an instance of this to hb_job_t for setting the attributes of the subtitle found through an indepth scan - Add a default_track flag to hb_subtitle_config_t that tells the muxer that the track should be flaged as the default. muxmkv uses this. - When an indepth scan is complete, check to see if the autoselected subtitle matchces (by id) one of the manually selected subtitles. If a match is found, the autoselected subtitle with all the attributes the user assigned to it replaces the manually selected subtitle. - LinGui: Add "Default" column to subtitle tab. This is a radio that lets the user choose which subtitle should be displayed by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2468 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add Toolbar Item for Preview Windowdynaflash2009-05-291-3/+20
| | | | | | | - Note this icon already existed in /macosx/icons/. - Definitely not a final icon, but rather probably a placeholder so we could get the toolbar complete. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2463 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add Preference to use CoreAudio in place of FAAC when choosing a preset.dynaflash2009-05-291-0/+37
| | | | | | | | - Defaulted to "On". - Effectively allows the macgui to use core audio by default while maintaining the cross platform faac encoder in the built in preset's internally. - Also means that one can manually choose faac after selecting a preset if so desired. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2460 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Store the PresetBuildNumber value as an int instead of a string in ↵dynaflash2009-05-261-1/+1
| | | | | | the presets plist. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2452 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Excises xvid from libhb because it's not worthy. Having two different MPEG-4 ↵jbrjake2009-05-261-3/+2
| | | | | | | | | Part 2 encoders is superfluous and when choosing between ffmpeg and xvid, xvid is the clear loser since we need to keep ffmpeg around for other functions and xvid constantly requires attention to ensure it compiles. MacGui: Removes some stray references to the codec and unlinks it from the Xcode project. CLI: Removes references to the codec and removes it as a dependency. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2448 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Add CoreAudio AAC as one of the encoder on Mac OS X.ritsuka2009-05-231-4/+26
| | | | | | | - Remove hb_init() and hb_init_express() macro. Rename hb_init_real() to hb_init() - Add two more bitrate combination for audio codecs in common.h git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2441 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mkv soft subtitle supportjstebbins2009-05-191-4/+4
| | | | | | | | | | | | | - new libmkv 0.6.4 with subtitle track support - muxmkv supports vobsub and closed caption subtitles - added subtitle format, source, and dest initialization to dvdnav - moved subtitle_force flag into hb_subtitle_t struct as it needs to be settable per subtitle - gtk ui added subtitle tab which allows selection of multiple subtitles - reorgainize subtitle sync code to prevent dropping of subtitles when multiple subtitles are enabled git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2428 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement DTS Pass Thru for MKV and DTS Sources.dynaflash2009-05-121-8/+47
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2413 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Preset Import / Export initial implementation and auto updating of ↵dynaflash2009-05-081-5/+178
| | | | | | | | | | | | | | | | | | | built in presets. - Preset Import / Export: -- Export is only available to custom user presets. -- Export is only the selected preset at this time. -- Exported presets will be tagged with their build number. -- Import of mutiple presets. --- Compatible with LinGui presets. --- NOT compatible with WinGui presets at this time. - Built-In preset auto-updating: -- Adds the key/value pair to the UserPresets.plist file for key "PresetBuildNumber". -- If the HandBrake.app build number as defined in the Info.plist key "CFBundleVersion" is > the built in presets "PresetBuildNumber" then the - (IBAction)addFactoryPresets:(id)sender is called to automagically update the built in presets. -- An alert window is shown along with a system beep ( can be turned off in Preferences -> Advanced for svn mavens and devs) to tell the user that the built in presets are going to be updated. -- NOTE: First launch of this build will initiate a built in preset update even though the built in presets are the same, since the build number will be added to the built in presets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2405 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Change new preset code to use AudioList for storing the audio track ↵dynaflash2009-05-071-135/+235
| | | | | | | | | information as per the lingui. - This does *not* change existing presets, only affects any new presets created. - Results in the macgui and lingui being in sync in terms of preset.plist structure git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2397 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: disable and deselect chapter markers when only one chapter is being ↵dynaflash2009-05-051-2/+24
| | | | | | encoded, whether it be a single chapter title or user specified chapter. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2386 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Stage 1 Soft Subtitle Support - Allow multiple subtitle tracks to be ↵eddyg2009-05-041-11/+48
| | | | | | selected, and mark them for Render or Pass Through. No functional difference from the UIs, however in theory they could render multiple tracks - would be a dogs breakfast on screen though, and is untested. Have tested all normal operations from the UIs, including scanning. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2373 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add an "Attempt Scan Anyway" option to the 64-bit physical dvd scan ↵dynaflash2009-05-011-1/+14
| | | | | | | | warning. - Allows reading of un-encrypted physical dvd's. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2365 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Custom Anamorphic initial implementation (experimental) and pic ↵dynaflash2009-05-011-6/+28
| | | | | | | | | | | | | | | | | | | | | settings and preview changes. - Custom Anamorphic mode allows more customization of pixel and display dimensions. -- NOTE: The layout and even functionality are considered very experimental and not ready for prime time yet. -- Change to hb_get_preview allowing a preview size > title->width and height courtesy of jbjake. -- Allows setting the modulus to 16 (default), 8, 4, 2, or 1. -- Adds display height, pixel width and pixel height fields. - Picture Inspector: -- Changes shape and size according to the size/filter tab and anamorphic and filter settings. - Picture Preview: -- Now crops the gray borders from around the image returned from hb_get_preview and recreates cropping and resizing itself. -- Add size and scale information to the preview window title bar so you can see it without activating the hud controls. -- Attempt to fix the intermittent aliasing problem with the hud control overlay by making sure the hud origin is a whole int (fix courtesy of KonaB1end). - Known Issues: -- Scale to Screen mode is currently borked. The actual image does not scale yet. -- Depending on how far you upscale the display dimensions in custom anamorphic, the preview image can get a bit wonky. Returning to one of the standard modes clears it up. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2362 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add libdvdnav supportjstebbins2009-04-271-3/+32
| | | | | | | | | | | emulates the vm of a dvd player in order to navigate the disc more reliably it is optional and disabled by default CLI option '--dvdnav' enables. GUI's have a new option in preferences. When dvdnav is enabled, you can also select angles (cli '--angle') git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2355 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Put AVI, OGM and Xvid out of our miserydynaflash2009-04-101-27/+2
| | | | | | - Note: renders custom presets using these obsolete (not an issue for built in presets as none have ever used them for good reason). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2316 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: When launching a second instance of HB, warn of existing instance ↵dynaflash2009-03-161-17/+60
| | | | | | | | and do not alter the existing queue. - Note: this does not mean multi-instance encoding off of one queue file works. For now its just better than messing up the first instances queue. Also useful for ui developing on one instance sans encoding while actually encoding with another instance. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2261 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: setUsesThreadedAnimation to false for the progress indicators in the ↵dynaflash2009-03-131-3/+5
| | | | | | | | main window for 32 bit as well as 64 bit. also for fMovieCreationProgressIndicator in th preview window. - For live preview this fixes an issue where the qtmovieview controller was not in focus. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2259 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: set "setUsesThreadedAnimation" to false for the two main window ↵dynaflash2009-03-121-35/+49
| | | | | | | | | | | | progress indicators for 64 bit builds. - Fix by jbrjake. - Fixes an issue where clicking on the advanced tab renders the progress indicators inanimate and the rest of the ui sluggish. - jbrjake found a note in the 10.5 dev notes regarding this possiblility. It was also noted that unless specified, setUsesThreadedAnimation defaults to true. - Also there is a mention in the documentation that "... creating a thread just for the progress indicator can actually slow down your application." for NSProgressIndicator though no mention of 64 bit builds specifically. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2258 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Reverted the updateUI: timer mode to NSDefaultRunLoopMode. Hopefully ↵ritsuka2009-03-071-1/+1
| | | | | | this will fix the ui weird behavior on x86_64 (progress bar lockup, interface slowdown, etc) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2236 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Disable physical dvd access for 64 bit arches with an appropriate ↵dynaflash2009-03-061-12/+25
| | | | | | | | | warning since vlc is not 64 bit. - Still allows access to dvd's mounted with Fairmount. - Tested both intel and ppc git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2234 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Put Picture Settings and Video Filters into one inspector.dynaflash2009-03-051-106/+90
| | | | | | | | - Separated in a tab view - Move methods from PictureFilterController into PictureController - NOTE: This layout, etc is not final as far as detail by any means, however ... did not want to get too far out from svn due to the mods to xcode and the current development of the build system. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2226 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Report the svn version and arch in the session activity log and the ↵dynaflash2009-03-031-1/+1
| | | | | | | | individual encode log. - ie. [11:25:22] macgui: Handbrake Version: svn2207 x86_64 (2009030301) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2209 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: ritsuka2009-03-021-3/+3
| | | | | | | | - 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: Removed some unused call to fProgressIndicator that may break the ↵ritsuka2009-03-021-8/+1
| | | | | | progresso bar. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2198 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui:ritsuka2009-03-021-6/+13
| | | | | | | | - Limited the handbrake dock icon refresh to a maximum of 20 for encode. It was a bit pointless to update it two times a second. - Another try at fixing the main window progress indicator. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2196 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix main window progress indicators for scan and encode for x86_64dynaflash2009-03-021-2/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2194 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui; fixed warnings related to 64bit cocoa.ritsuka2009-03-011-48/+44
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2183 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix crash when trying to quit with preview in full screen mode.dynaflash2009-02-131-4/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2155 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Constant Quality slider, fix percentage readouts for ffmpeg, xvid ↵dynaflash2009-02-111-3/+4
| | | | | | and theora. Thanks J45. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2145 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Constant Quality Slider - theora's qp goes up as the quality goes up.dynaflash2009-02-111-19/+28
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2139 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Constant Quality Slider now QP/RF based.dynaflash2009-02-101-9/+93
| | | | | | | | | | | | | | | | | - 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: Implement DRC 0.0. dynaflash2009-02-061-0/+8
| | | | | | | -Though the default is set to 0.0 in the xib, any user presets ( including built in's) will set to the previous minimum of 1.0 or higher. - Since there is nothing to set between 0.0 and 1.0 the slider is set to jump to 1.0 as soon as you go above 0.0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2126 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Video Filter and Picture Settingsdynaflash2009-02-061-154/+58
| | | | | | | | | | | - 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: Add preset code for custom filter fieldsdynaflash2009-02-051-31/+49
| | | | | | - If an old preset uses both decomb and deinterlace, decomb will be used and deinterlace will be ignored. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2117 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Filters Inspector enhancementsdynaflash2009-02-041-111/+241
| | | | | | | | | | | | | - 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: Live Preview Fixesdynaflash2009-01-281-49/+3
| | | | | | | | - Fixes and Issue where using chapter markers on ffmpeg input sources caused a crash and or no encode and a gray screen. - Fixes an issue where not manually selecting a still preview caused the live preview encode to crash. - Many thanks to refulgentis for troubleshooting this for me. :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2104 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where selecting a preset selects the right widget settings ↵dynaflash2009-01-271-1/+1
| | | | | | | | in the Filters inspector. - Duh. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2102 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remember window postion and open/close state of the Picture Filter ↵dynaflash2009-01-271-12/+19
| | | | | | and Picture sizing inspectors and restore them at the next launch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2101 b64f7644-9d1e-0410-96f1-a4d463321fa5