summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Fix crash when trying to quit with preview in full screen mode.dynaflash2009-02-131-0/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2155 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Video Filter and Picture Settingsdynaflash2009-02-061-2/+8
| | | | | | | | | | | - 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: remember window postion and open/close state of the Picture Filter ↵dynaflash2009-01-271-1/+6
| | | | | | 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-119/+51
| | | | | | | | - 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-4/+4
| | | | | | 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: Preview Window scale to screen initial implementationdynaflash2009-01-211-3/+1
| | | | | | | | - Allows scaling the preview to fit the screen when in full screen mode. - Also hopefully fixes a bug where multiple cycles of windowed and full screen cause the hud overlay to not appear. - hud overlay delay timer changed from 20 to 10 seconds git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2091 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Preview and Settings window interaction fixesdynaflash2009-01-141-4/+8
| | | | | | | - 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: Separate Picture Settings and Preview Window Initial Implementationdynaflash2009-01-121-760/+44
| | | | | | | | | | | | | | | | | | | | - 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: Picture window now uses a subclass of HBController to access the ↵dynaflash2008-12-151-18/+44
| | | | | | | | | 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: Live Preview fixesdynaflash2008-12-051-1/+14
| | | | | | | - Fix proper sizing when max source size and loose anamorphic is selected in presets - Fix vertical alignment issue when the move height is >= the still preview height. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2011 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove custome decomb option from preferences and Picture Settingsdynaflash2008-11-301-8/+2
| | | | | | | - Remove the text field to enter a custom decomb string in the Preferences > Picture window - Change the NSPopup for decomb to a checkbox in Picture Settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1975 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement variable number of preview framesdynaflash2008-11-301-0/+9
| | | | | | | - Set in Preferences -> Advanced and defaulted to 10 - Allows for up to 20 previews per title for now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1972 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix live preview window so that changes in the preview window are ↵dynaflash2008-11-241-2/+9
| | | | | | reflected in the main window in real time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1952 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Live Preview Initial Implementationdynaflash2008-11-241-26/+383
| | | | | | | | | | | | | | - Uses a separate instance of libhb called fPreviewLibhb to do the preview encode. Bypasses the queueing system so you can encode a live preview on one source while encoding another. - All facets of the encode are replicated (including but not limited to audio tracks, subtitles and picture filters) *except* 2 pass. For speed's sake we only do one pass which should be more than sufficient for a 6 to 60 second preview. - Live Preview clips are stored in "~/Library/Application Support/HandBrake/Previews/" and remain until a new preview is called for of the same format in which case the old version of "mymovie.mkv" would be replaced with a current version called "mymovie.mkv". - Uses QTMovieView and QTMovieKit to show 5 - 60 seconds in 5 second increments (determined by a user set NSPopUpButton) of a live preview from the starting point of any of the existing 10 still previews. - Preview window is now non-modal so can be kept open to see the effect of changing presets, etc. - Next and Previous buttons replaced with a 10 position slider - Live Preview is shown same as users QuickTime implementation would show it. ie. without Perian installed, mkv's will not play back, etc. - Uses QT's stock controller bar with volume, scrubber and single frame advance buttons. - Known Issues: Movie alignment against the still preview considering the additional height of the movie controller bar. Particularly using loose anamorphic. I am sure there are others. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1951 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where proper width was not observed in preview image when ↵dynaflash2008-11-181-6/+7
| | | | | | using loose anamorphic. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1926 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Loose Anamorphic - Upon initial selection set the width to the ↵dynaflash2008-09-251-0/+8
| | | | | | source storage width. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1760 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the VFR checkbox in the Picture Settings window.dynaflash2008-09-241-22/+2
| | | | | | | - Use vfr if the framerate popup is "Same as source" and Detelecine is checked in Picture Settings. - Otherwise framerate works as in the past. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1752 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: implement a slider for deblock.dynaflash2008-09-231-1/+22
| | | | | | | | - Slider goes from "Off" and then ranges from 5-15. - Update preset code to handle the old bool for deblock where we convert "yes" to a value of 5. - Note: though the deblock filter actually has a setting of 0, for the macgui we use an integer of 0, which shows up in the interface as "Off" to indicate not to load the filter at all. Made presets etc, easier to modify. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1750 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: - Fixed loose anamorphic preview (still not perfect)ritsuka2008-07-301-47/+48
| | | | | | | | - Replaced float with CGFloat for future cocoa 64bit compatibility - Fixed switching between automatic and custom cropping (the preview sometimes wasn't updated) - Fixed a crash when the job width and height were larger than the title's one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1594 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fixed the flying picture sheet, removed the last references to the ↵ritsuka2008-07-261-5/+8
| | | | | | opengl view. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1583 b64f7644-9d1e-0410-96f1-a4d463321fa5
* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1471 ↵jbrjake2008-05-291-1/+17
| | | | b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Make PictureController a subclass of NSWindowController. Patch by ↵ritsuka2008-05-111-25/+23
| | | | | | blindjimmy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1457 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: replace handbrake.m0k.org references with handbrake.fr in the entire ↵dynaflash2008-04-151-1/+1
| | | | | | macosx/ directory git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1419 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Mcdeint is broken, so avoid using it as a deinterlacer. No more "Slowest," ↵jbrjake2008-02-161-1/+0
| | | | | | "Slow" becomes yadif without spatial checks, "Slower" becomes yadif with spatial checks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1269 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix funky preview image colors in the Picture Preview window on PPC, ↵dynaflash2008-01-171-0/+8
| | | | | | introduced with the NSImage implementation (rev 1189) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1206 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Switch PicturePreview to use NSImageView instead of the openGL view.dynaflash2008-01-121-89/+190
| | | | | | | - thanks travistex - uses a new method makeImageForPicture which gets the previews into an NS image. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1189 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where presets were not applying their filters properly the ↵dynaflash2008-01-101-3/+7
| | | | | | picture preview window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1183 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Loose Anamorphic initial implementationdynaflash2008-01-031-69/+129
| | | | | | | | | | - Changes the PAR checkbox to an anamorphic NSPopUp Button with "None", "Strict", and "Loose". - Sanity checks against the ffmpeg encoder, until that gets fixed. - removed six unneeded outlets for picture sizing in Controller.mm. - Previous presets will gracefully degrade to us "Strict" if anamorphic is specified. - I know about the bug where the picture window changes size on the first width drop when resizing Loose Anamorphic, so dont ask ;) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1161 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Maintain Picture Filters state across sourcesdynaflash2007-12-261-20/+22
| | | | | | | - Picture filters no longer reset to their defaults when a new source is chosen (includes vfr as well setEnabled to the fps drop down in the main window). - Added a new method -setInitialPictureFilters to PictureController.m to setup the filters upon first scan instead of in -SetTitle which reset them every time a new title was accessed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1148 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: VFR controls initial implementationdynaflash2007-11-101-0/+20
| | | | | | | | | - Adds a vfr checkbox next to the detelecine filter in the Picture Settings Window - Tuns on detelecine and disables its checkbox - Sets Framerate in the main window to 29.967 and disables it - Sets job->vfr = 1 if vfr is checked in -prepareJob git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1052 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Added Deblock to filters in Picture Preview Windowdynaflash2007-11-071-0/+11
| | | | | | - Currently uses a checkbox that enables pp7 (default settings) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1046 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the sanity check for 23.976 framerate and detelecinedynaflash2007-10-091-13/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1015 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Keep track of the state of the keep aspect ratio checkbox when ↵dynaflash2007-09-191-10/+21
| | | | | | | | | turning on anamorphic so it can be changed back to its previous state when anamorphic is turned off. - Allows for easier comparison of anamorphic vs. non anamorphic. - Good idea jbrjake git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@975 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Auto resize picture window to reflect proper anamorphic size in the ↵dynaflash2007-09-181-33/+51
| | | | | | | | Picture Preview. - Once again, credit goes to blindjimmy! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@970 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Scale > 720 or > 480 Picture Previews and the Picture Settings ↵dynaflash2007-09-161-9/+134
| | | | | | | | | | | window to fit to screen. - Perfect for HD transport streams or any HD source - If source width is > 720 or source height is > 480, the Picture Settings window will scale appropriately to 85% of either the users screen height or width, whichever it runs into first. - The scaled size for the preview is displayed in the Picture settings detail at the bottom as a percentage. - Thanks blindjimmy !! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@965 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix deinterlace setting for the Picture Preview window which as ↵dynaflash2007-09-111-0/+12
| | | | | | broken in rev 936 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@952 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fixed a memory leak in picturecontroller.mm added in #936ritsuka2007-09-111-2/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@948 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fixed main window not showing updated filters settings after closing ↵ritsuka2007-09-091-1/+12
| | | | | | | | the picture window. HandBrake gui is updated even when the user is pressing a button or a menu. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@940 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: ritsuka2007-09-081-4/+2
| | | | | | | | - Better menu item validation - Sheets no long disable every existing menu item - Added a check for preset name length when adding a new preset git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@939 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui:ritsuka2007-09-081-91/+122
| | | | | | | | | | - Move Picture Settings window in a new nib - Cleanup main window nib, delete some useless hidden NSTextfField - Change "Queue" menu item keyboard shortctus to cmd-2 - Add cmd-? keyboard shortcuts to "HandBrake User Guide" menu item - HandBrake main windows is now shown if the dock icon is clicked and there is no open window git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@936 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: Jack the min pic limits on picturecontroller up to 64 to prevent ↵dynaflash2007-09-011-3/+3
| | | | | | crashing on encodes that are too small git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@917 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix Picture Preview crash when sizing below 16 pixels width or height.dynaflash2007-08-291-2/+10
| | | | | | | | - Set width and height stepper minimums to 32 px - use sanity conditional for accessing hb_get_preview() so below 32 px either way the preview does not change - Used 32 threshold since afaik, no human being can discern any meaningful detail from a 32 px image anyway git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@892 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Denoise filter initial implementationdynaflash2007-08-141-4/+13
| | | | | | | - Add Denoise NSPopUp to Picture Window - Contains None, Weak, Medium, Strong. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@805 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Detelecine initial implementationdynaflash2007-08-131-0/+35
| | | | | | | - Added -VideoFramerateChanged method to controller.mm to detect NTSC Film content to error check detelecine. - Auto detected or manually choosing 23.967 (NTSC Film) disables detelecine checkbox in the picture preview window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@800 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Deinterlace - fix bug where setting the deinterlace to none didnt ↵dynaflash2007-08-011-1/+1
| | | | | | show the interlacing in the picture preview. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@776 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New deinterlace initial implementationdynaflash2007-07-311-2/+27
| | | | | | | | | | | | | | | | - Replace old deinterlace checkbox with NSPopUp Button New Settings: - None: No deinterlacing - Fast: Original HB deinterlacing - Slow: Yadif Mode 1 - Slower: Yadif and Mcdeint - Slowest: Yadif and Mcdeint Presets still work, any old one will use None or Fast above. New ones will accurately reflect the correct choice. Note: need to determine if the preview is still reflecting deinterlacing on or off. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@772 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Enhanced Picture Settings in Presets (esp. cropping)dynaflash2007-07-311-0/+9
| | | | | | | | | | When creating a preset, three choices exist for picture settings: - None: Preset has no effect on any picture settings - Current: Preset will apply whatever picture settings were in effect at the time the preset was created (including deinterlace, par and *cropping) - Source Maximum (post scan): Preset will apply the maximum picture settings for each source and auto crop (basically the same picture settings that were in effect right after the source scan and nothing was modified with auto cropping enabled) Anamorphic and Deinterlace will be set according to general preferences - * Note on cropping with Current set for preset: If cropping was set to "Auto" at the time the preset was created, the preset will then use the sources auto crop values. If, however the cropping was set to "Custom" at the time the preset was created the preset will apply the custom cropping values to each source from when the preset was created. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@765 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: corrects the output width displayed in the main window and in ↵jbrjake2007-07-261-1/+1
| | | | | | picture settings, when anamorphic is enabled. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@745 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add auto crop value to main windowdynaflash2007-07-061-1/+9
| | | | | | | | - shows if you are using Auto or Custom cropping in the Video tab of the main window. - Prepares controller.mm to better use custom/auto cropping values particularly with presets. - Required since auto crop is not currently stored in a title or job variable, and proper use of cropping for presets requires the preset to know what cropping to actually use. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@651 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture Preview - Anamorphicdynaflash2007-04-171-3/+10
| | | | | | | - Properly show the anamorhic height instead of output height. - This distorts the preview picture in HB's Picture Preview, but is actually correct. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@522 b64f7644-9d1e-0410-96f1-a4d463321fa5