search for: pageno

Displaying 16 results from an estimated 16 matches for "pageno".

2006 Apr 04
2
ogg + theora + seeking
...ey-frame" from the position information. The header struct I used is struct oggHeader { char ogg[5]; char pack_type:1; char page_type:1; char last:1; char reserved:5; // was: uint64 position; uint32 position1; uint32 position2; uint32 serial; uint32 pageNo; uint32 checksum; } __attribute__ ((packed)); The description only says: devide the position into two fields. is it 2 times uint32 or some other values? Thanks in advance ------------------------------------------ OggS continued packet | first page (bos) | not last page | pos1: 0 pos2: 0...
2003 Apr 12
1
system()
I am new to R but have used Splus for many years. When I create many graphics in sequence in Splus/Linux, each time that I complete a page, I send a message to my command line interface using the following function: FOOT <- function(PAGENO,TEXT) { mtext(outer=T, TEXT, side=1) unix("cat", c(paste("Finished with page", PAGENO)),FALSE, FALSE) } PAGENO <- PAGENO + 1 FOOT(PAGENO,"Text") In R, the corresponding function appears to be "system()". I don't s...
2009 Jun 18
1
ogg_stream_reset() question
...9;d like to create stream once, and then reset it just before reading codec headers from every new file. However, after calling ogg_stream_reset_serialno(ogg_stream_state *os, int serialno), bos page is not pushed in stream since it calls ogg_stream_reset(ogg_stream_state *os), which set os->pageno to -1, while ogg_stream_init(ogg_stream_state *os, int serialno) sets it to 0. If I call ogg_stream_reset(), and the explicitly set os->pageno = 0, no problem, the consequent pages are pushed into stream. So the question - why ogg_stream_reset() sets pageno to -1 instead to zero, if it does not...
2004 Aug 06
3
BUG: page-aligned data in libshout
...ython2.2/site-packages/shout.so #5 0x080b0c53 in PyCFunction_Call () I waded through libshout for more than a few hours trying to figure out what could cause this, then went to look in libvorbis (and quickly gave up seeing the complexity of it). It was very predictable, segfaulting while sending pageno 2 no matter what bitstream it tried to send. I verified the data by having it save to disk vs send through libshout, the page spliting function is working great. Then I tried to duplicate it on another machine.. Same OS I compiled identical versions of libogg, libvorbis, libshout, py-ogg (my ext...
2004 Aug 06
3
BUG: page-aligned data in libshout
...ython2.2/site-packages/shout.so #5 0x080b0c53 in PyCFunction_Call () I waded through libshout for more than a few hours trying to figure out what could cause this, then went to look in libvorbis (and quickly gave up seeing the complexity of it). It was very predictable, segfaulting while sending pageno 2 no matter what bitstream it tried to send. I verified the data by having it save to disk vs send through libshout, the page spliting function is working great. Then I tried to duplicate it on another machine.. Same OS I compiled identical versions of libogg, libvorbis, libshout, py-ogg (my ext...
2004 Sep 18
5
possible libogg bug holding up Ogg FLAC
...| ^ | Say I reset the sync/stream states and fseek to where the arrow is. Then I ogg_sync_pageout() and fill the sync buffer until it syncs on page 6 and ogg_sync_pageout() returns > 0. Then I ogg_stream_pagein(). It recognizes that a reset happened -- "if(pageno!=os->pageno){" -- then inside checks the 'continued' flag and eats up all the segments of the packet in page 6, then 'bodysize' is 0 and the function returns. Then I ogg_stream_packetout() and it returns 0 because there is no packet data at all. Then I ogg_sync_pageout() a...
2003 Jul 22
2
Patch to get libogg2 to build with gcc 2.96
...Mar 2003 00:07:32 -0000 1.1.2.12 +++ stream.c 22 Jul 2003 20:51:09 -0000 @@ -290,9 +290,10 @@ /* process/prepare next page, if any */ ogg_page og; /* only for parsing header values */ - og.header=os->header_tail; /* only for parsing header values */ - long pageno=ogg_page_pageno(&og); + long pageno; oggbyte_buffer ob; + og.header=os->header_tail; /* only for parsing header values */ + pageno=ogg_page_pageno(&og); oggbyte_init(&ob,os->header_tail,0); os->lacing_fill=oggbyte_read1(&ob,26); <p&...
2003 Nov 25
0
trouble getting libvorbis to cut beginning of the bitstream
...granulepos. I have constructed a file which I believe should have its beginning truncated. I have attached it to this mail. Here is a picture of what the bitstream looks like, as output by a python program that uses pyogg/pyvorbis to read the stream and print a representation: <OggPage, BOS pageno = 0, granulepos = 0, serialno = 2079510926, head length = 28, body length = 30 at 0x4019b3e0> <OggPacket, BOS packetno = 0, granulepos = 0, length = 30 at 0x401e7bb0> <OggPage, pageno = 1, granulepos = 0, serialno = 2079510926, head length = 44, body length = 3877 at 0x4019b368&...
2007 Apr 14
0
Discontinuous stream support in libogg1
...======================================================== --- src/framing.c (revision 12848) +++ src/framing.c (working copy) @@ -214,6 +214,15 @@ return(0); } +int ogg_stream_setdiscont(ogg_stream_state *os){ + /* Discont mode must be known and set before Page 1 is processed */ + if(os->pageno==0/*||(os->pageno==1&&os->packets==0)*/){ + os->discont=1; + return(0); + } + return(-1); +} + int ogg_stream_destroy(ogg_stream_state *os){ if(os){ ogg_stream_clear(os); @@ -304,7 +313,7 @@ /* Store lacing vals for this packet */ for(i=0;i<lacing_vals-1;i...
2008 Nov 20
1
extracting data from a list of unformatted text files
Hi, I want to extract information from a number of text files in a folder. The files are named as : 82534.txt, 82555.txt, 8282787.txt etc. I give below a sample of the kind of the information in the text file : ######## #(a lot of preceding text) 2008-10-01????? 06:30:12??? ??? ??? ??? 2 of 3 page #(some lines of text - varies from file to file) sekvens??? 890 # lines of text sNo???? start???
2000 Feb 07
4
Segmentation fault, devPS.c, 0.99.0 (PR#413)
...8, format=0x811ad81 "ep\n") at fprintf.c:32 32 fprintf.c: No such file or directory. (gdb) up #2 0x806ca78 in PostScriptEndPage (fp=0x726b2e78) at devPS.c:513 513 fprintf(fp, "ep\n"); (gdb) up #3 0x806d953 in PS_NewPage (dd=0x81df2d0) at devPS.c:1015 1015 if(pd->pageno > 1) PostScriptEndPage(pd->psfp); (gdb) up #4 0x8087c75 in Rf_GNewPlot (recording=1, ask=-2147483648) at graphics.c:1781 1781 dd->dp.newPage(dd); (gdb) up #5 0x80a33ab in do_plot_new (call=0x405ba44c, op=0x402e01b8, args=0x409418e0, env=0x40941944) at plot.c:370 370 dd = GN...
2004 Aug 06
0
OOPS! (was BUG: page-aligned data in libshout)
...n sending libshout page-aligned data: > > [...] > self.shout.open() > self.shout.send('OggS') > def __call__(self, data) : > [...] > out=self.page.header[3:]+self.page.body+'OggS' > print 'Sending Page %d' % self.page.pageno > self.shout.sync() > self.shout.send(data) > self.page=newpage > return I was still sending it the raw data, but in a loop so it was doing the whole broken record thing. that tipped me off, looked back, figured it out.. <p>The bug has nothing to...
2000 Jul 01
0
margins with postscript device
...if(pd->landscape) { + pd->width -= 0.125; xoff += 0.25; + } else { + pd->height -= 0.125; yoff += 0.25; + } + pd->maxpointsize = 72.0 * ((pd->pageheight > pd->pagewidth) ? pd->pageheight : pd->pagewidth); pd->pageno = 0; -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at...
2004 Dec 17
2
Is the page number in a document created with "pdf()" accessible?
When I create pdf documents in R using pdf(), each page has text in the outer margin indicating the page number. I track page numbers in a cumbersome manner. Is the page number in a multi-page document tracked internally by par() or some other function? Dennis Fisher MD P < (The "P Less Than" Company) Phone: 1-866-PLessThan (1-866-753-8864) Fax: 1-415-564-2220 www.PLessThan.com
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...objs, pd->annots[i]); + free(pd->annots[i]); + } + pd->annotspos = 0; } #define R_VIS(col) (R_ALPHA(col) > 0) *************** *** 6352,6357 **** --- 6401,6407 ---- { PDFDesc *pd = (PDFDesc *) dd->deviceSpecific; char buf[512]; + int i; if(pd->pageno >= pd->pagemax || pd->nobjs >= 3*pd->pagemax) { pd->pageobj = (int *) *************** *** 6377,6386 **** } } ! pd->pos[++pd->nobjs] = (int) ftell(pd->pdffp); ! pd->pageobj[pd->pageno++] = pd->nobjs; ! fprintf(pd->pdffp, "%d 0 obj\...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...before the packets have been consumed, and ... */ flgBailEOS = 0; while(!flgBailEOS && !flgBailError) { /* This while loop iterates over ogg pages */ if (flgInitialPageRead) { /* Page system has been initialized and is valid */ dprintf("Page: %d\n", ogg_page_pageno(og)); if (ogg_page_bos(og)) { dprintf("Beginning of stream found: %d\n", ogg_page_bos(og)); // Use hex to match ogginfo return dprintf("Setting serial number: %x\n", ogg_page_serialno(og)); ogg_stream_reset_serialno(os, ogg_page_serialno(og)); } /* // EOS tes...