21#ifndef _FRAMED_SOURCE_HH
22#define _FRAMED_SOURCE_HH
27#ifndef _MEDIA_SOURCE_HH
37 unsigned numTruncatedBytes,
38 struct timeval presentationTime,
39 unsigned durationInMicroseconds);
43 void* afterGettingClientData,
45 void* onCloseClientData);
static Boolean lookupByName(UsageEnvironment &env, char const *sourceName, FramedSource *&resultSource)
virtual void doStopGettingFrames()
void * fAfterGettingClientData
Boolean isCurrentlyAwaitingData() const
void getNextFrame(unsigned char *to, unsigned maxSize, afterGettingFunc *afterGettingFunc, void *afterGettingClientData, onCloseFunc *onCloseFunc, void *onCloseClientData)
unsigned fNumTruncatedBytes
void * fOnCloseClientData
unsigned fDurationInMicroseconds
static void afterGetting(FramedSource *source)
Boolean fIsCurrentlyAwaitingData
virtual void doGetNextFrame()=0
FramedSource(UsageEnvironment &env)
virtual unsigned maxFrameSize() const
virtual Boolean isFramedSource() const
afterGettingFunc * fAfterGettingFunc
void() onCloseFunc(void *clientData)
struct timeval fPresentationTime
void() afterGettingFunc(void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
static void handleClosure(void *clientData)
onCloseFunc * fOnCloseFunc