summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* MacGui: Picture Filters separate hud inspector initial implementationdynaflash2009-01-261-59/+101
| | | | | | | | - Separates the filters out from the picture settings inspector into their own inspector in preparation for more advanced filters - Gingerbread is shaky but wanted to get the functionality into the svn due the the number of files modified or added. - Adds a toggle action to Picture Settings, Picture Filters and the activity window git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2099 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Organizes anamorphic parameters in a struct, requiring some minor search and ↵jbrjake2009-01-261-14/+14
| | | | | | replace changes in the interfaces. Folds the logic for strict anamorphic mode into hb_set_anamorphic_size() and also stakes out a new, more customizable mode 3. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2097 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the decomb string from the main window so decomb uses the ↵dynaflash2009-01-151-6/+5
| | | | | | | | libhb default - Now instead of reading out the parameters for Decomb the main window just shows On/Off git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2088 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Preview and Settings window interaction fixesdynaflash2009-01-141-2/+5
| | | | | | | - Putting the Preview Window into full screen mode no longer automatically opens up the Picture Settings inspector - Fixed the Picture Settings inspector so that it isn't on top of every f'ing window on your screen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2086 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui; save the expanded/collapsed state for folders in the presets drawer.ritsuka2009-01-141-0/+12
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2084 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: save the size of the presets drawer in the preferences.ritsuka2009-01-141-4/+11
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2083 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: no need to reload the chapters nstableview when loading a queue item.ritsuka2009-01-131-6/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2081 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Separate Picture Settings and Preview Window Initial Implementationdynaflash2009-01-121-12/+30
| | | | | | | | | | | | | | | | | | | | - Picture Settings is now a hud style inspector panel: -- Allows more room to be displayed along with Main Window. -- Has button (though ugly ... for now) to open the preview window. - Separate Preview Window: -- Preview Window can now show the entire preview content via a hud style overlay controller (ala iTunes, DvdPlayer controls) activated by mouse movement. -- Has button to allow opening the Picture Settings inspector. -- Full Screen Mode (ala iTunes, DvdPlayer) which should help for max preview size for HD sources. - Note: all hud style controls in this implementation are created only using core animation filters, I decided against a third party hud control framework, though one can certainly be implemented at any time. - Known Issues: -- WARNING: Quitting HB while in full screen mode will crash the macgui. -- The hud overlay controls in the Preview Window will align kind of wonky when the resolution is scaled way below the source. -- Ideally, after moving the mouse within the preview area then stopping, after a certain amount of time the hud overlay control box should disappear. -- Hud style controls still need alot of development to fit within the HIG. -- Need a keboard shortcut for the Preview Window. -- As usual with initial implementations there are likely many more Bugs/Issues. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2076 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: include the exact dylib name in the VLC check to pick up out of date ↵dynaflash2009-01-061-2/+2
| | | | | | | | versions of VLC - Update the no vlc window accordingly git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where switching formats causes the video encoder drop down ↵dynaflash2008-12-161-1/+13
| | | | | | to reset to the first selection, losing your previously chosen encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2034 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture window now uses a subclass of HBController to access the ↵dynaflash2008-12-151-5/+10
| | | | | | | | | main controller. - fixed issue where preview movie keeps playing even if the picture window is closed - Removed deprecated -ClosePanel method since we now use the windows native close button. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2033 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add to queue fix so that it not only checks that a file does not ↵dynaflash2008-12-121-11/+44
| | | | | | already exist at the destination path, but also check through the existing queue items and warn of an overwrite. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2022 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add "Picture Settings" toolbar item to main window toolbardynaflash2008-12-121-4/+23
| | | | | | | | - Currently uses the same icon as the picture item in the preferences toolbar - Performs same function as the "Picture Settings ..." button in the video tab which is to say it opens the picture settings window - Removed the "Picture Settings ..." button in the video tab git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2021 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add a preference so we can specify what we do at launch, choices are:dynaflash2008-12-121-5/+19
| | | | | | | | | - Do Nothing - Open Source - Open Source (Title Specific) - Pref defaults to Open Source git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2020 b64f7644-9d1e-0410-96f1-a4d463321fa5