search for: ogg_stream_st

Displaying 20 results from an estimated 51 matches for "ogg_stream_st".

Did you mean: ogg_stream_
2007 Apr 14
0
Discontinuous stream support in libogg1
....h (revision 12848) +++ include/ogg/ogg.h (working copy) @@ -80,6 +80,7 @@ (which is in a seperate abstraction layer) also knows about the gap */ ogg_int64_t granulepos; + int discont; /* 0 = continuous, 1 = discontinuous */ } ogg_stream_state; @@ -176,6 +177,7 @@ /* Ogg BITSTREAM PRIMITIVES: general ***************************/ extern int ogg_stream_init(ogg_stream_state *os,int serialno); +extern int ogg_stream_setdiscont(ogg_stream_state *os); extern int ogg_stream_clear(ogg_stream_state *os); extern int...
2009 Jun 18
1
ogg_stream_reset() question
Hi Ogg experts! My current work is catenating packets from several ogg files to the one long stream, so I'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...
2001 Feb 11
2
ogg_stream_packetout() and stream mixing
Just to make sure, if I'm mixing 2 streams at the page level, and using ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need two ogg_stream_states, one for each logical stream, and I need to ensure that each ogg_stream_state only sees pages of it's own type, is that right? - Martin --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message...
2005 Dec 08
1
A few questions how to use libogg
1.) after initializing a ogg_stream_state may I just keep calling ogg_stream_packetin with valid ogg_packet's until no more ogg_packets needs to be added? Or do I need to call ogg_stream_pageout after every ogg_stream_packetin? Iaw may I delay calling ogg_stream_pageout until there are no more packets to be added? 2.) I assume...
2010 Jan 06
1
Initializing vorbis using ov_open_callbacks fail with OV_ENOTVORBIS. But why?
...hat one of you can give me a hint or point me to additional documentation. I used ogg.h and vorbisfile.h. The way so far: - initializing an ogg_sync_state - inserting data to sync_state using ogg_sync_buffer - when whole page found (ogg_sync_pageseek(&sync, &page) > 0) I initialize a ogg_stream_state and add page using ogg_stream_packetin. (in the case the first packet is vorbis - ogg_stream_packetout and check for first some bytes) - next pages with same serial number are handled equivalently: stored in ogg_stream_state using ogg_stream_packetin to add them to ogg_stream_state and u...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...lls you can get into trouble // OGG data structures ogg_sync_state *oy = NULL; // FIXME: Why is this magic required to make ogg_page work? // FIXME: Why is there no ogg_page_create? ogg_page og_allocated = {0, 0, 0, 0}; ogg_page* og = &og_allocated; // Stream data structures ogg_stream_state *os = NULL; // FIXME: Why is this magic required to make ogg_page work? // FIXME: Why is there no ogg_packet_create? ogg_packet op_allocated = {0, 0, 0, 0, 0, 0}; ogg_packet* op = &op_allocated; // Ogg init oy = ogg_sync_create(); // Stream init // Need to set the serial...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...ng++ CFLAGS="-flto=thin -mmacosx-version-min=10.9" LDFLAGS=-flto=thin ./configure --disable-shared --enable-static make -j20 Then try to link to the library in a small C++ program - I used this: #include <iostream> #include "ogg/ogg.h" using namespace std; int main() { ogg_stream_state os; if (ogg_stream_init(&os, 123) == 0) cout << "Initialized stream succesfully" << endl; return 0; } And from the libogg directory I linked to it like this: clang++ -o test -flto=thin test.cpp src/.libs/libogg.a -I include undef: _ogg_stream_init Undefined symbols...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...: 0000000000000200 T _ogg_stream_init My guess is that this output is correct since the archive contains bitcode in the thin lto case and otherwise it's the finished object. It seems to me that the LTO decides to not include this symbol? It's defined like this: extern int ogg_stream_init(ogg_stream_state *os,int serialno); llvm-ar is used to create the archive. Is there any good way to debug this? Thanks, Tobias
2005 Oct 05
1
Simple encodig sample...
...= 288; int frame_x_offset = 0; int frame_y_offset = 0; int video_hzn = 25; int video_hzd = 1; int video_an = 1; int video_ad = 1; int video_r = 320000; int video_q = 16; int frame_counter = 250; signed char *yuvframe; int fetch_video_page( ogg_page *videopage, ogg_stream_state *to, theora_state *td ) { yuv_buffer yuv; ogg_packet op; yuv.y_width = video_x; yuv.y_height = video_y; yuv.y_stride = video_x; yuv.uv_width = video_x / 2; yuv.uv_height = video_y / 2; yuv.uv_stride = video_x / 2; yuv.y = yuvframe; yuv.u = yuvframe...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...AGS=-flto=thin ./configure > --disable-shared --enable-static > make -j20 > > Then try to link to the library in a small C++ program - I used this: > > #include <iostream> > #include "ogg/ogg.h" > > using namespace std; > > int main() > { > ogg_stream_state os; > if (ogg_stream_init(&os, 123) == 0) > cout << "Initialized stream succesfully" << endl; > > return 0; > } > > And from the libogg directory I linked to it like this: > > clang++ -o test -flto=thin test.cpp src/.libs/libogg.a -I includ...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...a { class VideoStreamTheora : public VideoStreamable { int movieLengthBytes; int moviePositionBytes; ogg_sync_state oggSyncState; ogg_page oggPage; ogg_packet oggPacket; ogg_stream_state vorbisStreamState; ogg_stream_state theoraStreamState; theora_info theoraInfo; theora_comment theoraComment; theora_state theoraState; int theoraPageCount; yuv_buffer yuvBuffer...
2007 Jan 11
2
Vectored I/O for libogg
...s there any interest in it? Or is libogg frozen while all efforts are concentrated on libogg2? I had a look at libogg2 and that will not be a simple patch, so rather than attempt one I'll simply enter a feature-plea: please consider equipping libogg2 with one of these: ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov, int count, long e_o_s, ogg_int64_t granulepos) Thanks.
2001 Dec 06
1
packet over several pages
...all to ogg_stream_pagein, then ogg_stream_packetout, but the packet is incomplete and continued in the next page(s). If I get the following page and I call ogg_stream_pagein again, how can i get the beginning of my packet back. It seems to that only one page is accessible at a time through an ogg_stream_state... ******************* Pierre-Henri Quelen phq@laposte.net "Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)" --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www....
2005 Feb 09
1
Trying to do windows encoding dll
...s some reasonable value. But sizeof(*op->body) returns 1... The output I get is a big black screen... Any suggestions? Thanks and best regards, Florian (Stuttgart, GERMANY) #include <windows.h> #include "theora/theora.h" theora_state enc_state; int enc_width, enc_height; ogg_stream_state enc_stream; theora_state dec_state; int dec_width, dec_height; ogg_stream_state dec_stream; __declspec (dllexport) void startenc(int width, int height, int bitrate) { ogg_stream_init(&enc_stream, 290482); enc_width = width; enc_height = height; theora_info ti; theora_info_init(...
2008 Apr 29
2
More trival questions
...quot;); } else { printf("no Magic!\n"); } } else { printf("not a header\n"); } } int main( int argc, char** argv) { ogg_sync_state the_ogg_sync_state; ogg_stream_state the_ogg_stream_state; ogg_page the_ogg_page; ogg_packet the_ogg_packet; char* buffer; size_t bytes_actually_read; FILE* source; if (argc < 2) { printf("No file\n"); return 0; } source =...
2005 Jul 19
2
problem compiling with linux
...undeclared (first use in this function) speexenc.c:71: error: (Each undeclared identifier is reported only once speexenc.c:71: error: for each function it appears in.) speexenc.c:71: error: `fp' undeclared (first use in this function) speexenc.c: In function `main': speexenc.c:267: error: `ogg_stream_state' undeclared (first use in this function) speexenc.c:267: error: parse error before "os" speexenc.c:268: error: `ogg_page' undeclared (first use in this function) speexenc.c:269: error: `ogg_packet' undeclared (first use in this function) speexenc.c:438: error: `os' unde...
2004 Sep 10
4
Updating flac include problems
...ame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -c stream_decoder.c -Wp,-MD,.deps/stream_decoder.TPlo -fno-common -DPIC -o .libs/stream_decoder.lo stream_decoder.c:22: header file 'ogg/ogg.h' not found stream_decoder.c:58: undefined type, found `ogg_stream_state' Any ideas? It would probably be best if the makefiles were changed to put the CFLAGS/CPPFLAGS at the end of the line after the others ../../include paths. The same problem might exist for the link lines, not sure. -Ben
2008 Mar 28
2
speex - cross compil for ARM - problem ogg headers
...undeclared (first use in this function) speexenc.c:76: error: (Each undeclared identifier is reported only once speexenc.c:76: error: for each function it appears in.) speexenc.c:76: error: `fp' undeclared (first use in this function) speexenc.c: In function `main': speexenc.c:272: error: `ogg_stream_state' undeclared (first use in this function) speexenc.c:272: error: parse error before "os" speexenc.c:273: error: `ogg_page' undeclared (first use in this function) speexenc.c:274: error: `ogg_packet' undeclared (first use in this function) speexenc.c:443: error: `os' unde...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...--enable-static >> make -j20 >> >> Then try to link to the library in a small C++ program - I used this: >> >> #include <iostream> >> #include "ogg/ogg.h" >> >> using namespace std; >> >> int main() >> { >> ogg_stream_state os; >> if (ogg_stream_init(&os, 123) == 0) >> cout << "Initialized stream succesfully" << endl; >> >> return 0; >> } >> >> And from the libogg directory I linked to it like this: >> >> clang++ -o test -flto=thin t...
2007 Jul 12
1
unable to compile speex-1.1.10
...undeclared (first use in this function) speexenc.c:71: error: (Each undeclared identifier is reported only once speexenc.c:71: error: for each function it appears in.) speexenc.c:71: error: `fp' undeclared (first use in this function) speexenc.c: In function `main': speexenc.c:267: error: `ogg_stream_state' undeclared (first use in this function ) speexenc.c:267: error: parse error before "os" speexenc.c:268: error: `ogg_page' undeclared (first use in this function) speexenc.c:269: error: `ogg_packet' undeclared (first use in this function) speexenc.c:438: error: `os' und...