summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* reader: fix subtitle start time not advancingjstebbins2015-04-071-2/+37
| | | | | | | | | We must set a start time for subtitles or the vobsub decoder (and probably other subtitle decoders) will assign duplicate timestamps. So when a discontinuity occurs, make the closest guess that we can. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7072 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: don't ignore text attributes in PACjstebbins2015-04-071-4/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7071 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix copy_mask (again) :(jstebbins2015-04-071-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7070 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix audio autopassthru copy_mask and fallbackjstebbins2015-04-071-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7068 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix range for tab offsetsjstebbins2015-04-071-1/+1
| | | | | | | taboffset3 command was getting ignored so alignment was incorrect git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix potential crash when source file or title number doesn't existjstebbins2015-04-071-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: improve CC positioningjstebbins2015-04-058-28/+59
| | | | | | | | The safe zone margin was not wide enough and the font size was a little too small. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7063 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_dict: fix prototypes for functions that take no paramsjstebbins2015-04-051-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7062 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix column alignment issuesjstebbins2015-04-057-52/+92
| | | | | | | | Use a fixed width font, and insert hard spaces where necessary to allign columns correctly in multi-line CCs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7061 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Propagate an error when hb_json_to_job fails.Rodeo2015-04-051-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7059 b64f7644-9d1e-0410-96f1-a4d463321fa5
* encx264: fix hb_dict_init call.Rodeo2015-04-051-1/+1
| | | | | | | Was broken since revision 6981. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7058 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Add filter preset/tune lookup and setting validation for more filter ↵jstebbins2015-04-044-36/+453
| | | | | | | | | | | | | | types All filters except for crop_scale now have preset/tune support and basic validation. This code could also be used by the other frontends to simplify some things. For example, it can be used to query libhb for a list of available presets and tunes for each filter. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7050 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Improvements and key changes to json/hb_dict_t job definitionsjstebbins2015-04-041-129/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | MetaData -> Metadata Video {Codec} -> Video {Encoder} Filter -> Filters AudioList [Force] -> AudioList [Forced] Added audio key DitherMethod Simplified encoding range spec Was: Range {ChapterStart, ChapterEnd, PtsToStart, PtsToStop, FrameToStart, FrameToStop, StartAtPreview, SeekPoints} Now: Range {Type, Start, End, SeekPoints} Type is "chapter", "time", "frame", or "preview". Start and End units depend on Type. SeekPoints is only used for live preview. Added keys for control of hardware encode/decode OpenCL, HWDecode, QSV {Decode, AsyncDepth} Changed the data type of CopyMask. Was an int bitmask. Now it is an array of strings, each string describes a passthru option. e.g. "copy:ac3" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7049 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_dict: add 'const' to a few prototypes and add a couple new helper funcsjstebbins2015-04-032-4/+27
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7045 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Bump libx265 to version 1.6Rodeo2015-04-031-0/+3
| | | | | | | | | Miscellaneous bugfixes and performance improvements. Also, x265_cleanup lets us drop both patches. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7044 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: use hb_dict_t, hb_value_array_t, and hb_value_t in hb_json.cjstebbins2015-04-022-329/+370
| | | | | | | ...instead of going direct to json_t git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7040 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: log "default" filter settings when settings string is 0 lengthjstebbins2015-04-021-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7039 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add language lookup based on any of iso639_1/2/2b, eng_name, or nativejstebbins2015-04-022-1/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7038 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add functions to lookup details of mixdown, video, audio, containerjstebbins2015-04-022-2/+72
| | | | | | | | ... from int id. And add defines to eliminate some magic numbers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7037 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add conversions hb_value_t <-> jsonjstebbins2015-04-022-12/+44
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7036 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Eliminate global variable hb_gui_use_hwd_flagjstebbins2015-03-2917-82/+129
| | | | | | | | | | | | This global was shared between the CLI and libhb and used as a back door to force scan and encode passes to use the same ffmpeg context for hardware decoding. Aside from the fact that this context sharing should not be necessary and needs fixing, this information belongs in the hb_handle_t that is shared between the scan and the encode. So put it there and make sure the hb_handle_t get propagated to where the flag is needed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7028 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove unused hb_get_scancount functionritsuka2015-03-292-12/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7026 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: remove unnecessary filter settingsjstebbins2015-03-181-20/+10
| | | | | | | | crop comes from job during post_init so isn't necessary. also, fix frame size (again) :( git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7001 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: fix text rendering frame sizejstebbins2015-03-171-44/+33
| | | | | | | | | | | | Rendered text was in wrong position and sometimes dropped due to being out of frame. This got broken when I added filter post_init to set cropping *after* it is determined by the cropscale filter. I forgot to check text rendering initialization when I made this change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6997 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decomb: oops, fix overread when height is mod 4jstebbins2015-03-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6994 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: add "creation_time" metadatajstebbins2015-03-151-0/+5
| | | | | | | Tags mp4 files with current time. This was previously done by mp4v2 for us. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6991 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decomb: fix green line when source hight is modulus 2jstebbins2015-03-141-4/+4
| | | | | | | | | decomb requires mod 4 height. we pad our frame buffer heights to allow for this kind of thing, but need to allow decomb to operate on those extra blank lines. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6989 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix building with QSV enabled.Rodeo2015-03-131-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6985 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix crash when foreign audio search is *not* enabledjstebbins2015-03-112-1/+8
| | | | | | | | | Also, prevent crashes that occur when the json is not properly parsed. It will still fail to encode, but we will capture the parse failure in the log. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6983 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: use jansson for hb_dictjstebbins2015-03-098-377/+814
| | | | | | | | This paves the way to doing preset processing in libhb. Initially for the CLI but other frontends may benefit eventually. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6981 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: automatically scan title when processing json jobsjstebbins2015-03-0718-127/+249
| | | | | | | | | | | | | | | Simplifies the WinGui. This also changes how jobs are processed. Creating the sub-jobs for multiple passes is delayed until after scanning and immediately before running the job. Working status has also changed. Sub-job passes are identified in status with an ID that allows the frontend to definitively identify what pass is in progress. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6976 b64f7644-9d1e-0410-96f1-a4d463321fa5
* nlmeans: fix build on non-x86 architecturesjstebbins2015-02-263-8/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6945 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: only set subtitle "forced" flag when *user* sets default trackjstebbins2015-02-251-3/+6
| | | | | | | | Forced shouldn't be set when hb chooses a default track for mp4, which we do for quicktime compatibility. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6944 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mkv: mark "default" subtitle tracks with both default and forced flagsjstebbins2015-02-241-1/+2
| | | | | | | Makes "default" do the right thing in plex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6941 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: fix potential overflow in pts calculationjstebbins2015-02-171-5/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6919 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix memory alignment issue in nlmeans.bradleys2015-02-161-1/+1
| | | | | | | | Solves crash in accelerated code when source dimensions are not mod 16. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6915 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't pass "auto" profile to libx265.Rodeo2015-02-161-1/+3
| | | | | | | This isn't a valid H.265 profile and will cause encoder initialization to fail. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6913 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bd: fix printf format conversion warningjstebbins2015-02-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6911 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix compiler warnings and more const correctness in nlmeans.bradleys2015-02-161-32/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6910 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix compiler warnings in denoise (hqdn3d).bradleys2015-02-161-4/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6909 b64f7644-9d1e-0410-96f1-a4d463321fa5
* New audio output options.Rodeo2015-02-1510-38/+213
| | | | | | | | | Dolby Digital Plus (E-AC-3), Dolby TrueHD and FLAC can now be passed through without re-encoding. They aren't covered by Auto Passthru yet, however. In addition, encoding to E-AC-3 is now possible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6908 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: work around libav mpeg2 dummy first framejstebbins2015-02-151-1/+11
| | | | | | | | | | libav generates a dummy first frame after any seek for some mpeg2 streams. This results in black preview frames and invalid autocrop values. So always decode at least 2 frames before using the frame for preview. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6906 b64f7644-9d1e-0410-96f1-a4d463321fa5
* H.265: don't allow requesting Main 10 profile.Rodeo2015-02-153-3/+29
| | | | | | | | | This is pointless since we only do 8-bit encoding for now. Also add a few extra tables for future use. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6904 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Additional minor optimizations to nlmeans.bradleys2015-02-113-56/+59
| | | | | | | | | | | Assume buffered planes are equal size in nlmeans. Make nlmeans scalar counters read like accelerated counters (more readable and saves ~2 cycles). Yet more const correctness. Clarify some variable names for readability. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6896 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Minor nlmeans optimizations.bradleys2015-02-062-71/+84
| | | | | | | | | | | | | | Use calloc for nlmeans integral instead of memsets in-loop zeroing. Replace superfluous const with literal in SSE implementation. Move exponential table calculation out of the main loop. More const correctness. Add some braces. Overall, slightly more readable/maintainable and (very) slightly faster. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6874 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mux: remove obsolete comment about generation of AAC extradata from TS filesjstebbins2015-02-041-5/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6872 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mux: fix chapter timestamps, factor in video encoder delayjstebbins2015-02-042-2/+23
| | | | | | | | libav does not fix chapter timestamps for us, so we must do this until I can figure out a good fix to libav. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6871 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix AAC passthru from TS filesjstebbins2015-02-042-1/+50
| | | | | | | | | | Apply aac_adtstoasc bitstream filter while muxing AAC stream and extract AudioSpecificConfig during scan. Patch submitted by Taihei Momma git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6867 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: fix mp4 edit lists to eliminate initial black framesjstebbins2015-02-031-35/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6865 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add support for detection of new Intel processor releases.Rodeo2015-02-033-1/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6864 b64f7644-9d1e-0410-96f1-a4d463321fa5