summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* json: fix hb_get_preview_jsonjstebbins2014-12-192-11/+136
| | | | | | | and add some routines for json conversion of preview parameters and images git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6614 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add hb_image_init to create blank imagesjstebbins2014-12-192-0/+81
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6613 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: make hb_get_preview2 always return a valid imagejstebbins2014-12-191-3/+8
| | | | | | | When we fail to read the preview image, create a blank image git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6612 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix plane size in hb_get_preview_image_jsonjstebbins2014-12-191-0/+1
| | | | | | | The actual size of the base64 encoded data is the length of the string git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6611 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix memory leak in hb_get_preview_jsonjstebbins2014-12-191-0/+1
| | | | | | | forgot to call hb_image_close on the image git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6610 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: add hb_get_preview_jsonjstebbins2014-12-191-2/+112
| | | | | | | | | | | | | | No idea if it actually works as advertised. Probably not ;) Returns a json representation of an hb_image_t with the data encoded in base64. Also, fix a bug in hb_set_anamorphic_size_json that probably would have cause it to just fail. And fix a couple of memory leaks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6609 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix building with --enable-hwdjstebbins2014-12-182-13/+13
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6607 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: separate the video settings logic from the view controller. There ↵ritsuka2014-12-181-0/+1
| | | | | | are a number of small regression ("Custom" preset and auto naming not updating) that will be fixed in the next commits. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6606 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mux: fix format of ssa preamblejstebbins2014-12-161-11/+12
| | | | | | | | sprintf decimal specifier was using the system local to insert a ',' where there should have been a '.' git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6604 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix building with qsv enabled.jstebbins2014-12-166-51/+68
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6603 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: add json APIsjstebbins2014-12-1638-743/+1765
| | | | | | | | | | There are several changes to job and title structs that break current windows interop code. The interop code should be changed such that it only uses json APIs. So if there is any missing features (or bugs) in these APIs, please let me know. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix another issue with overlapping ssa subtitle translation to tx3gjstebbins2014-12-151-7/+15
| | | | | | | It was failing if 3 or more subtitles overlapped simultaneously. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6600 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: potential fix for missing audio tracksjstebbins2014-12-121-2/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6597 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decsrtsub: fix incorrect usage of strncatjstebbins2014-12-101-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6592 b64f7644-9d1e-0410-96f1-a4d463321fa5
* contrib: build and link new jansson libjstebbins2014-12-051-5/+5
| | | | | | | No new functionality yet. To be used for new json APIs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6590 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix dropping of subtitles caused by my previous commitjstebbins2014-12-051-0/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6588 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix a problem with overlapping ssa in mp4jstebbins2014-12-041-0/+11
| | | | | | | | If an SSA starts before and ends after the subsequent SSA, the subtitles were improperly merged resulting in timestamp issues. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6584 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: eliminate duplicate activity log stream infojstebbins2014-11-171-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6525 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix positioning of popup CCsjstebbins2014-11-101-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6510 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: enable crc checking of audio streams during audio parameter probejstebbins2014-11-051-2/+7
| | | | | | | | | We used to check ac3 crc's when we used a52 dec. When we switched to libav we did not enable crc checks. I suspect this is the root cause of this problem https://forum.handbrake.fr/viewtopic.php?f=12&t=31032 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6507 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix p-to-p start for some streamsjstebbins2014-11-051-18/+21
| | | | | | | | | The primary problem was in setting our "zero" time in reader based on a stream that is not decoded. Since this stream never reaches sync, there would appear to be a long initial frame from syncs perspective. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6506 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix writing outside bufferjstebbins2014-10-301-0/+15
| | | | | | | | When the rollup mode changes, check if the baserow + rollup height goes outside the screen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6487 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fifo: add code (ifdef'd out) to assist with finding buffer leaksjstebbins2014-10-301-0/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6485 b64f7644-9d1e-0410-96f1-a4d463321fa5
* param: fix compiler warningjstebbins2014-10-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6484 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxcommon: fix bitvec leakjstebbins2014-10-301-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6483 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix subtitle buffer leakjstebbins2014-10-301-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6482 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decavcodec: fix a 4 byte overread of extradata by libavjstebbins2014-10-291-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6480 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decpgssub: make sure all packets get marked as subtitle framesjstebbins2014-10-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6476 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: improve CC detectionjstebbins2014-10-281-7/+15
| | | | | | | | | We are failing to detect CCs in some sources because the CC data is not present on every frame. Makes scan always decode a few extra frames to give the decode a better chance of seeing the CC data. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6471 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix blinking of rendered closed captionsjstebbins2014-10-221-5/+16
| | | | | | | Rounding errors in timestamps caused single frame duration gaps git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6454 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix CC roll-ups that move around the screenjstebbins2014-10-221-0/+102
| | | | | | | | These were causing errors in the parser. Handle them according to recommendations in the CC spec. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6453 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Add filter parameter validation.bradleys2014-10-152-5/+72
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6447 b64f7644-9d1e-0410-96f1-a4d463321fa5
* contrib: Add libgnurx to provide POSIX regex on Windows.bradleys2014-10-151-1/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6445 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ilibhb: Fix reading from DVDISO files with non-ASCII filenames on Windowsjstebbins2014-10-132-8/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: improve preview generateion when there are no IDRsjstebbins2014-10-024-5/+42
| | | | | | | | | | Puts the decoder into a mode that returns *all* frames. I.e. it won't just scan to the end of the file looking for an IDR. Then we decode multiple frames (up to 100) searching for an I frame. This way, the reconstructed frame we use for a preview is more likely to be complete. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6430 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: simplify avcodec extradata parsingjstebbins2014-10-021-75/+21
| | | | | | | | | Use avcodec parser->split() instead of writing our own parser. This makes extradata parsing work for stream formats other than vc1 if the need should ever arise. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6429 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608: fix rollup style CC problemsjstebbins2014-09-262-37/+38
| | | | | | | | | | | | The timing of the "erase display" command was incorrect for rollup CC and erased subtitles immediately after they were displayed. When rendering, sometimes rollup subtitles arrived at the renderer far after the frame they should be rendered on. So push rollup subtitles into the pipeline for each new character received when rendering. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6421 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: fix *very* occasional blinking subtitle textjstebbins2014-09-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6409 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix utf8/srt sub line ending parsingjstebbins2014-09-151-1/+11
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6408 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: re-enable vobsub in mp4 supportjstebbins2014-09-131-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6401 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: thread nlmeans filterjstebbins2014-09-093-218/+449
| | | | | | | Scales well with number of CPUs, so is 4x faster on quad cores. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6397 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix scanning of video that is a single GOPjstebbins2014-09-092-29/+52
| | | | | | | | | | With this type of stream, scan only successfully decodes 1 frame. Eliminating the flush after seek allows decoding more frames. Note that there is a side effect of allowing some junk frames to be decoded, so we only skip the flush if normal scanning finds only 1 frame. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6396 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix CC text attributesjstebbins2014-09-082-16/+25
| | | | | | | The attributes (like italic) were not getting cleared when necessary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6395 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: plug memory leaksjstebbins2014-09-053-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6394 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix setting thread_count for libav encodingjstebbins2014-09-041-3/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6389 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix mp4 optimizejstebbins2014-09-011-2/+3
| | | | | | | movflags were being overwritten, silly error on my part. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6386 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't set duration of PGS subtitlesjstebbins2014-08-301-2/+4
| | | | | | | | | | PGS subtitles are terminated by an explicit "end of sub" subtitle in the stream. The duration is not used (or known in advance). So every PGS was getting the default 10s duration assigned. This made the overall duration of the stream appear longer than it really is. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6384 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add gpl v2 copyright message do deccc608subjstebbins2014-08-292-0/+18
| | | | | | | much of this work was borrowed from ccextractor which is GPL v2 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6383 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix small error in "empty" mp4 subtitle durationjstebbins2014-08-271-3/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6376 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix tx3g styles when the entire line is one stylejstebbins2014-08-271-2/+12
| | | | | | | the style was not getting flushed if there were no style changes git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6375 b64f7644-9d1e-0410-96f1-a4d463321fa5