summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.h
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Remove vestigial conditional which did not allow loose anamorphic if ↵dynaflash2009-11-181-4/+0
| | | | | | | | | the ffmpeg video encoder was used. - Patch by Rodeo. Thanks Rodeo! - Addresses http://forum.handbrake.fr/viewtopic.php?f=4&t=13117 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2943 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Custom Anamorphic initial implementation (experimental) and pic ↵dynaflash2009-05-011-5/+54
| | | | | | | | | | | | | | | | | | | | | 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
* MacGui: Put Picture Settings and Video Filters into one inspector.dynaflash2009-03-051-3/+89
| | | | | | | | - 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: Fix crash when trying to quit with preview in full screen mode.dynaflash2009-02-131-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2155 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Video Filter and Picture Settingsdynaflash2009-02-061-12/+3
| | | | | | | | | | | - 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 separate hud inspector initial implementationdynaflash2009-01-261-22/+7
| | | | | | | | - 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
* MacGui: Separate Picture Settings and Preview Window Initial Implementationdynaflash2009-01-121-35/+19
| | | | | | | | | | | | | | | | | | | | - 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: Increase the height of the Filters box in Picture Settings, was too ↵dynaflash2008-12-161-0/+3
| | | | | | | | crowded. - Add outlets for the Size, Crop and Filters NSBoxes git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2037 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Picture window now uses a subclass of HBController to access the ↵dynaflash2008-12-151-8/+8
| | | | | | | | | 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: Remove custome decomb option from preferences and Picture Settingsdynaflash2008-11-301-1/+1
| | | | | | | - 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-1/+1
| | | | | | | - 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: Live Preview Initial Implementationdynaflash2008-11-241-5/+29
| | | | | | | | | | | | | | - 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: Remove the VFR checkbox in the Picture Settings window.dynaflash2008-09-241-4/+0
| | | | | | | - 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/+3
| | | | | | | | - 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-1/+1
| | | | | | | | - 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
* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1471 ↵jbrjake2008-05-291-0/+4
| | | | b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Make PictureController a subclass of NSWindowController. Patch by ↵ritsuka2008-05-111-4/+1
| | | | | | 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
* MacGui: Switch PicturePreview to use NSImageView instead of the openGL view.dynaflash2008-01-121-10/+13
| | | | | | | - 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: Loose Anamorphic initial implementationdynaflash2008-01-031-2/+7
| | | | | | | | | | - 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-0/+1
| | | | | | | - 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-1/+5
| | | | | | | | | - 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/+4
| | | | | | - 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: Keep track of the state of the keep aspect ratio checkbox when ↵dynaflash2007-09-191-0/+6
| | | | | | | | | 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: Scale > 720 or > 480 Picture Previews and the Picture Settings ↵dynaflash2007-09-161-1/+2
| | | | | | | | | | | 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: Fixed main window not showing updated filters settings after closing ↵ritsuka2007-09-091-0/+5
| | | | | | | | 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-12/+24
| | | | | | | | | | - 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: Denoise filter initial implementationdynaflash2007-08-141-0/+2
| | | | | | | - 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/+4
| | | | | | | - 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: New deinterlace initial implementationdynaflash2007-07-311-1/+2
| | | | | | | | | | | | | | | | - 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: Add auto crop value to main windowdynaflash2007-07-061-0/+5
| | | | | | | | - 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
* Merge the 5.1 branch into the trunk.prigaux2007-03-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@422 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Merge the 0.8.0_mpeg4ip branch into the trunkprigaux2007-02-111-1/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@285 b64f7644-9d1e-0410-96f1-a4d463321fa5
* HandBrake 0.7.0handbrake2006-01-141-0/+55
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@16 b64f7644-9d1e-0410-96f1-a4d463321fa5