content/media/fmp4/demuxer/Streams.h

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 #pragma once
michael@0 2
michael@0 3 #include <stdint.h>
michael@0 4
michael@0 5 namespace mp4_demuxer {
michael@0 6
michael@0 7 class Stream {
michael@0 8 public:
michael@0 9
michael@0 10 // Returns true on success, false on failure.
michael@0 11 // Writes number of bytes read into out_bytes_read, or 0 on EOS.
michael@0 12 // Returns true on EOS.
michael@0 13 virtual bool ReadAt(int64_t offset,
michael@0 14 uint8_t* buffer,
michael@0 15 uint32_t count,
michael@0 16 uint32_t* out_bytes_read) = 0;
michael@0 17
michael@0 18 virtual int64_t Length() const = 0;
michael@0 19 };
michael@0 20
michael@0 21 } // namespace mp4_demuxer

mercurial