summaryrefslogtreecommitdiff
path: root/src/lib/black_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-22 17:36:29 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-22 17:36:29 +0100
commit929b4c37eaf9593892f61df80309a8c8ad6c05a0 (patch)
treedacbe167d7dd165f2d55ae849123a6f6b409b346 /src/lib/black_decoder.h
parent596441a4e8cf03a88113646ca6da2f90e721a38b (diff)
Missing files.
Diffstat (limited to 'src/lib/black_decoder.h')
-rw-r--r--src/lib/black_decoder.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/black_decoder.h b/src/lib/black_decoder.h
new file mode 100644
index 000000000..a585af7e2
--- /dev/null
+++ b/src/lib/black_decoder.h
@@ -0,0 +1,44 @@
+#include "video_decoder.h"
+
+class BlackDecoder : public VideoDecoder
+{
+public:
+ BlackDecoder (boost::shared_ptr<NullContent>);
+
+ bool pass ();
+ bool seek (double);
+ Time next () const;
+
+ /** @return video frame rate second, or 0 if unknown */
+ float video_frame_rate () const {
+ return 24;
+ }
+
+ /** @return native size in pixels */
+ libdcp::Size native_size () const {
+ return libdcp::Size (256, 256);
+ }
+
+ /** @return length according to our content's header */
+ ContentVideoFrame video_length () const {
+ return _content_length;
+ }
+
+protected:
+
+ int time_base_numerator () const {
+ return 0;
+ }
+
+ int time_base_denominator () const {
+ return 1;
+ }
+
+ int sample_aspect_ratio_numerator () const {
+ return 0;
+ }
+
+ int sample_aspect_ratio_denominator () const {
+ return 1;
+ }
+};