21#ifndef _BYTE_STREAM_FILE_SOURCE_HH
22#define _BYTE_STREAM_FILE_SOURCE_HH
24#ifndef _FRAMED_FILE_SOURCE_HH
32 unsigned preferredFrameSize = 0,
33 unsigned playTimePerFrame = 0);
39 unsigned preferredFrameSize = 0,
40 unsigned playTimePerFrame = 0);
55 unsigned preferredFrameSize,
56 unsigned playTimePerFrame);
unsigned fPreferredFrameSize
void seekToByteRelative(int64_t offset, u_int64_t numBytesToStream=0)
virtual ~ByteStreamFileSource()
ByteStreamFileSource(UsageEnvironment &env, FILE *fid, unsigned preferredFrameSize, unsigned playTimePerFrame)
virtual void doStopGettingFrames()
void seekToByteAbsolute(u_int64_t byteNumber, u_int64_t numBytesToStream=0)
static ByteStreamFileSource * createNew(UsageEnvironment &env, char const *fileName, unsigned preferredFrameSize=0, unsigned playTimePerFrame=0)
static ByteStreamFileSource * createNew(UsageEnvironment &env, FILE *fid, unsigned preferredFrameSize=0, unsigned playTimePerFrame=0)
static void fileReadableHandler(ByteStreamFileSource *source, int mask)
Boolean fHaveStartedReading
u_int64_t fileSize() const
u_int64_t fNumBytesToStream
Boolean fLimitNumBytesToStream
unsigned fPlayTimePerFrame
virtual void doGetNextFrame()