summaryrefslogtreecommitdiffstats
path: root/macosx
Commit message (Collapse)AuthorAgeFilesLines
* x264 preset system: miscellaneous improvements.Rodeo2013-01-302-23/+20
| | | | | | | | See https://reviews.handbrake.fr/r/421/ for details. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5225 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove extra space in encoding status line string for 1 pass encodes.dynaflash2013-01-281-1/+9
| | | | | | | - Patch by sanmarcos Thanks! - Addresses https://reviews.handbrake.fr/r/422/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5215 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add missing tooltips . Align and fix issues.dynaflash2013-01-273-286/+422
| | | | | | | - Patch by sanmarcos … Thanks! - Detail addressed here https://reviews.handbrake.fr/reviewboard.fcgi/r/423/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5214 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix a null placeholder upon launch in the x264 unparse string.dynaflash2013-01-271-3/+10
| | | | | | | - Patch by sanmarcos Thanks! - Explained here https://reviews.handbrake.fr/r/426/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5213 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Only show the warning about copy proteciton once.sr552013-01-271-52/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5210 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove the deprecated VLC DYLD codesr552013-01-271-76/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5209 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: sync built-in presets with the other UIs.Rodeo2013-01-263-514/+227
| | | | | | | | Also make handling of max width/height more robust. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5207 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cosmetics: re-indent.Rodeo2013-01-231-5/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5198 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacUI: Fix crash caused by double free of advanced_optsjstebbins2013-01-231-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5197 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: retain the current storage width and height and use it when ↵Rodeo2013-01-162-6/+17
| | | | | | | | | | unparsing the x264 options. This is done in calculatePictureSizing as it is called whenever width or height change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5175 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: free(NULL) is perfectly safe.Rodeo2013-01-061-10/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5165 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fAudioFallbackPopUp should be an NSPopUpButton.Rodeo2013-01-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5164 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fX264MediumPresetIndex is an index, not a pointer.Rodeo2013-01-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5163 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix queue editing after adding the x264 preset system.Rodeo2013-01-031-5/+24
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5137 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cosmetics.Rodeo2013-01-031-6/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5136 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add getters and setter for x264 preset system.Rodeo2013-01-032-221/+273
| | | | | | | | | | Simplifies code and makes it more readable. Also more refactoring, more bugfixes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5135 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix memory leak, more refactoring, bugfixes.Rodeo2013-01-022-72/+87
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5132 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: more refactoring, bugfixes.Rodeo2013-01-023-189/+191
| | | | | | | | Apologies if anything breaks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5131 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix fx264UseAdvancedOptionsCheck (hopefully).Rodeo2013-01-023-10/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5130 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: code refactoring (x264 preset system).Rodeo2013-01-022-129/+117
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5129 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix preset import/export with the x264 system.Rodeo2013-01-021-84/+65
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5128 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Initial x264 presets implementation.dynaflash2013-01-015-252/+1940
| | | | | | | | | - 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
* fix some crashes in the macuijstebbins2012-12-121-1/+1
| | | | | | | | | I missed setting some pointers to NULL after free and missed place where the ui was setting job->file directly instead of using hb_job_set_file(). Also, a NULL chapter name caused a crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5097 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove vestigial activity log debug messages.dynaflash2012-11-272-4/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5085 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve management of titles and jobsjstebbins2012-11-123-45/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up several several unavoidable memory leaks caused by old api. Clearly separates titles from jobs. Titles are set during scan and never modified now. Since titles are immutable, this lead to API some changes. For example, We were setting chapter names in the title from the front ends. Now these get set in the job. These new APIs allow us to start moving away from our use of title->job. Eventually, I would like to eliminate title->job completely, but the mac ui is too tightly tied to using this field to allow removing it at this time. So there is temporarily a convenience function used only by the mac ui that allows it to continue using title->job and also use the new APIs. New APIs: typedef struct hb_title_set_s hb_title_set_t; struct hb_title_set_s { hb_list_t * list_title; int feature; // Detected DVD feature title }; hb_title_set_t * hb_get_title_set( hb_handle_t * ); This is just something I added to clean up how "feature title" info is passed. hb_job_t * hb_job_init( hb_title_t * title ); Initializes a new job with default settings from the title. hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index ); Same as hb_job_init(). For use by win Interop lib. void hb_job_reset( hb_job_t * job ); Convenience function for the MacUi. Clears audio, subtitle, and filter lists. The macui still uses title->job because it is so intricately tied to it. So I created this convenience function that it can call after adding a job. void hb_job_close( hb_job_t ** job ); Releases the job an all resources it contains. void hb_job_set_advanced_opts( hb_job_t *job, const char *advanced_opts ); Makes a copy of "advanced_opts" and stores in job. Freed by hb_job_close(). void hb_job_set_file( hb_job_t *job, const char *file ); Makes a copy of "file" and stores in job. Freed by hb_job_close(). void hb_chapter_set_title(hb_chapter_t *chapter, const char *title); Makes a copy of "title" and stores in chapter. Freed by hb_chapter_close(). Recommended usage (cli and lingui are updated to do this): job = hb_job_init( title ); // set job settings ... hb_add(h, job); hb_job_close( &job ); I have also added new APIs for managing metadata. These are used to add metadata to a job. void hb_metadata_set_name( hb_metadata_t *metadata, const char *name ); void hb_metadata_set_artist( hb_metadata_t *metadata, const char *artist ); void hb_metadata_set_composer( hb_metadata_t *metadata, const char *composer ); void hb_metadata_set_release_date( hb_metadata_t *metadata, const char *release_date ); void hb_metadata_set_comment( hb_metadata_t *metadata, const char *comment ); void hb_metadata_set_genre( hb_metadata_t *metadata, const char *genre ); void hb_metadata_set_album( hb_metadata_t *metadata, const char *album ); void hb_metadata_set_coverart( hb_metadata_t *metadata, const uint8_t *coverart, int size ); Example: job = hb_job_init( &job ); // set job settings ... hb_metadata_set_artist( job->metadata, "Danny Elfman" ); hb_add(h, job); hb_job_close( &job ); Some APIs have changed in order to avoid using title incorrectly and use the new hb_title_set_t. -void hb_autopassthru_apply_settings( hb_job_t * job, hb_title_t * title ); +void hb_autopassthru_apply_settings( hb_job_t * job ); -void hb_get_preview( hb_handle_t *, hb_title_t *, int, uint8_t * ); +void hb_get_preview( hb_handle_t *, hb_job_t *, int, uint8_t * ); hb_thread_t * hb_scan_init( hb_handle_t *, volatile int * die, const char * path, int title_index, - hb_list_t * list_title, int preview_count, + hb_title_set_t * title_set, int preview_count, int store_previews, uint64_t min_duration ); These APIs have been removed. Win Interop will need some changes. I think what I've provided will be suffecient, but let me know if it's not. -void hb_get_preview_by_index( hb_handle_t *, int, int, uint8_t * ); -void hb_set_anamorphic_size_by_index( hb_handle_t *, int, - int *output_width, int *output_height, - int *output_par_width, int *output_par_height ); git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5058 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: when creating a new preset, hide "Custom" when the anamorphic mode ↵Rodeo2012-09-291-8/+24
| | | | | | | | | | is Strict; is has no effect and therefore isn't applicable. Use tags instead of the index to store correct preset values for each mode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4994 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fix build after previous commit.Rodeo2012-09-271-1/+1
| | | | | | | | The path to HandBrake.icns was set wrong in the Xcode project. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4990 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Use new dock icon created by Matt Johnson (mattdog.100 [at] gmail.com)dynaflash2012-09-274-13/+5
| | | | | | | - Details can be found here https://forum.handbrake.fr/viewtopic.php?f=4&t=24639&start=125. - Thanks!!! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4989 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: miscellaneous cosmetics and consistency adjustments.Rodeo2012-09-222-29/+47
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4974 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add the drag & drop features on both DockIcon and Handbrake Main WindowRodeo2012-09-213-12/+202
| | | | | | | | | | | - Patch courtesy of Jerome Lacube. Thanks Jerome! - It handles dragging & dropping one file, and folders. -- Please note that when dropping a folder, the files inside will be treated as titles. - Specifics can be found here https://reviews.handbrake.fr/r/345/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4973 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - fix issue:konablend2012-09-213-13/+9
| | | | | | | | | | | | | | abort() called *** Terminating app due to uncaught exception 'NSInvalidArgumentException' reason: '*** -blueComponent not defined for the NSColor NSCustomColorSpace Generic RGB colorspace 0.5 0.5 0.5 1; need to first convert colorspace.' - remove superfluous color conversions; according to NSGradient docs, any needed colorspace conversions of params are automatic - use [NSColor colorWithAlphaComponent] to force alpha - change [NSColor colorWithSRGBRed] to [NSColor colorWithDeviceRed] for 10.6 API compatibilty - [cosmetic] rename parm withEndColor -> endColor - [leak] release NSGradient git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4972 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: increase dock icon ETA badge's refresh rate from 0.5 to 0.1%.Rodeo2012-09-181-1/+1
| | | | | | | | Even with fast encoding settings, the previous value was a bit slow for full-length encodes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4968 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Objective-C/cosmetics.Rodeo2012-09-161-5/+5
| | | | | | | | Apologies if I break anything. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4967 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New dock icon progess behavior with percent & ETA "badges".dynaflash2012-09-155-78/+162
| | | | | | | - Patch by Jerome Lacube Thanks !! - Details can be found here https://reviews.handbrake.fr/r/344/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4964 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Audio improvements.Rodeo2012-09-032-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New supported samplerates: 8, 11.025, 12, 16 kHz. Now 8, 11.025, 12, 16, 22.05, 24, 42, 44.1, 48 Khz are supported. Unsupported samplerates are sanitized to the closest samplerate for all encoders. Samplerates < 32 kHz are now forbidden for AC3 encoding (sanitized to 32 kHz). Most AC3 decoders don't support such samplerates. New upmixing: 3.0 (Front Left, Right & Center) can now be upmixed to 5.1 to preserve the center channel. New mixdowns: 6.1 (Front Left, Right & Center, Surround Left, Right & Center, LFE) 7.1 (Front Left, Right & Center, Surround Left & Right, Rear Left & Right, LFE) -> available to Vorbis & FLAC encoders for compatible input channel layouts 7.1 (Front Left, Right & Center, Front Left & Right of Center, Surround Left & Right, LFE) -> available to AAC encoders (ca_aac, ca_haac, faac) for compatible input channel layouts Mono (Left Only): Stereo to Mono by discarding the Right channel Mono (Right Only): Stereo to Mono by discarding the Left channel -> available to all encoders for non-Dolby Stereo input The "6-channel discrete" mixdown becomes "5.1 Channels". New bitrates: 960 - 1536 Kbps. This lets users work around poor audio quality in crappy encoders by throwing more bits at them. Bitrate limits have been re-worked and re-tested for all encoders. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4930 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add support for a secondary audio language track.dynaflash2012-08-272-46/+392
| | | | | | | | | | | | - Patch courtesy of Dennis Frommknecht ... thank you! - Adds a second language preference in Preferences > Audio -- If the corresponding language is not available in the source, the group for this language is not added. If neither default nor alternate language is found, the first audio track would be added (as it is already). The alternate language can also be left empty in which case no second group is added. -- The implementation ensures that the same track is not added twice (if default and alternate language are identical). It is also flexible enough to support an arbitrary number of languages. They just have to be added to array "preferredLanguages" at the beginning of method "addTracksFromPreset" (HBAudioController.m). The original patch and explanation can be found at https://reviews.handbrake.fr/r/262/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4921 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use HB_INVALID_AMIXDOWN and HB_AMIXDOWN_NONE where applicable.Rodeo2012-07-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4879 b64f7644-9d1e-0410-96f1-a4d463321fa5
* More fine grained progress statistics during subtitle scanjstebbins2012-07-181-3/+12
| | | | | | | | Make reader compute subtitle scan progress based on timestamps seen and duration instead of chapter marks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4864 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use libav for dts audio decoding instead of libdca jstebbins2012-07-151-6/+0
| | | | | | | | | libdca has no advantage over libav for dts audio decoding. It doesn't do drc and it's downmix capabilities are actually inferior to libav. So this completely removes libdca from libhb git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4844 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bump libav to libav-v0.8-2197-g1a068bfjstebbins2012-07-111-0/+6
| | | | | | | | | | | | Resolves several deprecated api's Eliminates several libav patches Eliminates our builtin downmix in favour of avresample Eliminate HB_INPUT_CH_LAYOUT_* and replace with AV_CH_LAYOUT_* Resolves 6.x and 7.0 input channel layout issues HB had Adds downmix support to declpcm. We never had it! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4825 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Forgot to update ipad preset descriptionsr552012-06-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4795 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Updating the iPad preset to 720P to be a good balance for both iPad 2 and 3sr552012-06-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4793 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: AppleTV 3 preset fix decombdynaflash2012-06-281-1/+1
| | | | | | | - Actually select Decomb (fast) which fixes initial implementation using Decomb Custom. - Thanks for catching it Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4785 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add AppleTV 3 Presetdynaflash2012-06-272-0/+123
| | | | | | | | | - Basically High Profile preset with rc-lookahead removed ( so now default) - 1920 x nnn (1080p) resolution max - Fast decomb due to the fact that "decomb 3" is currently deemed too much of a speed hit. Upon a speed up recommend a change. - - Note this is the first device preset to use decomb … fast decomb is better imo than no decomb. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4784 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove encca_haac_available(). It's no longer needed since we dropped ↵Rodeo2012-06-201-11/+9
| | | | | | support for OS X 10.5. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4759 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: drop HB_INPUT_CH_LAYOUT_*Rodeo2012-06-183-6/+18
| | | | | | | | AV_CH_LAYOUT_* works for us, and as its usage becomes more widespread in libhb, translating between the two formats gets increasingly tedious. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4754 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: miscllaenous cleanup.Rodeo2012-05-121-71/+75
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4666 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cosmetics.Rodeo2012-05-121-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4660 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: do not disable fQueueStatus in enableUI. A disabled fQueueStatus ↵Rodeo2012-05-121-3/+5
| | | | | | looks a bit silly next to an enabled fStatusField. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4659 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: apply Auto Passthru settings even if the widgets are hidden.Rodeo2012-05-091-75/+35
| | | | | | | | If you don't do this, then presets that use these will not function as advertised (see revision 4640). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4653 b64f7644-9d1e-0410-96f1-a4d463321fa5