21#ifndef _OGG_FILE_SINK_HH
22#define _OGG_FILE_SINK_HH
31 unsigned samplingFrequency = 0,
32 char const* configStr =
NULL,
36 unsigned bufferSize = 100000,
42 unsigned bufferSize,
char const* perFrameFileNamePrefix);
48 virtual void addData(
unsigned char const* data,
unsigned dataSize,
49 struct timeval presentationTime);
51 struct timeval presentationTime);
struct timeval fFirstPresentationTime
unsigned char * fAltBuffer
u_int32_t fPageSequenceNumber
static void ourOnSourceClosure(void *clientData)
struct timeval fAltPresentationTime
Boolean fHaveWrittenFirstFrame
void ourOnSourceClosure()
virtual void afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime)
int64_t fGranulePositionAdjustment
OggFileSink(UsageEnvironment &env, FILE *fid, unsigned samplingFrequency, char const *configStr, unsigned bufferSize, char const *perFrameFileNamePrefix)
virtual void addData(unsigned char const *data, unsigned dataSize, struct timeval presentationTime)
unsigned fAltNumTruncatedBytes
static OggFileSink * createNew(UsageEnvironment &env, char const *fileName, unsigned samplingFrequency=0, char const *configStr=NULL, unsigned bufferSize=100000, Boolean oneFilePerFrame=False)
u_int64_t fGranuleIncrementPerFrame
u_int8_t fPageHeaderBytes[27]
unsigned fSamplingFrequency
virtual Boolean continuePlaying()