From 740291cf2ae7f360b4ab119746da9ac2ef6611e4 Mon Sep 17 00:00:00 2001 From: claude-bot Date: Mon, 13 Jul 2026 12:40:00 +0000 Subject: Import xiph/ogg @ 36f969bb37559345ee03796ed625a9abd42c6db9 Snapshot for re3/reVC vendoring, per @lzcnt. Source: https://github.com/xiph/ogg (36f969bb37559345ee03796ed625a9abd42c6db9). --- doc/libogg/ogg_stream_flush_fill.html | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 doc/libogg/ogg_stream_flush_fill.html (limited to 'doc/libogg/ogg_stream_flush_fill.html') diff --git a/doc/libogg/ogg_stream_flush_fill.html b/doc/libogg/ogg_stream_flush_fill.html new file mode 100644 index 0000000..84305a5 --- /dev/null +++ b/doc/libogg/ogg_stream_flush_fill.html @@ -0,0 +1,74 @@ + + + +libogg - function - ogg_stream_flush_fill + + + + + + + + + +

libogg documentation

libogg release 1.3.4 - 20190830

+ +

ogg_stream_flush_fill

+ +

declared in "ogg/ogg.h";

+ +

This function flushes available packets into pages, similar to +ogg_stream_flush(), but +allows applications to explicitly request a specific page spill +size.

+ +

This function checks for remaining packets inside the stream and forces remaining packets into pages of approximately the requested size. +This should be used when you want to flush all remaining data from a stream. ogg_stream_flush may be used instead if a particular page size isn't important. +

This function can be used to verify that all packets have been flushed. If the return value is 0, all packets have been placed into a page. Generally speaking, it should be called in a loop until all packets are flushed, since even a single packet may span multiple pages. + +

+ + + + +
+

+int ogg_stream_flush_fill(ogg_stream_state *os, ogg_page *og, int fillbytes);
+
+
+ +

Parameters

+
+
os
+
Pointer to a previously declared ogg_stream_state struct, which represents the current logical bitstream.
+
og
+
Pointer to a page of data. The remaining packets in the stream will be placed into this page, if any remain. +
fillbytes
+
Packet data watermark in bytes.
+
+ + +

Return Values

+
+
  • 0 means that all packet data has already been flushed into pages, and there are no packets to put into the page. 0 is also returned in the case of an ogg_stream_state that has been cleared explicitly or implicitly due to an internal error.
  • +
  • +Nonzero means that remaining packets have successfully been flushed into the page.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2019 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.3.4 - 20190830

    + + + + + -- cgit v1.2.3