I read some lines in libvorbis/include/vorbis/codec.h: /* vorbis_block is a single block of data to be processed as part of the analysis/synthesis stream; it belongs to a specific logical bitstream, but is independant from other vorbis_blocks belonging to that logical bitstream. *************************************************/ My question. Does this imply that vorbis_analysis (oggenc/encode.c), which takes as argument a vorbis_block and an ogg packet, is also independent of from other calls to vorbis_analysis? Ronald Bos <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Friday 14 February 2003 00:39, Ronald Bos wrote:> I read some lines in libvorbis/include/vorbis/codec.h: > > /* vorbis_block is a single block of data to be processed as part of > the analysis/synthesis stream; it belongs to a specific logical > bitstream, but is independant from other vorbis_blocks belonging to > that logical bitstream. *************************************************/ > > My question. Does this imply that vorbis_analysis (oggenc/encode.c), which > takes as argument a vorbis_block and an ogg packet, is also independent of > from other calls to vorbis_analysis?Yes, if you have independent vorbis_blocks, this should be true. The comment _may_ be out of date, you'll need to check and/or do some testing. Mike <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> My question. Does this imply that vorbis_analysis (oggenc/encode.c), which > takes as argument a vorbis_block and an ogg packet, is also independent of > from other calls to vorbis_analysis?I can answer this question myself. I have an array of N vorbis_blocks. Now the results of for(i=0; i<count; ++i) { vorbis_analysis(&vb_buffer[i], &op); } and for (i = count-1; i>=0; --i) { vorbis_analysis(&vb_buffer[i], &op); } Are _exactly_ the same. So I guess they are really independent :-) Sounds promising, doesn't it? Ronald <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.