[xiph-commits] r8689 - trunk/oggdsf/src/lib/core/ogg/libOOOgg
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Sat Jan 8 11:47:38 PST 2005
Author: illiminable
Date: 2005-01-08 11:47:37 -0800 (Sat, 08 Jan 2005)
New Revision: 8689
Modified:
trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPaginator.h
Log:
* Docs for paginator.
Modified: trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPaginator.h
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPaginator.h 2005-01-08 19:37:38 UTC (rev 8688)
+++ trunk/oggdsf/src/lib/core/ogg/libOOOgg/OggPaginator.h 2005-01-08 19:47:37 UTC (rev 8689)
@@ -50,26 +50,43 @@
OggPaginator(void);
virtual ~OggPaginator(void);
+ /// Set the pagination options.
bool setParameters(OggPaginatorSettings* inSettings);
- //IStampedOggPacketSink
+ /// Feed your packets in here.
virtual bool acceptStampedOggPacket(StampedOggPacket* inOggPacket);
+ /// Set the callback where your finished pages will go.
bool setPageCallback(IOggCallback* inPageCallback);
+
+ /// Finish stream flushed left over data into a page and EOS marks it.
bool finishStream();
+ /// Sets the number of headers. This is important to make sure they aren't on the same page as data packets.
void setNumHeaders(unsigned long inNumHeaders);
+
+ /// Returns the number of headers set for this paginator.
unsigned long numHeaders();
protected:
+ /// Internal delivery to the callback.
bool deliverCurrentPage();
+
+ /// Calculates and sets the checksum on the page.
bool setChecksum();
+
+ /// Creates a new oggpage to start filling.
bool createFreshPage();
+ /// Adds the packet to the page
bool addPacketToPage(StampedOggPacket* inOggPacket);
+
+ /// Adds as much packet as the settings dicate.
unsigned long addAsMuchPacketAsPossible(StampedOggPacket* inOggPacket, unsigned long inStartAt, long inRemaining);
+
+ /// Add a part of a packet to a page.
bool addPartOfPacketToPage(StampedOggPacket* inOggPacket, unsigned long inStartFrom, unsigned long inLength);
- //bool addPartOfPacketToPage(StampedOggPacket* inOggPacket, unsigned long inStartFrom);
+
unsigned long mPacketCount;
unsigned long mNumHeaders;
More information about the commits
mailing list