summaryrefslogtreecommitdiffstats
path: root/libhb/internal.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-05-20 15:28:27 +0000
committerdynaflash <[email protected]>2010-05-20 15:28:27 +0000
commit5c0877e87e58f15cf5fe86c43afaad0778a8817d (patch)
tree6100ce310d0bedebcc3c1bf50883ab2365f846e0 /libhb/internal.h
parentf6b620012c27bc2858ea0ad198bd3edf34965ca3 (diff)
Support for reading VOB subtitle tracks from file inputs initital implementation.
- Patch by davidfstr, Nice Work! - Adds support for reading VOB subtitle tracks from file inputs. Tested with: - MKV VOB -> MKV VOB passthru. - MKV VOB -> MKV VOB burned in. VOB subtitle palette moved from per-title to per-track. Discussion leading up to commit can be referenced here: http://forum.handbrake.fr/viewtopic.php?f=4&t=16267 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3308 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r--libhb/internal.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libhb/internal.h b/libhb/internal.h
index dd217507d..f7092f104 100644
--- a/libhb/internal.h
+++ b/libhb/internal.h
@@ -51,12 +51,23 @@ struct hb_buffer_s
uint8_t * data; // packet data
int cur; // used internally by packet lists (hb_list_t)
+ /*
+ * Corresponds to the order that this packet was read from the demuxer.
+ *
+ * It is important that video decoder work-objects pass this value through
+ * from their input packets to the output packets they generate. Otherwise
+ * RENDERSUB subtitles (especially VOB subtitles) will break.
+ *
+ * Subtitle decoder work-objects that output a renderable subtitle
+ * format (ex: PICTURESUB) must also be careful to pass the sequence number
+ * through for the same reason.
+ */
int64_t sequence;
int id; // ID of the track that the packet comes from
int64_t start; // Video and subtitle packets: start time of frame/subtitle
int64_t stop; // Video and subtitle packets: stop time of frame/subtitle
- int new_chap; // Video packets: ???
+ int new_chap; // Video packets: if non-zero, is the index of the chapter whose boundary was crossed
#define HB_FRAME_IDR 0x01
#define HB_FRAME_I 0x02