summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merging trunk to opencl branch.sr552012-12-2989-25814/+27438
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5116 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add hardware decoder support for H264(vob/m2ts), mpeg2(vob/m2ts), ↵handbrake2012-12-1844-17/+6090
| | | | | | | | | VC1(WMV3/m2ts) decoding modify the GUI for adding some user options about enable/disable OpenCL or GPU add some test case for tesing our modifications. git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5100 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Creating a branch to allow easier testing of opencl code.sr552012-12-140-0/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/opencl@5098 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix some crashes in the macuijstebbins2012-12-123-1/+4
| | | | | | | | | 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
* libhb: refactor job initialization and cleanupjstebbins2012-12-092-97/+77
| | | | | | | | Separates out some duplicate code in hb_job_reset, hb_job_close, and hb_job_init. Also removes some vestigial function definitions in hb.h git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5096 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix hb_dict_next() when dict is emptyjstebbins2012-12-091-2/+2
| | | | | | | It would return an invalid entry instead of NULL. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5095 b64f7644-9d1e-0410-96f1-a4d463321fa5
* encx264: raise qpmin to 4. 3 has been found to fail on real sources.Rodeo2012-12-091-3/+5
| | | | | | | | Fixes https://forum.handbrake.fr/viewtopic.php?f=5&t=25735 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5094 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix loose crop calculationjstebbins2012-12-081-2/+2
| | | | | | | It was sometimes coming up with odd cropping values git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5093 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix a timing problem when rendering vobsubsjstebbins2012-12-082-11/+41
| | | | | | | | So, if we are rendering the subtitles, do not delay them in sync. The renderer is responsible for handling stop == -1. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5092 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Fix a number of potential culture issues with doubles. (Advanced ↵sr552012-12-083-5/+5
| | | | | | Panel, Query Handling and Picture settings) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5091 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: When we have a variable framerate preset, reset to "same as source" ↵sr552012-12-082-6/+8
| | | | | | rather than just remaining at whatever fps was set previously. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5090 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: fix subtitle configuration problemjstebbins2012-12-041-1/+2
| | | | | | | | | If the preset has "burned" checked, under certain circumstances, both "burned" and "default" would be checked in the gui. These are suppose to be mutually exclusive. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5089 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Fixing title number/title index mixup. Adding Playlist to the Title ↵randomengy2012-12-024-13/+51
| | | | | | object. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5088 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix eedi2 crash in decombjstebbins2012-11-301-1/+0
| | | | | | | | | When converting to using tasksets, I missed a free(thread_args_v) that needed to be removed. So we freed a bad pointer when the eedi2 thread closed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5087 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_x264_param_unparse(): fix typo.Rodeo2012-11-271-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5086 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
* WinGui: UI Tweaks and further fixes to Custom Anamorphic.sr552012-11-273-7/+25
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5084 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: General code tidy-up and fix a couple of possible points that could ↵sr552012-11-273-39/+35
| | | | | | throw exceptions. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5083 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix memory consumption problemjstebbins2012-11-261-2/+2
| | | | | | | | | Issues with timestamps made cfr think it needed to duplicate a few thousand frames. this leads to an over-cunsumption of memory since all duplicates are placed in a list at once. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5082 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Tweak the advanced panel design so it is less likely to go off screen.sr552012-11-252-5/+6
| | | | | | Fix a framework selection but on non gb/us cultures. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5081 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Couple of Audio and Advanced Panel bug fixes.sr552012-11-243-19/+28
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5080 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Quick fix to restore building of the app.sr552012-11-221-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5079 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Updated to work with hb_chapter_set_title for chapter markers.randomengy2012-11-225-35/+108
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5078 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: go back to original pause, start, stop icons. jstebbins2012-11-223-0/+0
| | | | | | | they just look better git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5077 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix generation of silence buffer for filling audio gapsjstebbins2012-11-211-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5076 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxmkv: don't write the last chapter marker if it is shorter than 3/2 second.Rodeo2012-11-211-43/+45
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5075 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_audio_remap: protect against invalid channel layouts.Rodeo2012-11-214-7/+18
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5074 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve support for planar audio.Rodeo2012-11-219-172/+311
| | | | | | | | | | | | | | - encavcodecaudio: use libavresample directly (instead of via the hb_audio_resample wrapper), and add support for planar output - hb_audio_resample: add support for planar input - hb_audio_remap: add support for planar input - deca52: output planar float samples (no re-interleaving) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5073 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Updated to support removal of title->job. Removed some obsolete ↵randomengy2012-11-2111-98/+177
| | | | | | properties on EncodingProfile, changed x264 Tunes to be a collection and replaced CustomCropping bool with CroppingType enum. Another fix to make sure Loose/Strict anamorphic get the correct PAR values. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5072 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix BD encodingjstebbins2012-11-202-11/+16
| | | | | | | | | | | | | | I inadvertently disabled PCR processing in BD in https://trac.handbrake.fr/changeset/5058 This caused bugs to show up in our processing of TS streams that have no PCR. So re-enable PCR processing in BD to fix the regression. And fix the problems with processing TS streams that have no PCR. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5071 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Default the custom anamorphic values correctly. (Part 1 of Custom ↵sr552012-11-182-30/+101
| | | | | | anamorphic implementation) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5070 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Handle FileNotFound Exceptions with a nicer error message.sr552012-11-181-3/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5069 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Fix build break from bad merge.randomengy2012-11-171-0/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5068 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Two temporary place holders for stop encode icon.sr552012-11-172-0/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Tweaks to the graphics files by nikpawlak and some alternate ↵sr552012-11-1731-2/+2
| | | | | | play/pause icons that fit well by jamiemlaw. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5066 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fontconfig: keep cc_archoption empty on Solarisdynaflash2012-11-151-0/+2
| | | | | | | - patch once again by icchan … thanks! - Review here https://reviews.handbrake.fr/r/366/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5065 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Freetype: use GNU make on Solarisdynaflash2012-11-151-0/+25
| | | | | | | | - Courtesy of icchan thanks again! - Let's instead use gmake (normally installed in /usr/sfw/bin/gmake) to build the FreeType contrib. - Review here https://reviews.handbrake.fr/r/365/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Introduce Solaris Supportdynaflash2012-11-151-0/+2
| | | | | | | | - Patch from icchan … thanks ! - At some point in the past, this was probably dropped. Re-adding it now as a pre-requisite for several upcoming patches to fix the build on Solaris 10. - ReviewBoard link here https://reviews.handbrake.fr/r/364/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5063 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove x264 Solaris patch as its no longer needed.dynaflash2012-11-151-31/+0
| | | | | | | - Patch courtesy of icchan thanks ! - Review found here https://reviews.handbrake.fr/r/362/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5062 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_apply_h264_level: miscellaneous cosmetics.Rodeo2012-11-122-33/+66
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5061 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_x264_param_unparse: miscellaneous cosmetics.Rodeo2012-11-122-307/+329
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5060 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_x264_param_unparse: returns a complete x264 encopts string from a ↵Rodeo2012-11-123-3/+630
| | | | | | preset/tune(s)/profile/level/encopts combo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5059 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve management of titles and jobsjstebbins2012-11-1232-1023/+1960
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Interop: Exposing raw FPS numerator/denominator on Title. Exposing ↵randomengy2012-11-126-18/+98
| | | | | | IsH264LevelValid function. Adding additional subtitle types. Fixing Anamorphic size calculation. Adding H.264 level to encode options. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5057 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Updated the preset pane icons.sr552012-11-115-6/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5056 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Grayscale versions of the Add/Remove preset buttons.sr552012-11-114-0/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5055 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: update iconsjstebbins2012-11-1137-32/+55
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5054 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: UI Tweaks and improvementssr552012-11-107-41/+58
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5053 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Another scaling artefact fix.sr552012-11-101-0/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5052 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added 2 missing image filessr552012-11-102-0/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5051 b64f7644-9d1e-0410-96f1-a4d463321fa5