projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't bother decoding video frames when we're seeking around trying to find subtitles.
[dcpomatic.git]
/
src
/
lib
/
subrip_decoder.h
diff --git
a/src/lib/subrip_decoder.h
b/src/lib/subrip_decoder.h
index 26d5d501006c021ee7892667246b626e817a43f3..264ca88996b2b93dafd4b1521f4c4f3a98f8f609 100644
(file)
--- a/
src/lib/subrip_decoder.h
+++ b/
src/lib/subrip_decoder.h
@@
-28,11
+28,16
@@
class SubRipContent;
class SubRipDecoder : public SubtitleDecoder, public SubRip
{
public:
class SubRipDecoder : public SubtitleDecoder, public SubRip
{
public:
- SubRipDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const SubRipContent>);
-
- bool pass ();
+ SubRipDecoder (boost::shared_ptr<const SubRipContent>);
+
+protected:
+ void seek (ContentTime time, bool accurate);
+ bool pass (PassReason);
private:
private:
+ std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
+ std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+
size_t _next;
};
size_t _next;
};