Home | History | Annotate | Download | only in Tremolo

Lines Matching defs:page

481 /* returns the number of packets that are completed on this page (if
482 the leading packet is begun on a previous page, but ends on this
483 page, it's counted */
486 If a page consists of a packet begun on a previous page, and a new
487 packet begun (but not completed) on this page, the return will be:
488 ogg_page_packets(page) ==1,
489 ogg_page_continued(page) !=0
491 If a page happens to be a single packet that was begun on a
492 previous page, and spans to the next page (in the case of a three or
493 more page packet), the return will be:
494 ogg_page_packets(page) ==0,
495 ogg_page_continued(page) !=0
684 /* sync the stream. This is meant to be useful for finding page
689 0) page not ready; more data (no bytes skipped)
690 n) page synced at current location; page length n bytes
695 oggbyte_buffer page;
701 oggbyte_init(&page,oy->fifo_tail);
707 if(oggbyte_read1(&page,0)!=(int)'O' ||
708 oggbyte_read1(&page,1)!=(int)'g' ||
709 oggbyte_read1(&page,2)!=(int)'g' ||
710 oggbyte_read1(&page,3)!=(int)'S' ) goto sync_fail;
712 oy->headerbytes=oggbyte_read1(&page,26)+27;
720 oy->bodybytes+=oggbyte_read1(&page,27+i);
725 /* we have what appears to be a complete page; last test: verify
728 ogg_uint32_t chksum=oggbyte_read4(&page,22);
729 oggbyte_set4(&page,0,22);
734 /* D'oh. Mismatch! Corrupt page (or miscapture and not a page
738 oggbyte_set4(&page,chksum,22);
741 oggbyte_set4(&page,chksum,22);
744 /* We have a page. Set up page return. */
746 /* set up page output */
799 /* sync the stream and get a page. Keep trying until we find a page.
805 1) page returned
812 /* all we need to do is verify a page at the head of the stream
819 /* have a page */
827 /* head did not start a synced page... skipped some bytes */
907 /* first flush out preceeding page header (if any). Body is
922 /* process/prepare next page, if any */
950 /* dump the first partial packet on the page */
960 /* preceeding data to continue, but not a continued page */
992 /* add the incoming page to the stream state; we decompose the page