search for: oggpack_read

Displaying 9 results from an estimated 9 matches for "oggpack_read".

2005 Aug 05
1
debugging question.
...k is more of C than vorbis) 1. after single steppig I finally arrive at the function shown below (in file lib/info.c) static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ 196 codec_setup_info *ci=vi->codec_setup; 197 if(!ci)return(OV_EFAULT); 198 199 vi->version=oggpack_read(opb,32); 200 if(vi->version!=0)return(OV_EVERSION); 201 202 vi->channels=oggpack_read(opb,8); 203 vi->rate=oggpack_read(opb,32); 204 205 vi->bitrate_upper=oggpack_read(opb,32); 206 vi->bitrate_nominal=oggpack_read(opb,32); 207 vi->bitrate_lower=oggpack_read(opb,32); 20...
2003 Oct 09
0
Vorbis plugin for RealOne Player
..._lookup_state *b=vd->backend_state; vorbis_info *vi=vd->vi; codec_setup_info *ci=vi->codec_setup; oggpack_buffer *opb=&vb->opb; int type,mode,i; /* first things first. Make sure decode is ready */ _vorbis_block_ripcord(vb); oggpack_readinit(opb,op->packet,op->bytes); /* Check the packet type */ if(oggpack_read(opb,1)!=0){ /* Oops. This is not an audio data packet */ return(OV_ENOTAUDIO); } /* read our mode and pre/post windowsize */ mode=oggpack_read(opb,b->modebits); if(mode==-1)return(OV_EBA...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...rbis library. In this code in the last poart of the function _vorbis_unpack_books it says ---------------------------------------------------------------- for(i=0;i<ci->modes;i++){ ci->mode_param[i]=_ogg_calloc(1,sizeof(*ci->mode_param[i])); ci->mode_param[i]->blockflag=oggpack_read(opb,1); ci->mode_param[i]->windowtype=oggpack_read(opb,16); ci->mode_param[i]->transformtype=oggpack_read(opb,16); ci->mode_param[i]->mapping=oggpack_read(opb,8); if(ci->mode_param[i]->windowtype>=VI_WINDOWB)goto err_out; if(ci->mode_param[i]->t...
2008 Apr 29
2
More trival questions
...t structs. Hopefully this is once again something something trivial I've missed in the documentation. Neil >>> #include <stdio.h> #include "ogg/ogg.h" #define BUF_SIZE 4096 int magic_check( unsigned char test, oggpack_buffer* buffer) { return (long) test == oggpack_read(buffer, 8); } void send_to_my_decoder(unsigned char *body, long body_len) { oggpack_buffer buffer; long bits_read; oggpack_readinit(&buffer, body, body_len); bits_read = oggpack_read(&buffer, 8); if ( bits_read == 0x80 || bits_read == 0x81 || bits_...
2000 Oct 01
4
CVS Problem
I've been kind of busy lately, but I wanted to see what's up with ao after the build change. I was able to check out the vorbis module, but when I tried to check out the ao module I saw this: [stan@volsung vorbis]$ cvs -d:pserver:anoncvs@cvs.xiph.org:/usr/local/cvsroot co -r branch_postbeta2 ao cvs server: Updating ao cvs server: Updating ao/doc cvs server: Updating ao/include cvs
2004 Dec 02
0
tremor: macro-ize mask table
...(b[i]&mask[tbit])){ - fprintf(stderr,"%ld) %lx %lx\n",i,(b[i]&mask[tbit]),test); + if(test!=(b[i]&MASK(tbit))){ + fprintf(stderr,"%ld) %lx %lx\n",i,(b[i]&MASK(tbit)),test); report("looked at incorrect value!\n"); } if((test=oggpack_read(&r,tbit))==0xffffffff){ report("premature end of data when reading!\n"); } - if(test!=(b[i]&mask[tbit])){ - fprintf(stderr,"%ld) %lx %lx\n",i,(b[i]&mask[tbit]),test); + if(test!=(b[i]&MASK(tbit))){ + fprintf(stderr,"%ld) %lx %lx\n...
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...ference to `oggpack_bytes' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_writeclear' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_adv' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_get_buffer' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_readinit' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_read' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_reset' ../lib/.libs/libvorbis.so: undefined reference to `oggpack_write' collect2: ld returned 1 exit status make[1]: *** [decoder_example] Error 1 make[1...
2001 Apr 16
2
Dump utility?
Is there any dump utility that exists for vorbis streams? What I am intersted in is something that will do a break down like: How many bits are used for encoding _each_ codebooks, how many bits are used for the residue, how much is used for the lpc coefficints. A selective dump of the codebooks themselves would be nice too of course. I'm wondering if anyone has such a little dump utility.
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...on layer) also knows about the gap */ } ogg_packet; typedef struct { ogg_reference *header; int header_len; ogg_reference *body; long body_len; } ogg_page; /* Ogg BITSTREAM PRIMITIVES: bitstream ************************/ extern void oggpack_readinit(oggpack_buffer *b,ogg_reference *r); extern long oggpack_look(oggpack_buffer *b,int bits); extern void oggpack_adv(oggpack_buffer *b,int bits); extern long oggpack_read(oggpack_buffer *b,int bits); extern long oggpack_bytes(oggpack_buffer *b); extern long oggpack_bits(oggpack_buffer *b); e...