From f869a6f5f794dddc9bee2a9fdddecf41d99035ae Mon Sep 17 00:00:00 2001 From: Lucas Eckels Date: Mon, 6 Aug 2012 15:15:24 -0700 Subject: Add libogg 1.2.0 source. Change-Id: I4ab841589793c572c276661d1c5842de8ccd5ebb --- doc/libogg/Makefile.am | 27 +++ doc/libogg/Makefile.in | 383 ++++++++++++++++++++++++++++++ doc/libogg/bitpacking.html | 103 ++++++++ doc/libogg/datastructures.html | 59 +++++ doc/libogg/decoding.html | 104 ++++++++ doc/libogg/encoding.html | 68 ++++++ doc/libogg/general.html | 109 +++++++++ doc/libogg/index.html | 39 +++ doc/libogg/ogg_packet.html | 75 ++++++ doc/libogg/ogg_packet_clear.html | 62 +++++ doc/libogg/ogg_page.html | 74 ++++++ doc/libogg/ogg_page_bos.html | 65 +++++ doc/libogg/ogg_page_checksum_set.html | 62 +++++ doc/libogg/ogg_page_continued.html | 64 +++++ doc/libogg/ogg_page_eos.html | 65 +++++ doc/libogg/ogg_page_granulepos.html | 65 +++++ doc/libogg/ogg_page_packets.html | 75 ++++++ doc/libogg/ogg_page_pageno.html | 63 +++++ doc/libogg/ogg_page_serialno.html | 63 +++++ doc/libogg/ogg_page_version.html | 63 +++++ doc/libogg/ogg_stream_clear.html | 61 +++++ doc/libogg/ogg_stream_destroy.html | 71 ++++++ doc/libogg/ogg_stream_eos.html | 62 +++++ doc/libogg/ogg_stream_flush.html | 67 ++++++ doc/libogg/ogg_stream_init.html | 66 +++++ doc/libogg/ogg_stream_packetin.html | 72 ++++++ doc/libogg/ogg_stream_packetout.html | 85 +++++++ doc/libogg/ogg_stream_packetpeek.html | 85 +++++++ doc/libogg/ogg_stream_pagein.html | 67 ++++++ doc/libogg/ogg_stream_pageout.html | 84 +++++++ doc/libogg/ogg_stream_reset.html | 61 +++++ doc/libogg/ogg_stream_reset_serialno.html | 67 ++++++ doc/libogg/ogg_stream_state.html | 121 ++++++++++ doc/libogg/ogg_sync_buffer.html | 67 ++++++ doc/libogg/ogg_sync_clear.html | 62 +++++ doc/libogg/ogg_sync_destroy.html | 68 ++++++ doc/libogg/ogg_sync_init.html | 63 +++++ doc/libogg/ogg_sync_pageout.html | 77 ++++++ doc/libogg/ogg_sync_pageseek.html | 68 ++++++ doc/libogg/ogg_sync_reset.html | 63 +++++ doc/libogg/ogg_sync_state.html | 77 ++++++ doc/libogg/ogg_sync_wrote.html | 73 ++++++ doc/libogg/oggpack_adv.html | 64 +++++ doc/libogg/oggpack_adv1.html | 62 +++++ doc/libogg/oggpack_bits.html | 62 +++++ doc/libogg/oggpack_buffer.html | 66 +++++ doc/libogg/oggpack_bytes.html | 67 ++++++ doc/libogg/oggpack_get_buffer.html | 62 +++++ doc/libogg/oggpack_look.html | 66 +++++ doc/libogg/oggpack_look1.html | 63 +++++ doc/libogg/oggpack_read.html | 65 +++++ doc/libogg/oggpack_read1.html | 63 +++++ doc/libogg/oggpack_readinit.html | 64 +++++ doc/libogg/oggpack_reset.html | 62 +++++ doc/libogg/oggpack_write.html | 68 ++++++ doc/libogg/oggpack_writealign.html | 65 +++++ doc/libogg/oggpack_writeclear.html | 62 +++++ doc/libogg/oggpack_writecopy.html | 69 ++++++ doc/libogg/oggpack_writeinit.html | 62 +++++ doc/libogg/oggpack_writetrunc.html | 65 +++++ doc/libogg/overview.html | 44 ++++ doc/libogg/reference.html | 96 ++++++++ doc/libogg/style.css | 7 + 63 files changed, 4579 insertions(+) create mode 100644 doc/libogg/Makefile.am create mode 100644 doc/libogg/Makefile.in create mode 100644 doc/libogg/bitpacking.html create mode 100644 doc/libogg/datastructures.html create mode 100644 doc/libogg/decoding.html create mode 100644 doc/libogg/encoding.html create mode 100644 doc/libogg/general.html create mode 100644 doc/libogg/index.html create mode 100644 doc/libogg/ogg_packet.html create mode 100644 doc/libogg/ogg_packet_clear.html create mode 100644 doc/libogg/ogg_page.html create mode 100644 doc/libogg/ogg_page_bos.html create mode 100644 doc/libogg/ogg_page_checksum_set.html create mode 100644 doc/libogg/ogg_page_continued.html create mode 100644 doc/libogg/ogg_page_eos.html create mode 100644 doc/libogg/ogg_page_granulepos.html create mode 100644 doc/libogg/ogg_page_packets.html create mode 100644 doc/libogg/ogg_page_pageno.html create mode 100644 doc/libogg/ogg_page_serialno.html create mode 100644 doc/libogg/ogg_page_version.html create mode 100644 doc/libogg/ogg_stream_clear.html create mode 100644 doc/libogg/ogg_stream_destroy.html create mode 100644 doc/libogg/ogg_stream_eos.html create mode 100644 doc/libogg/ogg_stream_flush.html create mode 100644 doc/libogg/ogg_stream_init.html create mode 100644 doc/libogg/ogg_stream_packetin.html create mode 100644 doc/libogg/ogg_stream_packetout.html create mode 100644 doc/libogg/ogg_stream_packetpeek.html create mode 100644 doc/libogg/ogg_stream_pagein.html create mode 100644 doc/libogg/ogg_stream_pageout.html create mode 100644 doc/libogg/ogg_stream_reset.html create mode 100644 doc/libogg/ogg_stream_reset_serialno.html create mode 100644 doc/libogg/ogg_stream_state.html create mode 100644 doc/libogg/ogg_sync_buffer.html create mode 100644 doc/libogg/ogg_sync_clear.html create mode 100644 doc/libogg/ogg_sync_destroy.html create mode 100644 doc/libogg/ogg_sync_init.html create mode 100644 doc/libogg/ogg_sync_pageout.html create mode 100644 doc/libogg/ogg_sync_pageseek.html create mode 100644 doc/libogg/ogg_sync_reset.html create mode 100644 doc/libogg/ogg_sync_state.html create mode 100644 doc/libogg/ogg_sync_wrote.html create mode 100644 doc/libogg/oggpack_adv.html create mode 100644 doc/libogg/oggpack_adv1.html create mode 100644 doc/libogg/oggpack_bits.html create mode 100644 doc/libogg/oggpack_buffer.html create mode 100644 doc/libogg/oggpack_bytes.html create mode 100644 doc/libogg/oggpack_get_buffer.html create mode 100644 doc/libogg/oggpack_look.html create mode 100644 doc/libogg/oggpack_look1.html create mode 100644 doc/libogg/oggpack_read.html create mode 100644 doc/libogg/oggpack_read1.html create mode 100644 doc/libogg/oggpack_readinit.html create mode 100644 doc/libogg/oggpack_reset.html create mode 100644 doc/libogg/oggpack_write.html create mode 100644 doc/libogg/oggpack_writealign.html create mode 100644 doc/libogg/oggpack_writeclear.html create mode 100644 doc/libogg/oggpack_writecopy.html create mode 100644 doc/libogg/oggpack_writeinit.html create mode 100644 doc/libogg/oggpack_writetrunc.html create mode 100644 doc/libogg/overview.html create mode 100644 doc/libogg/reference.html create mode 100644 doc/libogg/style.css (limited to 'doc/libogg') diff --git a/doc/libogg/Makefile.am b/doc/libogg/Makefile.am new file mode 100644 index 0000000..c83f4e7 --- /dev/null +++ b/doc/libogg/Makefile.am @@ -0,0 +1,27 @@ +## Process this file with automake to produce Makefile.in + +docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg + +doc_DATA = bitpacking.html datastructures.html decoding.html encoding.html\ + general.html index.html ogg_packet.html ogg_packet_clear.html\ + ogg_page.html ogg_page_bos.html ogg_page_checksum_set.html\ + ogg_page_continued.html ogg_page_eos.html ogg_page_granulepos.html\ + ogg_page_packets.html ogg_page_pageno.html ogg_page_serialno.html\ + ogg_page_version.html ogg_stream_clear.html ogg_stream_destroy.html\ + ogg_stream_eos.html ogg_stream_flush.html ogg_stream_init.html\ + ogg_stream_packetin.html ogg_stream_packetout.html\ + ogg_stream_packetpeek.html ogg_stream_pagein.html\ + ogg_stream_pageout.html ogg_stream_reset.html\ + ogg_stream_reset_serialno.html ogg_stream_state.html\ + ogg_sync_buffer.html ogg_sync_clear.html ogg_sync_destroy.html\ + ogg_sync_init.html ogg_sync_pageout.html ogg_sync_pageseek.html\ + ogg_sync_reset.html ogg_sync_state.html ogg_sync_wrote.html\ + oggpack_adv.html oggpack_adv1.html oggpack_bits.html\ + oggpack_buffer.html oggpack_bytes.html oggpack_get_buffer.html\ + oggpack_look.html oggpack_look1.html oggpack_read.html\ + oggpack_read1.html oggpack_readinit.html oggpack_reset.html\ + oggpack_write.html oggpack_writealign.html oggpack_writeclear.html\ + oggpack_writecopy.html oggpack_writeinit.html oggpack_writetrunc.html\ + overview.html reference.html style.css + +EXTRA_DIST = $(doc_DATA) diff --git a/doc/libogg/Makefile.in b/doc/libogg/Makefile.in new file mode 100644 index 0000000..01d8084 --- /dev/null +++ b/doc/libogg/Makefile.in @@ -0,0 +1,383 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../.. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc/libogg +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(docdir)" +docDATA_INSTALL = $(INSTALL_DATA) +DATA = $(doc_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEBUG = @DEBUG@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBTOOL_DEPS = @LIBTOOL_DEPS@ +LIB_AGE = @LIB_AGE@ +LIB_CURRENT = @LIB_CURRENT@ +LIB_REVISION = @LIB_REVISION@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OPT = @OPT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PROFILE = @PROFILE@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SIZE16 = @SIZE16@ +SIZE32 = @SIZE32@ +SIZE64 = @SIZE64@ +STRIP = @STRIP@ +USIZE16 = @USIZE16@ +USIZE32 = @USIZE32@ +VERSION = @VERSION@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +doc_DATA = bitpacking.html datastructures.html decoding.html encoding.html\ + general.html index.html ogg_packet.html ogg_packet_clear.html\ + ogg_page.html ogg_page_bos.html ogg_page_checksum_set.html\ + ogg_page_continued.html ogg_page_eos.html ogg_page_granulepos.html\ + ogg_page_packets.html ogg_page_pageno.html ogg_page_serialno.html\ + ogg_page_version.html ogg_stream_clear.html ogg_stream_destroy.html\ + ogg_stream_eos.html ogg_stream_flush.html ogg_stream_init.html\ + ogg_stream_packetin.html ogg_stream_packetout.html\ + ogg_stream_packetpeek.html ogg_stream_pagein.html\ + ogg_stream_pageout.html ogg_stream_reset.html\ + ogg_stream_reset_serialno.html ogg_stream_state.html\ + ogg_sync_buffer.html ogg_sync_clear.html ogg_sync_destroy.html\ + ogg_sync_init.html ogg_sync_pageout.html ogg_sync_pageseek.html\ + ogg_sync_reset.html ogg_sync_state.html ogg_sync_wrote.html\ + oggpack_adv.html oggpack_adv1.html oggpack_bits.html\ + oggpack_buffer.html oggpack_bytes.html oggpack_get_buffer.html\ + oggpack_look.html oggpack_look1.html oggpack_read.html\ + oggpack_read1.html oggpack_readinit.html oggpack_reset.html\ + oggpack_write.html oggpack_writealign.html oggpack_writeclear.html\ + oggpack_writecopy.html oggpack_writeinit.html oggpack_writetrunc.html\ + overview.html reference.html style.css + +EXTRA_DIST = $(doc_DATA) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/libogg/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/libogg/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +uninstall-info-am: +install-docDATA: $(doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)" + @list='$(doc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ + $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ + done + +uninstall-docDATA: + @$(NORMAL_UNINSTALL) + @list='$(doc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ + rm -f "$(DESTDIR)$(docdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(docdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-docDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-docDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-docDATA install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-docDATA uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/doc/libogg/bitpacking.html b/doc/libogg/bitpacking.html new file mode 100644 index 0000000..20469e5 --- /dev/null +++ b/doc/libogg/bitpacking.html @@ -0,0 +1,103 @@ + + + +libogg - Bitpacking Functions + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

Bitpacking Functions

+

Libogg contains a basic bitpacking library that is useful for manipulating data within a buffer. +

+All the libogg specific functions are declared in "ogg/ogg.h". +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
functionpurpose
oggpack_writeinitInitializes a buffer for writing using this bitpacking library.
oggpack_writecheckAsynchronously checks error status of bitpacker write buffer.
oggpack_resetClears and resets the buffer to the initial position.
oggpack_writeclearFrees the memory used by the buffer.
oggpack_readinitInitializes a buffer for reading using this bitpacking library.
oggpack_writeWrites bytes to the specified location within the buffer.
oggpack_lookLook at a specified number of bits, <=32, without advancing the location pointer.
oggpack_look1Looks at one bit without advancing the location pointer.
oggpack_advAdvances the location pointer by a specified number of bits.
oggpack_adv1Advances the location pointer by one bit.
oggpack_readReads a specified number of bits from the buffer.
oggpack_read1Reads one bit from the buffer.
oggpack_bytesReturns the total number of bytes contained within the buffer.
oggpack_bitsReturns the total number of bits contained within the buffer.
oggpack_get_bufferReturns a pointer to the buffer encapsulated within the oggpack_buffer struct.
+ +

+


+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/datastructures.html b/doc/libogg/datastructures.html new file mode 100644 index 0000000..b339a0a --- /dev/null +++ b/doc/libogg/datastructures.html @@ -0,0 +1,59 @@ + + + +libogg - Base Data Structures + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

Base Data Structures

+

Libogg uses several data structures to hold data and state information. +

+All the libogg specific data structures are declared in "ogg/ogg.h". +

+ + + + + + + + + + + + + + + + + + + + + + +
datatypepurpose
ogg_pageThis structure encapsulates data into one ogg bitstream page.
ogg_stream_stateThis structure contains current encode/decode data for a logical bitstream.
ogg_packetThis structure encapsulates the data and metadata for a single Ogg packet.
ogg_sync_stateContains bitstream synchronization information.
+ +

+


+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/decoding.html b/doc/libogg/decoding.html new file mode 100644 index 0000000..322d4a9 --- /dev/null +++ b/doc/libogg/decoding.html @@ -0,0 +1,104 @@ + + + +libogg - Decoding + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

Decoding

+

Libogg contains a set of functions used in the decoding process. +

+All the libogg specific functions are declared in "ogg/ogg.h". +

+

Decoding is based around the ogg synchronization layer. The ogg_sync_state struct coordinates between incoming data and the decoder. We read data into the synchronization layer, submit the data to the stream, and output raw packets to the decoder. +

Decoding through the Ogg layer follows a specific logical sequence. A read loop follows these logical steps: +

+

In practice, streams are more complex, and Ogg also must handle headers, incomplete or dropped pages, and other errors in input. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
functionpurpose
ogg_sync_initInitializes an Ogg bitstream.
ogg_sync_clearClears the status information from the synchronization struct. +
ogg_sync_resetResets the synchronization status to initial values.
ogg_sync_destroyFrees the synchronization struct.
ogg_sync_checkCheck for asynchronous errors.
ogg_sync_bufferExposes a buffer from the synchronization layer in order to read data.
ogg_sync_wroteTells the synchronization layer how many bytes were written into the buffer.
ogg_sync_pageseekFinds the borders of pages and resynchronizes the stream.
ogg_sync_pageoutOutputs a page from the synchronization layer.
ogg_stream_pageinSubmits a complete page to the stream layer.
ogg_stream_packetoutOutputs a packet to the codec-specific decoding engine.
ogg_stream_packetpeekProvides access to the next packet in the bitstream without +advancing decoding.
+ +

+


+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/encoding.html b/doc/libogg/encoding.html new file mode 100644 index 0000000..61a650f --- /dev/null +++ b/doc/libogg/encoding.html @@ -0,0 +1,68 @@ + + + +libogg - Encoding + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

Encoding

+

Libogg contains a set of functions used in the encoding process. +

+All the libogg specific functions are declared in "ogg/ogg.h". +

+

When encoding, the encoding engine will output raw packets which must be placed into an Ogg bitstream. +

Raw packets are inserted into the stream, and an ogg_page is output when enough packets have been written to create a full page. The pages output are pointers to buffered packet segments, and can then be written out and saved as an ogg stream. +

There are a couple of basic steps: +

+

+ + + + + + + + + + + + + + + + + + + + +
functionpurpose
ogg_stream_packetinSubmits a raw packet to the streaming layer, so that it can be formed into a page.
ogg_stream_ioveciniovec version of ogg_stream_packetin() above.
ogg_stream_pageoutOutputs a completed page if the stream contains enough packets to form a full page. +
ogg_stream_flushForces any remaining packets in the stream to be returned as a page of any size. +
+ +

+
+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/general.html b/doc/libogg/general.html new file mode 100644 index 0000000..59de3f3 --- /dev/null +++ b/doc/libogg/general.html @@ -0,0 +1,109 @@ + + + +libogg - General Functions + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

General Functions

+

Libogg contains several functions which are generally useful when using Ogg streaming, whether encoding or decoding. +

+All the libogg specific functions are declared in "ogg/ogg.h". +

+

These functions can be used to manipulate some of the basic elements of Ogg - streams and pages. Streams and pages are important during both the encode and decode process. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
functionpurpose
ogg_stream_initInitializes an Ogg bitstream.
ogg_stream_clearClears the storage within the Ogg stream, but does not free the stream itself. +
ogg_stream_resetResets the stream status to its initial position.
ogg_stream_destroyFrees the entire Ogg stream.
ogg_stream_checkCheck for asyncronous errors.
ogg_stream_eosIndicates whether we are at the end of the stream.
ogg_page_versionReturns the version of ogg_page that this stream/page uses
ogg_page_continuedIndicates if the current page contains a continued packet from the last page.
ogg_page_packetsIndicates the number of packets contained in a page.
ogg_page_bosIndicates if the current page is the beginning of the stream.
ogg_page_eosIndicates if the current page is the end of the stream.
ogg_page_granuleposReturns the precise playback location of this page.
ogg_page_serialnoReturns the unique serial number of the logical bitstream associated with this page.
ogg_page_pagenoReturns the sequential page number for this page.
ogg_packet_clearClears the ogg_packet structure.
ogg_page_checksum_setChecksums an ogg_page.
+ +

+


+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/index.html b/doc/libogg/index.html new file mode 100644 index 0000000..d51e068 --- /dev/null +++ b/doc/libogg/index.html @@ -0,0 +1,39 @@ + + + +libogg - Documentation + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

Libogg Documentation

+ +

+Libogg contains necessary functionality to create, decode, and work with Ogg bitstreams. +

This document explains how to use the libogg API in detail. +

+libogg api overview
+libogg api reference
+ +

+


+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/ogg_packet.html b/doc/libogg/ogg_packet.html new file mode 100644 index 0000000..ddd57df --- /dev/null +++ b/doc/libogg/ogg_packet.html @@ -0,0 +1,75 @@ + + + +libogg - datatype - ogg_packet + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

ogg_packet

+ +

declared in "ogg/ogg.h"

+ +

+The ogg_packet struct encapsulates the data for a single raw packet of data +and is used to transfer data between the ogg framing layer and the handling codec. +

+ + + + + +
+

+typedef struct {
+  unsigned char *packet;
+  long  bytes;
+  long  b_o_s;
+  long  e_o_s;
+
+  ogg_int64_t  granulepos;
+  ogg_int64_t  packetno; 
+
+} ogg_packet;
+
+
+ +

Relevant Struct Members

+
+
packet
+
Pointer to the packet's data. This is treated as an opaque type by the ogg layer.
+
bytes
+
Indicates the size of the packet data in bytes. Packets can be of arbitrary size.
+
b_o_s
+
Flag indicating whether this packet begins a logical bitstream. 1 indicates this is the first packet, 0 indicates any other position in the stream.
+
e_o_s
+
Flag indicating whether this packet ends a bitstream. 1 indicates the last packet, 0 indicates any other position in the stream.
+
granulepos
+
A number indicating the position of this packet in the decoded data. This is the last sample, frame or other unit of information ('granule') that can be completely decoded from this packet.
+
packetno
+
Sequential number of this packet in the ogg bitstream.
+
+ + +

+
+ + + + + + + + +

copyright © 2000-2010 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.2.0 - 20100325

+ + + + diff --git a/doc/libogg/ogg_packet_clear.html b/doc/libogg/ogg_packet_clear.html new file mode 100644 index 0000000..fa3ef17 --- /dev/null +++ b/doc/libogg/ogg_packet_clear.html @@ -0,0 +1,62 @@ + + + +libogg - function - ogg_packet_clear + + + + + + + + + +

libogg documentation

libogg release 1.2.0 - 20100325

+ +

ogg_packet_clear

+ +

declared in "ogg/ogg.h";

+ +

This function clears the memory used by the ogg_packet struct, and frees the internal allocated memory, but does not free +the structure itself. +

+ + + + +
+

+int ogg_packet_clear(ogg_packet *op);
+
+
+ +

Parameters

+
+
os
+
Pointer to the ogg_packet struct to be cleared.
+
+ + +

Return Values

+
+
  • +None.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page.html b/doc/libogg/ogg_page.html new file mode 100644 index 0000000..e7867c6 --- /dev/null +++ b/doc/libogg/ogg_page.html @@ -0,0 +1,74 @@ + + + +libogg - datatype - ogg_page + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page

    + +

    declared in "ogg/ogg.h"

    + +

    +The ogg_page struct encapsulates the data for an Ogg page. +

    +Ogg pages are the fundamental unit of framing and interleave in an ogg bitstream. +They are made up of packet segments of 255 bytes each. There can be as many as +255 packet segments per page, for a maximum page size of a little under 64 kB. +This is not a practical limitation as the segments can be joined across +page boundaries allowing packets of arbitrary size. In practice pages are +usually around 4 kB. +

    +

    For a complete description of ogg pages and headers, please refer to the framing document. + + + + + +
    +
    
    +typedef struct {
    +  unsigned char *header;
    +  long           header_len;
    +  unsigned char *body;
    +  long           body_len;
    +} ogg_page;
    +
    +
    + +

    Relevant Struct Members

    +
    +
    header
    +
    Pointer to the page header for this page. The exact contents of this header are defined in the framing spec document.
    +
    header_len
    +
    Length of the page header in bytes. +
    body
    +
    Pointer to the data for this page.
    +
    body_len
    +
    Length of the body data in bytes.
    +
    + + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/ogg_page_bos.html b/doc/libogg/ogg_page_bos.html new file mode 100644 index 0000000..1fd0280 --- /dev/null +++ b/doc/libogg/ogg_page_bos.html @@ -0,0 +1,65 @@ + + + +libogg - function - ogg_page_bos + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_bos

    + +

    declared in "ogg/ogg.h";

    + +

    Indicates whether this page is at the beginning of the logical bitstream. +

    +

    + + + + +
    +
    
    +int ogg_page_bos(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +greater than 0 if this page is the beginning of a bitstream.
  • +
  • +0 if this page is from any other location in the stream.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_checksum_set.html b/doc/libogg/ogg_page_checksum_set.html new file mode 100644 index 0000000..daa188e --- /dev/null +++ b/doc/libogg/ogg_page_checksum_set.html @@ -0,0 +1,62 @@ + + + +libogg - function - ogg_page_checksum_set + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_checksum_set

    + +

    declared in "ogg/ogg.h";

    + +

    Checksums an ogg_page. +

    +

    + + + + +
    +
    
    +int ogg_page_checksum_set(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to an ogg_page struct.
    +
    + + +

    Return Values

    +
    +None. +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_continued.html b/doc/libogg/ogg_page_continued.html new file mode 100644 index 0000000..ea860b1 --- /dev/null +++ b/doc/libogg/ogg_page_continued.html @@ -0,0 +1,64 @@ + + + +libogg - function - ogg_page_version + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_continued

    + +

    declared in "ogg/ogg.h";

    + +

    Indicates whether this page contains packet data which has been continued from the previous page. +

    + + + + +
    +
    
    +int ogg_page_continued(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +1 if this page contains packet data continued from the last page.
  • +
  • +0 if this page does not contain continued data.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_eos.html b/doc/libogg/ogg_page_eos.html new file mode 100644 index 0000000..e3c4c6c --- /dev/null +++ b/doc/libogg/ogg_page_eos.html @@ -0,0 +1,65 @@ + + + +libogg - function - ogg_page_eos + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_eos

    + +

    declared in "ogg/ogg.h";

    + +

    Indicates whether this page is at the end of the logical bitstream. +

    +

    + + + + +
    +
    
    +int ogg_page_eos(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +greater than zero if this page contains the end of a bitstream.
  • +
  • +0 if this page is from any other location in the stream.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_granulepos.html b/doc/libogg/ogg_page_granulepos.html new file mode 100644 index 0000000..936ff56 --- /dev/null +++ b/doc/libogg/ogg_page_granulepos.html @@ -0,0 +1,65 @@ + + + +libogg - function - ogg_page_granulepos + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_granulepos

    + +

    declared in "ogg/ogg.h";

    + +

    Returns the exact granular position of the packet data contained at the end of this page. +

    This is useful for tracking location when seeking or decoding. +

    For example, in audio codecs this position is the pcm sample number and in video this is the frame number. +

    +

    + + + + +
    +
    
    +ogg_in64_t ogg_page_granulepos(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +n is the specific last granular position of the decoded data contained in the page.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_packets.html b/doc/libogg/ogg_page_packets.html new file mode 100644 index 0000000..05203e1 --- /dev/null +++ b/doc/libogg/ogg_page_packets.html @@ -0,0 +1,75 @@ + + + +libogg - function - ogg_page_packets + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_packets

    + +

    declared in "ogg/ogg.h";

    + +

    Returns the number of packets that are completed on this page. If the +leading packet is begun on a previous page, but ends on this page, it's +counted. +

    +

    + + + + +
    +
    
    +int ogg_page_packets(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +If a page consists of a packet begun on a previous page, and a new packet +begun (but not completed) on this page, the return will be:
    +
    +ogg_page_packets(page) will return 1,
    +ogg_page_continued(paged) will return non-zero.
    +

    +If a page happens to be a single packet that was begun on a previous page, and +spans to the next page (in the case of a three or more page packet), the +return will be:
    +
    +ogg_page_packets(page) will return 0,
    +ogg_page_continued(page) will return non-zero.
    +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_pageno.html b/doc/libogg/ogg_page_pageno.html new file mode 100644 index 0000000..f8983d7 --- /dev/null +++ b/doc/libogg/ogg_page_pageno.html @@ -0,0 +1,63 @@ + + + +libogg - function - ogg_page_pageno + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_pageno

    + +

    declared in "ogg/ogg.h";

    + +

    Returns the sequential page number. +

    This is useful for ordering pages or determining when pages have been lost. +

    + + + + +
    +
    
    +long ogg_page_pageno(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +n is the page number for this page.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_serialno.html b/doc/libogg/ogg_page_serialno.html new file mode 100644 index 0000000..b2a63ca --- /dev/null +++ b/doc/libogg/ogg_page_serialno.html @@ -0,0 +1,63 @@ + + + +libogg - function - ogg_page_serialno + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_serialno

    + +

    declared in "ogg/ogg.h";

    + +

    Returns the unique serial number for the logical bitstream of this page. Each page contains the serial number for the logical bitstream that it belongs to. +

    +

    + + + + +
    +
    
    +int ogg_page_serialno(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +n is the serial number for this page.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_page_version.html b/doc/libogg/ogg_page_version.html new file mode 100644 index 0000000..429e89a --- /dev/null +++ b/doc/libogg/ogg_page_version.html @@ -0,0 +1,63 @@ + + + +libogg - function - ogg_page_version + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_page_version

    + +

    declared in "ogg/ogg.h";

    + +

    This function returns the version of ogg_page used in this page. +

    In current versions of libogg, all ogg_page structs have the same version, so 0 should always be returned. +

    + + + + +
    +
    
    +int ogg_page_version(ogg_page *og);
    +
    +
    +
    + +

    Parameters

    +
    +
    og
    +
    Pointer to the current ogg_page struct.
    +
    + + +

    Return Values

    +
    +
  • +n is the version number. In the current version of Ogg, the version number is always 0. Nonzero return values indicate an error in page encoding.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_clear.html b/doc/libogg/ogg_stream_clear.html new file mode 100644 index 0000000..a3cf6b6 --- /dev/null +++ b/doc/libogg/ogg_stream_clear.html @@ -0,0 +1,61 @@ + + + +libogg - function - ogg_stream_clear + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_clear

    + +

    declared in "ogg/ogg.h";

    + +

    This function clears and frees the internal memory used by the ogg_stream_state struct, but does not free the structure itself. It is safe to call ogg_stream_clear on the same structure more than once. +

    + + + + +
    +
    
    +int ogg_stream_clear(ogg_stream_state *os);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the ogg_stream_state struct to be cleared.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_destroy.html b/doc/libogg/ogg_stream_destroy.html new file mode 100644 index 0000000..1b4349b --- /dev/null +++ b/doc/libogg/ogg_stream_destroy.html @@ -0,0 +1,71 @@ + + + +libogg - function - ogg_stream_destroy + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_destroy

    + +

    declared in "ogg/ogg.h";

    + +

    This function frees the internal memory used by +the ogg_stream_state struct as +well as the structure itself. + +

    This should be called when you are done working with an ogg stream. +It can also be called to make sure that the struct does not exist.

    + +

    It calls free() on its argument, so if the ogg_stream_state +is not malloc()'d or will otherwise be freed by your own code, use +ogg_stream_clear instead.

    + +

    + + + + +
    +
    
    +int ogg_stream_destroy(ogg_stream_state *os);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the ogg_stream_state struct to be destroyed.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_eos.html b/doc/libogg/ogg_stream_eos.html new file mode 100644 index 0000000..e8cbe70 --- /dev/null +++ b/doc/libogg/ogg_stream_eos.html @@ -0,0 +1,62 @@ + + + +libogg - function - ogg_stream_eos + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_eos

    + +

    declared in "ogg/ogg.h";

    + +

    This function indicates whether we have reached the end of the stream or not. +

    + + + + +
    +
    
    +int ogg_stream_eos(ogg_stream_state *os);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the current ogg_stream_state struct.
    +
    + + +

    Return Values

    +
    +
  • 1 if we are at the end of the stream or an internal error occurred.
  • +
  • +0 if we have not yet reached the end of the stream.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_flush.html b/doc/libogg/ogg_stream_flush.html new file mode 100644 index 0000000..a339d14 --- /dev/null +++ b/doc/libogg/ogg_stream_flush.html @@ -0,0 +1,67 @@ + + + +libogg - function - ogg_stream_flush + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_flush

    + +

    declared in "ogg/ogg.h";

    + +

    This function checks for remaining packets inside the stream and forces remaining packets into a page, regardless of the size of the page. +

    This should only be used when you want to flush an undersized page from the middle of the stream. Otherwise, ogg_stream_pageout should always be used. +

    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. + +

    + + + + +
    +
    
    +int ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
    +
    +
    + +

    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. +
    + + +

    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-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_init.html b/doc/libogg/ogg_stream_init.html new file mode 100644 index 0000000..7342773 --- /dev/null +++ b/doc/libogg/ogg_stream_init.html @@ -0,0 +1,66 @@ + + + +libogg - function - ogg_stream_init + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_init

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to initialize an ogg_stream_state struct and allocates appropriate memory in preparation for encoding or decoding. +

    It also assigns the stream a given serial number. +

    + + + + +
    +
    
    +int ogg_stream_init(ogg_stream_state *os,int serialno);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the ogg_stream_state struct that we will be initializing.
    +
    serialno
    +
    Serial number that we will attach to this stream.
    +
    + + +

    Return Values

    +
    +
  • +0 if successful
  • +
  • +-1 if unsuccessful.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_packetin.html b/doc/libogg/ogg_stream_packetin.html new file mode 100644 index 0000000..b683c95 --- /dev/null +++ b/doc/libogg/ogg_stream_packetin.html @@ -0,0 +1,72 @@ + + + +libogg - function - ogg_stream_packetin + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_packetin

    + +

    declared in "ogg/ogg.h";

    + +

    This function submits a packet to the bitstream for page +encapsulation. After this is called, more packets can be submitted, +or pages can be written out.

    + +

    In a typical encoding situation, this should be used after filling a +packet with data. +The data in the packet is copied into the internal storage managed by +the ogg_stream_state, so the caller +is free to alter the contents of op after this call has returned. + +

    + + + + +
    +
    
    +int ogg_stream_packetin(ogg_stream_state *os,ogg_packet *op);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to a previously declared ogg_stream_state struct.
    +
    op
    +
    Pointer to the packet we are putting into the bitstream. +
    + + +

    Return Values

    +
    +
  • +0 returned on success. -1 returned in the event of internal error.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_packetout.html b/doc/libogg/ogg_stream_packetout.html new file mode 100644 index 0000000..fc7ffad --- /dev/null +++ b/doc/libogg/ogg_stream_packetout.html @@ -0,0 +1,85 @@ + + + +libogg - function - ogg_stream_packetout + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_packetout

    + +

    declared in "ogg/ogg.h";

    + +

    This function assembles a data packet for output to the codec +decoding engine. The data has already been submitted to the +ogg_stream_state and broken +into segments. Each successive call returns the next complete packet +built from those segments.

    + +

    In a typical decoding situation, this should be used after calling +ogg_stream_pagein() to submit a +page of data to the bitstream. If the function returns 0, more data is +needed and another page should be submitted. A non-zero return value +indicates successful return of a packet.

    + +

    The op is filled in with pointers to memory managed by +the stream state and is only valid until the next call. The client +must copy the packet data if a longer lifetime is required.

    + +

    + + + + +
    +
    
    +int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to a previously declared ogg_stream_state struct. Before this function is called, an ogg_page should be submitted to the stream using ogg_stream_pagein().
    +
    op
    +
    Pointer to the packet to be filled in with pointers to the new data. +This will typically be submitted to a codec for decode after this +function is called. The pointers are only valid until the next call +on this stream state.
    +
    + + +

    Return Values

    +
    + +
    + +

    + +
    + + + + + + + + + +

    copyright © 2000-2010 xiph.org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/ogg_stream_packetpeek.html b/doc/libogg/ogg_stream_packetpeek.html new file mode 100644 index 0000000..d2d8562 --- /dev/null +++ b/doc/libogg/ogg_stream_packetpeek.html @@ -0,0 +1,85 @@ + + + +libogg - function - ogg_stream_packetpeek + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_packetpeek

    + +

    declared in "ogg/ogg.h";

    + +

    This function attempts to assemble a raw data packet and returns +it without advancing decoding.

    + +

    In a typical situation, this would be called +speculatively after ogg_stream_pagein() to check +the packet contents before handing it off to a codec for +decompression. To advance page decoding and remove +the packet from the sync structure, call +ogg_stream_packetout().

    + +

    + + + + + +
    +
    
    +int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to a previously declared +ogg_stream_state struct. Before this +function is called, an ogg_page should be +submitted to the stream using +ogg_stream_pagein().
    +
    op
    +
    Pointer to the next packet available in the bitstream, if +any. A NULL value may be passed in the case of a simple "is there a +packet?" check.
    +
    + + +

    Return Values

    +
    + +
    + + +

    + +
    + + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_pagein.html b/doc/libogg/ogg_stream_pagein.html new file mode 100644 index 0000000..316ba30 --- /dev/null +++ b/doc/libogg/ogg_stream_pagein.html @@ -0,0 +1,67 @@ + + + +libogg - function - ogg_stream_pagein + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_pagein

    + +

    declared in "ogg/ogg.h";

    + +

    This function adds a complete page to the bitstream. +

    In a typical decoding situation, this function would be called after using ogg_sync_pageout to create a valid ogg_page struct. +

    Internally, this function breaks the page into packet segments in preparation for outputting a valid packet to the codec decoding layer. + +

    + + + + +
    +
    
    +int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to a previously declared ogg_stream struct, which represents the current logical bitstream.
    +
    og
    +
    Pointer to a page of data. The data inside this page is being submitted to the streaming layer in order to be allocated into packets. +
    + + +

    Return Values

    +
    +
  • -1 indicates failure. This means that the serial number of the page did not match the serial number of the bitstream, the page version was incorrect, or an internal error accurred.
  • +
  • +0 means that the page was successfully submitted to the bitstream.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_pageout.html b/doc/libogg/ogg_stream_pageout.html new file mode 100644 index 0000000..c07a975 --- /dev/null +++ b/doc/libogg/ogg_stream_pageout.html @@ -0,0 +1,84 @@ + + + +libogg - function - ogg_stream_pageout + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_pageout

    + +

    declared in "ogg/ogg.h";

    + +

    This function forms packets into pages.

    + +

    In a typical encoding situation, this would be called after using ogg_stream_packetin() to submit +data packets to the bitstream. Internally, this function assembles +the accumulated packet bodies into an Ogg page suitable for writing +to a stream. The function is typically called in a loop until there +are no more pages ready for output.

    + +

    This function will only return a page when a "reasonable" amount of +packet data is available. Normally this is appropriate since it +limits the overhead of the Ogg page headers in the bitstream, and so +calling ogg_stream_pageout() after ogg_stream_packetin() should be the +common case. Call ogg_stream_flush() +if immediate page generation is desired. This may be occasionally +necessary, for example, to limit the temporal latency of a variable +bitrate stream.

    + +

    + + + + +
    +
    
    +int ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to a previously declared ogg_stream struct, which represents the current logical bitstream.
    +
    og
    +
    Pointer to an ogg_page structure to fill +in. Data pointed to is owned by libogg. The structure is valid until the +next call to ogg_stream_pageout(), ogg_stream_packetin(), or +ogg_stream_flush().
    +
    + + +

    Return Values

    +
    +
  • Zero means that insufficient data has accumulated to fill a page, or an internal error occurred. In +this case og is not modified.
  • +
  • Non-zero means that a page has been completed and returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 xiph.org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_reset.html b/doc/libogg/ogg_stream_reset.html new file mode 100644 index 0000000..88d4e19 --- /dev/null +++ b/doc/libogg/ogg_stream_reset.html @@ -0,0 +1,61 @@ + + + +libogg - function - ogg_stream_reset + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_reset

    + +

    declared in "ogg/ogg.h";

    + +

    This function sets values in the ogg_stream_state struct back to initial values. +

    + + + + +
    +
    
    +int ogg_stream_reset(ogg_stream_state *os);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the ogg_stream_state struct to be cleared.
    +
    + + +

    Return Values

    +
    +
  • +0 indicates success. nonzero is returned on internal error.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_reset_serialno.html b/doc/libogg/ogg_stream_reset_serialno.html new file mode 100644 index 0000000..6f2688c --- /dev/null +++ b/doc/libogg/ogg_stream_reset_serialno.html @@ -0,0 +1,67 @@ + + + +libogg - function - ogg_stream_reset_serialno + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_reset

    + +

    declared in "ogg/ogg.h";

    + +

    This function reinitializes the values in the +ogg_stream_state, +just like ogg_stream_reset(). +Additionally, it sets the stream serial number to the given value.

    + +

    + + + + +
    +
    
    +int ogg_stream_reset_serialno(ogg_stream_state *os, int serialno);
    +
    +
    + +

    Parameters

    +
    +
    os
    +
    Pointer to the ogg_stream_state struct to be cleared.
    +
    serialno
    +
    New stream serial number to use
    +
    + + +

    Return Values

    +
    +
  • +0 indicates success. nonzero is returned on internal error.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_stream_state.html b/doc/libogg/ogg_stream_state.html new file mode 100644 index 0000000..e903f03 --- /dev/null +++ b/doc/libogg/ogg_stream_state.html @@ -0,0 +1,121 @@ + + + +libogg - datatype - ogg_stream_state + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_stream_state

    + +

    declared in "ogg/ogg.h"

    + +

    +The ogg_stream_state struct tracks the current encode/decode state of the current logical bitstream. +

    + + + + + +
    +
    
    +typedef struct {
    +  unsigned char   *body_data;    /* bytes from packet bodies */
    +  long    body_storage;          /* storage elements allocated */
    +  long    body_fill;             /* elements stored; fill mark */
    +  long    body_returned;         /* elements of fill returned */
    +
    +
    +  int     *lacing_vals;    /* The values that will go to the segment table */
    +  ogg_int64_t *granule_vals;      /* granulepos values for headers. Not compact
    +                             this way, but it is simple coupled to the
    +                             lacing fifo */
    +  long    lacing_storage;
    +  long    lacing_fill;
    +  long    lacing_packet;
    +  long    lacing_returned;
    +
    +  unsigned char    header[282];      /* working space for header encode */
    +  int              header_fill;
    +
    +  int     e_o_s;          /* set when we have buffered the last packet in the
    +                             logical bitstream */
    +  int     b_o_s;          /* set after we've written the initial page
    +                             of a logical bitstream */
    +  long     serialno;
    +  int      pageno;
    +  ogg_int64_t  packetno;      /* sequence number for decode; the framing
    +                             knows where there's a hole in the data,
    +                             but we need coupling so that the codec
    +                             (which is in a seperate abstraction
    +                             layer) also knows about the gap */
    +  ogg_int64_t   granulepos;
    +
    +} ogg_stream_state;
    +
    +
    + +

    Relevant Struct Members

    +
    +
    body_data
    +
    Pointer to data from packet bodies.
    +
    body_storage
    +
    Storage allocated for bodies in bytes (filled or unfilled).
    +
    body_fill
    +
    Amount of storage filled with stored packet bodies.
    +
    body_returned
    +
    Number of elements returned from storage.
    +
    lacing_vals
    +
    String of lacing values for the packet segments within the current page. Each value is a byte, indicating packet segment length.
    +
    granule_vals
    +
    Pointer to the lacing values for the packet segments within the current page.
    +
    lacing_storage
    +
    Total amount of storage (in bytes) allocated for storing lacing values.
    +
    lacing_fill
    +
    Fill marker for the current vs. total allocated storage of lacing values for the page.
    +
    lacing_packet
    +
    Lacing value for current packet segment.
    +
    lacing_returned
    +
    Number of lacing values returned from lacing_storage.
    +
    header
    +
    Temporary storage for page header during encode process, while the header is being created.
    +
    header_fill
    +
    Fill marker for header storage allocation. Used during the header creation process.
    +
    e_o_s
    +
    Marker set when the last packet of the logical bitstream has been buffered.
    +
    b_o_s
    +
    Marker set after we have written the first page in the logical bitstream.
    +
    serialno
    +
    Serial number of this logical bitstream.
    +
    pageno
    +
    Number of the current page within the stream.
    +
    packetno
    +
    Number of the current packet.
    +
    granulepos
    +
    Exact position of decoding/encoding process.
    +
    + + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/ogg_sync_buffer.html b/doc/libogg/ogg_sync_buffer.html new file mode 100644 index 0000000..ed8b286 --- /dev/null +++ b/doc/libogg/ogg_sync_buffer.html @@ -0,0 +1,67 @@ + + + +libogg - function - ogg_sync_buffer + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_buffer

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to provide a properly-sized buffer for writing. +

    Buffer space which has already been returned is cleared, and the buffer is extended as necessary by the size plus some additional bytes. Within the current implementation, an extra 4096 bytes are allocated, but applications should not rely on this additional buffer space. +

    The buffer exposed by this function is empty internal storage from the ogg_sync_state struct, beginning at the fill mark within the struct. +

    A pointer to this buffer is returned to be used by the calling application. + +

    + + + + +
    +
    
    +char *ogg_sync_buffer(ogg_sync_state *oy, long size);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    size
    +
    Size of the desired buffer. The actual size of the buffer returned will be this size plus some extra bytes (currently 4096). +
    + + +

    Return Values

    +
    +
  • +Returns a pointer to the newly allocated buffer or NULL on error
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_clear.html b/doc/libogg/ogg_sync_clear.html new file mode 100644 index 0000000..02ae40c --- /dev/null +++ b/doc/libogg/ogg_sync_clear.html @@ -0,0 +1,62 @@ + + + +libogg - function - ogg_sync_clear + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_clear

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to free the internal storage of an ogg_sync_state struct and resets the struct to the initial state. To free the entire struct, ogg_sync_destroy should be used instead. In situations where the struct needs to be reset but the internal storage does not need to be freed, ogg_sync_reset should be used. + +

    + + + + +
    +
    
    +int ogg_sync_clear(ogg_sync_state *oy);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_destroy.html b/doc/libogg/ogg_sync_destroy.html new file mode 100644 index 0000000..c73cd22 --- /dev/null +++ b/doc/libogg/ogg_sync_destroy.html @@ -0,0 +1,68 @@ + + + +libogg - function - ogg_sync_destroy + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_destroy

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to destroy an ogg_sync_state struct and free all memory used.

    + +

    Note this calls free() on its argument so you should only use this +function if you've allocated the ogg_sync_state on the heap. If it is +allocated on the stack, or it will otherwise be freed by your +own code, use ogg_sync_clear instead +to release just the internal memory.

    + +

    + + + + +
    +
    
    +int ogg_sync_destroy(ogg_sync_state *oy);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_init.html b/doc/libogg/ogg_sync_init.html new file mode 100644 index 0000000..15e2b78 --- /dev/null +++ b/doc/libogg/ogg_sync_init.html @@ -0,0 +1,63 @@ + + + +libogg - function - ogg_sync_init + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_init

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to initialize an ogg_sync_state struct to a known initial value in preparation for manipulation of an Ogg bitstream. +

    The ogg_sync struct is important when decoding, as it synchronizes retrieval and return of data. + +

    + + + + +
    +
    
    +int ogg_sync_init(ogg_sync_state *oy);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct. After this function call, this struct has been initialized.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_pageout.html b/doc/libogg/ogg_sync_pageout.html new file mode 100644 index 0000000..982168d --- /dev/null +++ b/doc/libogg/ogg_sync_pageout.html @@ -0,0 +1,77 @@ + + + +libogg - function - ogg_sync_pageout + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_pageout

    + +

    declared in "ogg/ogg.h";

    + +

    This function takes the data stored in the buffer of the ogg_sync_state struct and inserts them into an ogg_page. + +

    In an actual decoding loop, this function should be called first to ensure that the buffer is cleared. The example code below illustrates a clean reading loop which will fill and output pages. +

    Caution:This function should be called before reading into the buffer to ensure that data does not remain in the ogg_sync_state struct. Failing to do so may result in a memory leak. See the example code below for details. + +

    + + + + +
    +
    
    +int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct. Normally, the internal storage of this struct should be filled with newly read data and verified using ogg_sync_wrote.
    +
    og
    +
    Pointer to page struct filled by this function. +
    + + +

    Return Values

    +
    +
  • -1 returned if stream has not yet captured sync (bytes were skipped).
  • +
  • 0 returned if more data needed or an internal error occurred.
  • +
  • 1 indicated a page was synced and returned.
  • +
    +

    + +

    Example Usage

    +
    +if (ogg_sync_pageout(&oy, &og) != 1) {
    +	buffer = ogg_sync_buffer(&oy, 8192);
    +	bytes = fread(buffer, 1, 8192, stdin);
    +	ogg_sync_wrote(&oy, bytes);
    +}
    +
    + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_pageseek.html b/doc/libogg/ogg_sync_pageseek.html new file mode 100644 index 0000000..f4109ef --- /dev/null +++ b/doc/libogg/ogg_sync_pageseek.html @@ -0,0 +1,68 @@ + + + +libogg - function - ogg_sync_pageseek + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_pageseek

    + +

    declared in "ogg/ogg.h";

    + +

    This function synchronizes the ogg_sync_state struct to the next ogg_page. +

    This is useful when seeking within a bitstream. ogg_sync_pageseek will synchronize to the next page in the bitstream and return information about how many bytes we advanced or skipped in order to do so. + +

    + + + + +
    +
    
    +int ogg_sync_pageseek(ogg_sync_state *oy, ogg_page *og);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    og
    +
    Pointer to a page (or an incomplete page) of data. This is the page we are attempting to sync. +
    + + +

    Return Values

    +
    +
  • -n means that we skipped n bytes within the bitstream.
  • +
  • +0 means that the page isn't ready and we need more data, or than an internal error occurred. No bytes have been skipped.
  • +
  • +n means that the page was synced at the current location, with a page length of n bytes. +
  • +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_reset.html b/doc/libogg/ogg_sync_reset.html new file mode 100644 index 0000000..b32fed4 --- /dev/null +++ b/doc/libogg/ogg_sync_reset.html @@ -0,0 +1,63 @@ + + + +libogg - function - ogg_sync_reset + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_reset

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to reset the internal counters of the ogg_sync_state struct to initial values. +

    It is a good idea to call this before seeking within a bitstream. + +

    + + + + +
    +
    
    +int ogg_sync_reset(ogg_sync_state *oy);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    + + +

    Return Values

    +
    +
  • +0 is always returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/ogg_sync_state.html b/doc/libogg/ogg_sync_state.html new file mode 100644 index 0000000..2384a5e --- /dev/null +++ b/doc/libogg/ogg_sync_state.html @@ -0,0 +1,77 @@ + + + +libogg - datatype - ogg_sync_state + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_state

    + +

    declared in "ogg/ogg.h"

    + +

    +The ogg_sync_state struct tracks the synchronization of the current page. +

    It is used during decoding to track the status of data as it is read in, synchronized, verified, and parsed into pages belonging to the various logical bistreams in the current physical bitstream link. +

    + + + + + +
    +
    
    +typedef struct {
    +  unsigned char *data;
    +  int storage;
    +  int fill;
    +  int returned;
    +
    +  int unsynced;
    +  int headerbytes;
    +  int bodybytes;
    +} ogg_sync_state;
    +
    +
    + +

    Relevant Struct Members

    +
    +
    data
    +
    Pointer to buffered stream data.
    +
    storage
    +
    Current allocated size of the stream buffer held in *data.
    +
    fill
    +
    The number of valid bytes currently held in *data; functions as the buffer head pointer.
    +
    returned
    +
    The number of bytes at the head of *data that have already been returned as pages; functions as the buffer tail pointer.
    +
    unsynced
    +
    Synchronization state flag; nonzero if sync has not yet been attained or has been lost.
    +
    headerbytes
    +
    If synced, the number of bytes used by the synced page's header.
    +
    bodybytes
    +
    If synced, the number of bytes used by the synced page's body.
    +
    + + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/ogg_sync_wrote.html b/doc/libogg/ogg_sync_wrote.html new file mode 100644 index 0000000..27e572e --- /dev/null +++ b/doc/libogg/ogg_sync_wrote.html @@ -0,0 +1,73 @@ + + + +libogg - function - ogg_sync_wrote + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    ogg_sync_wrote

    + +

    declared in "ogg/ogg.h";

    + +

    This function is used to tell the ogg_sync_state struct how many bytes we wrote into the buffer. + +

    +The general proceedure is to request a pointer into an internal +ogg_sync_state buffer by calling +ogg_sync_buffer(). The buffer +is then filled up to the requested size with new input, and +ogg_sync_wrote() is called to advance the fill pointer by however +much data was actually available.

    + +
    + + + + +
    +
    
    +int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
    +
    +
    + +

    Parameters

    +
    +
    oy
    +
    Pointer to a previously declared ogg_sync_state struct.
    +
    bytes
    +
    Number of bytes of new data written.
    +
    + + +

    Return Values

    +
    +
  • -1 if the number of bytes written overflows the internal storage of the ogg_sync_state struct or an internal error occurred. +
  • +0 in all other cases.
  • +
    + + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_adv.html b/doc/libogg/oggpack_adv.html new file mode 100644 index 0000000..64723a4 --- /dev/null +++ b/doc/libogg/oggpack_adv.html @@ -0,0 +1,64 @@ + + + +libogg - function - oggpack_adv + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_adv

    + +

    declared in "ogg/ogg.h";

    + +

    This function advances the location pointer by the specified number of bits without reading any data. + +

    + + + + +
    +
    
    +void  oggpack_adv(oggpack_buffer *b,int bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to the current oggpack_buffer.
    +
    bits
    +
    Number of bits to advance.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_adv1.html b/doc/libogg/oggpack_adv1.html new file mode 100644 index 0000000..8e21e48 --- /dev/null +++ b/doc/libogg/oggpack_adv1.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_adv1 + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_adv1

    + +

    declared in "ogg/ogg.h";

    + +

    This function advances the location pointer by one bit without reading any data. + +

    + + + + +
    +
    
    +void  oggpack_adv1(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to the current oggpack_buffer.
    +
    + + +

    Return Values

    +
    +
  • No values are returned. +
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_bits.html b/doc/libogg/oggpack_bits.html new file mode 100644 index 0000000..5375fca --- /dev/null +++ b/doc/libogg/oggpack_bits.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_bits + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_bits

    + +

    declared in "ogg/ogg.h";

    + +

    This function returns the total number of bits currently in the oggpack_buffer's internal buffer. + +

    + + + + +
    +
    
    +long oggpack_bits(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    oggpack_buffer struct to be .
    +
    + + +

    Return Values

    +
    +
  • +n is the total number of bits within the current buffer.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_buffer.html b/doc/libogg/oggpack_buffer.html new file mode 100644 index 0000000..4a8b3dc --- /dev/null +++ b/doc/libogg/oggpack_buffer.html @@ -0,0 +1,66 @@ + + + +libogg - datatype - oggpack_buffer + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_buffer

    + +

    declared in "ogg/ogg.h"

    + +

    +The oggpack_buffer struct is used with libogg's bitpacking functions. You should never need to directly access anything in this structure. +

    + + + + + +
    +
    
    +typedef struct {
    +  long endbyte;
    +  int  endbit;
    +
    +  unsigned char *buffer;
    +  unsigned char *ptr;
    +  long storage;
    +} oggpack_buffer;
    +
    +
    + +

    Relevant Struct Members

    +
    +
    buffer
    +
    Pointer to data being manipulated.
    +
    ptr
    +
    Location pointer to mark which data has been read.
    +
    storage
    +
    Size of buffer. +
    + + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/oggpack_bytes.html b/doc/libogg/oggpack_bytes.html new file mode 100644 index 0000000..b8ac08c --- /dev/null +++ b/doc/libogg/oggpack_bytes.html @@ -0,0 +1,67 @@ + + + +libogg - function - oggpack_bytes + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_bytes

    + +

    declared in "ogg/ogg.h";

    + +

    This function returns the total number of bytes behind the current +access point in the oggpack_buffer. +For write-initialized buffers, this is the number of complete bytes +written so far. For read-initialized buffers, it is the number of +complete bytes that have been read so far. +

    The return value is the number of complete bytes in the buffer. +There may be extra (<8) bits. +

    + + + + +
    +
    
    +long oggpack_bytes(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    oggpack_buffer struct to be checked.
    +
    + + +

    Return Values

    +
    +
  • +n is the total number of bytes within the current buffer.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 xiph.org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_get_buffer.html b/doc/libogg/oggpack_get_buffer.html new file mode 100644 index 0000000..2e8da55 --- /dev/null +++ b/doc/libogg/oggpack_get_buffer.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_get_buffer + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_get_buffer

    + +

    declared in "ogg/ogg.h";

    + +

    This function returns a pointer to the data buffer within the given oggpack_buffer struct. + +

    + + + + +
    +
    
    +unsigned char *oggpack_get_buffer(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to the current oggpack_buffer.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_look.html b/doc/libogg/oggpack_look.html new file mode 100644 index 0000000..9c85f71 --- /dev/null +++ b/doc/libogg/oggpack_look.html @@ -0,0 +1,66 @@ + + + +libogg - function - oggpack_look + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_look

    + +

    declared in "ogg/ogg.h";

    + +

    This function looks at a specified number of bits inside the buffer without advancing the location pointer. +

    The specified number of bits are read, starting from the location pointer. +

    This function can be used to read 32 or fewer bits. + +

    + + + + +
    +
    
    +long  oggpack_look(oggpack_buffer *b,int bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to oggpack_buffer to be read.
    +
    bits
    +
    Number of bits to look at. For this function, must be 32 or fewer.
    +
    + + +

    Return Values

    +
    +
  • +n represents the requested bits.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_look1.html b/doc/libogg/oggpack_look1.html new file mode 100644 index 0000000..b48b231 --- /dev/null +++ b/doc/libogg/oggpack_look1.html @@ -0,0 +1,63 @@ + + + +libogg - function - oggpack_look1 + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_look1

    + +

    declared in "ogg/ogg.h";

    + +

    This function looks at the next bit without advancing the location pointer. +

    The next bit is read starting from the location pointer. + +

    + + + + +
    +
    
    +long  oggpack_look1(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to an oggpack_buffer struct containing our buffer.
    +
    + + +

    Return Values

    +
    +
  • +n represents the value of the next bit after the location pointer.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_read.html b/doc/libogg/oggpack_read.html new file mode 100644 index 0000000..c079732 --- /dev/null +++ b/doc/libogg/oggpack_read.html @@ -0,0 +1,65 @@ + + + +libogg - function - oggpack_read + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_read

    + +

    declared in "ogg/ogg.h";

    + +

    This function reads the requested number of bits from the buffer and advances the location pointer. +

    Before reading, the buffer should be initialized using oggpack_readinit. + +

    + + + + +
    +
    
    +long oggpack_read(oggpack_buffer *b,int bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to an oggpack_buffer struct containing buffered data to be read.
    +
    bits
    +
    Number of bits to read.
    +
    + + +

    Return Values

    +
    +
  • +n represents the requested bits.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_read1.html b/doc/libogg/oggpack_read1.html new file mode 100644 index 0000000..92e61a4 --- /dev/null +++ b/doc/libogg/oggpack_read1.html @@ -0,0 +1,63 @@ + + + +libogg - function - oggpack_read1 + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_read1

    + +

    declared in "ogg/ogg.h";

    + +

    This function reads one bit from the oggpack_buffer data buffer and advances the location pointer. +

    Before reading, the buffer should be initialized using oggpack_readinit. + +

    + + + + +
    +
    
    +long  oggpack_read1(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to an oggpack_buffer struct containing buffered data to be read.
    +
    + + +

    Return Values

    +
    +
  • +n is the bit read by this function.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_readinit.html b/doc/libogg/oggpack_readinit.html new file mode 100644 index 0000000..0b57f26 --- /dev/null +++ b/doc/libogg/oggpack_readinit.html @@ -0,0 +1,64 @@ + + + +libogg - function - oggpack_readinit + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_readinit

    + +

    declared in "ogg/ogg.h";

    + +

    This function takes an ordinary buffer and prepares an oggpack_buffer for reading using the Ogg bitpacking functions. + +

    + + + + +
    +
    
    +void oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Pointer to oggpack_buffer to be initialized with some extra markers to ease bit navigation and manipulation.
    +
    buf
    +
    Original data buffer, to be inserted into the oggpack_buffer so that it can be read using bitpacking functions. +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_reset.html b/doc/libogg/oggpack_reset.html new file mode 100644 index 0000000..dbe69d6 --- /dev/null +++ b/doc/libogg/oggpack_reset.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_reset + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_reset

    + +

    declared in "ogg/ogg.h";

    + +

    This function resets the contents of an oggpack_buffer to their original state but does not free the memory used. + +

    + + + + +
    +
    
    +void  oggpack_reset(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    oggpack_buffer to be reset.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_write.html b/doc/libogg/oggpack_write.html new file mode 100644 index 0000000..cf6817e --- /dev/null +++ b/doc/libogg/oggpack_write.html @@ -0,0 +1,68 @@ + + + +libogg - function - oggpack_write + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_write

    + +

    declared in "ogg/ogg.h";

    + +

    This function writes bits into an oggpack_buffer. +

    The oggpack_buffer must already be initialized for writing using oggpack_writeinit. +

    Only 32 bits can be written at a time. + +

    + + + + +
    +
    
    +void  oggpack_write(oggpack_buffer *b,unsigned long value,int bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Buffer to be used for writing.
    +
    value
    +
    The data to be written into the buffer. This must be 32 bits or fewer.
    +
    bits
    +
    The number of bits being written into the buffer.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_writealign.html b/doc/libogg/oggpack_writealign.html new file mode 100644 index 0000000..bea994c --- /dev/null +++ b/doc/libogg/oggpack_writealign.html @@ -0,0 +1,65 @@ + + + +libogg - function - oggpack_writealign + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_writealign

    + +

    declared in "ogg/ogg.h";

    + +

    This function pads the oggpack_buffer with zeros out to the +next byte boundary.

    +

    The oggpack_buffer must already be initialized for writing using oggpack_writeinit. +

    Only 32 bits can be written at a time.

    + +

    + + + + +
    +
    
    +void  oggpack_writetrunc(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Buffer to be used for writing.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_writeclear.html b/doc/libogg/oggpack_writeclear.html new file mode 100644 index 0000000..edd2e21 --- /dev/null +++ b/doc/libogg/oggpack_writeclear.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_reset + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_writeclear

    + +

    declared in "ogg/ogg.h";

    + +

    This function clears the buffer after writing and frees the memory used by the oggpack_buffer. + +

    + + + + +
    +
    
    +void oggpack_writeclear(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Our oggpack_buffer. This is an ordinary data buffer with some extra markers to ease bit navigation and manipulation.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_writecopy.html b/doc/libogg/oggpack_writecopy.html new file mode 100644 index 0000000..28c2820 --- /dev/null +++ b/doc/libogg/oggpack_writecopy.html @@ -0,0 +1,69 @@ + + + +libogg - function - oggpack_writecopy + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_writecopy

    + +

    declared in "ogg/ogg.h";

    + +

    This function copies a sequence of bits from a source buffer into an +oggpack_buffer.

    +

    The oggpack_buffer must already be initialized for writing using oggpack_writeinit.

    +

    Only 32 bits can be written at a time.

    + +

    + + + + +
    +
    
    +void  oggpack_writecopy(oggpack_buffer *b, void *source, long bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Buffer to be used for writing.
    +
    source
    +
    A pointer to the data to be written into the buffer.
    +
    bits
    +
    The number of bits to be copied into the buffer.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_writeinit.html b/doc/libogg/oggpack_writeinit.html new file mode 100644 index 0000000..99a9ed3 --- /dev/null +++ b/doc/libogg/oggpack_writeinit.html @@ -0,0 +1,62 @@ + + + +libogg - function - oggpack_writeinit + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_writeinit

    + +

    declared in "ogg/ogg.h";

    + +

    This function initializes an oggpack_buffer for writing using the Ogg bitpacking functions. + +

    + + + + +
    +
    
    +void  oggpack_writeinit(oggpack_buffer *b);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Buffer to be used for writing. This is an ordinary data buffer with some extra markers to ease bit navigation and manipulation.
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/oggpack_writetrunc.html b/doc/libogg/oggpack_writetrunc.html new file mode 100644 index 0000000..21524ed --- /dev/null +++ b/doc/libogg/oggpack_writetrunc.html @@ -0,0 +1,65 @@ + + + +libogg - function - oggpack_writetrunc + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    oggpack_writetrunc

    + +

    declared in "ogg/ogg.h";

    + +

    This function truncates an already written-to oggpack_buffer.

    +

    The oggpack_buffer must already be initialized for writing using oggpack_writeinit.

    + +

    + + + + +
    +
    
    +void  oggpack_writetrunc(oggpack_buffer *b, long bits);
    +
    +
    + +

    Parameters

    +
    +
    b
    +
    Buffer to be truncated.
    +
    bits
    +
    Number of bits to keep in the buffer (size after truncation)
    +
    + + +

    Return Values

    +
    +
  • +No values are returned.
  • +
    +

    + +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + + diff --git a/doc/libogg/overview.html b/doc/libogg/overview.html new file mode 100644 index 0000000..432300e --- /dev/null +++ b/doc/libogg/overview.html @@ -0,0 +1,44 @@ + + + +libogg - API Overview + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    Libogg API Overview

    + +

    +The libogg API consists of the following functional categories: +

    +

    + +

    +
    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/reference.html b/doc/libogg/reference.html new file mode 100644 index 0000000..89364a7 --- /dev/null +++ b/doc/libogg/reference.html @@ -0,0 +1,96 @@ + + + +Libogg API Reference + + + + + + + + + +

    libogg documentation

    libogg release 1.2.0 - 20100325

    + +

    Libogg API Reference

    + +

    +Data Structures
    +oggpack_buffer
    +ogg_page
    +ogg_stream_state
    +ogg_packet
    +ogg_sync_state
    +
    +Bitpacking
    +oggpack_writeinit()
    +oggpack_writecheck()
    +oggpack_reset()
    +oggpack_writetrunc()
    +oggpack_writealign()
    +oggpack_writecopy()
    +oggpack_writeclear()
    +oggpack_readinit()
    +oggpack_write()
    +oggpack_look()
    +oggpack_look1()
    +oggpack_adv()
    +oggpack_adv1()
    +oggpack_read()
    +oggpack_read1()
    +oggpack_bytes()
    +oggpack_bits()
    +oggpack_get_buffer()
    +
    +Decoding-Related
    +ogg_sync_init()
    +ogg_sync_check()
    +ogg_sync_clear()
    +ogg_sync_destroy()
    +ogg_sync_reset()
    +ogg_sync_buffer()
    +ogg_sync_wrote()
    +ogg_sync_pageseek()
    +ogg_sync_pageout()
    +ogg_stream_pagein()
    +ogg_stream_packetout()
    +ogg_stream_packetpeek()
    +
    +Encoding-Related
    +ogg_stream_packetin()
    +ogg_stream_pageout()
    +ogg_stream_flush()
    +
    +General
    +ogg_stream_init()
    +ogg_stream_check()
    +ogg_stream_clear()
    +ogg_stream_reset()
    +ogg_stream_reset_serialno()
    +ogg_stream_destroy()
    +ogg_page_version()
    +ogg_page_continued()
    +ogg_page_packets()
    +ogg_page_bos()
    +ogg_page_eos()
    +ogg_page_granulepos()
    +ogg_page_serialno()
    +ogg_page_pageno()
    +ogg_packet_clear()
    +ogg_page_checksum_set()
    +

    +


    + + + + + + + + +

    copyright © 2000-2010 Xiph.Org Foundation

    Ogg Container Format

    libogg documentation

    libogg release 1.2.0 - 20100325

    + + + + diff --git a/doc/libogg/style.css b/doc/libogg/style.css new file mode 100644 index 0000000..81cf417 --- /dev/null +++ b/doc/libogg/style.css @@ -0,0 +1,7 @@ +BODY { font-family: Helvetica, sans-serif } +TD { font-family: Helvetica, sans-serif } +P { font-family: Helvetica, sans-serif } +H1 { font-family: Helvetica, sans-serif } +H2 { font-family: Helvetica, sans-serif } +H4 { font-family: Helvetica, sans-serif } +P.tiny { font-size: 8pt } -- cgit v1.2.3