Home | History | Annotate | Download | only in libstagefright

Lines Matching defs:Page

84     struct Page {
95 Page mCurrentPage;
110 ssize_t readPage(off_t offset, Page *page);
249 // Given the offset of the "current" page, find the page immediately preceding
251 // To do this we back up from the "current" page's offset until we find any
252 // page preceding it and then scan forward to just before the current page.
273 // We did not find a page preceding this one.
280 Page prevPage;
309 // We found the page we wanted to seek to, but we'll also need
310 // the page preceding it to determine how many valid samples are on
311 // this page.
322 // XXX what if new page continues packet from last???
327 ssize_t MyVorbisExtractor::readPage(off_t offset, Page *page) {
346 page->mFlags = header[5];
348 if (page->mFlags & ~7) {
353 page->mGranulePosition = U64LE_AT(&header[6]);
357 page->mGranulePosition, page->mGranulePosition);
360 page->mSerialNo = U32LE_AT(&header[14]);
361 page->mPageNo = U32LE_AT(&header[18]);
363 page->mNumSegments = header[26];
365 offset + sizeof(header), page->mLace, page->mNumSegments)
366 < (ssize_t)page->mNumSegments) {
371 for (size_t i = 0; i < page->mNumSegments; ++i) {
372 totalSize += page->mLace[i];
377 for (size_t i = 0; i < page->mNumSegments; ++i) {
379 sprintf(x, "%s%u", i > 0 ? ", " : "", (unsigned)page->mLace[i]);
384 LOGV("%c %s", page->mFlags & 1 ? '+' : ' ', tmp.string());
387 return sizeof(header) + page->mNumSegments + totalSize;
429 // this packet, we also stamp every packet in this page
504 // This page does not continue the packet, i.e. the packet