search for: opb

Displaying 20 results from an estimated 25 matches for "opb".

Did you mean: op
2008 Sep 12
4
[Patch] New function of libvorbis
...fine GENERAL_VENDOR_STRING "Xiph.Org libVorbis 1.2.1RC2" + #define ENCODE_VENDOR_STRING "Xiph.Org libVorbis I 20080501" + /* helpers */ static int ilog2(unsigned int v){ int ret=0; *************** *** 457,464 **** } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ ! char temp[]="Xiph.Org libVorbis I 20080501"; ! int bytes = strlen(temp); /* preamble */ oggpack_write(opb,0x03,8); --- 460,466 ---- } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ ! int bytes = strlen(ENCODE_VENDO...
2005 Oct 26
1
Small memory leak...
Hi all. In lib\encoder_toplevel.c , row 1123-1128: #ifndef LIBOGG2 /* So we're expecting the application with free this? */ op->packet=malloc(oggpack_bytes(opb)); memcpy(op->packet, oggpack_get_buffer(opb), oggpack_bytes(opb)); oggpack_writeclear(opb); #else In my small testing application my debugger says there are 50 bytes of memory lost and it refers to op->packet=malloc(oggpack_bytes(opb)); I tried also: op->packet=_ogg_malloc(o...
2005 Oct 26
1
Small memory leak...
Hi all. In lib\encoder_toplevel.c , row 1123-1128: #ifndef LIBOGG2 /* So we're expecting the application with free this? */ op->packet=malloc(oggpack_bytes(opb)); memcpy(op->packet, oggpack_get_buffer(opb), oggpack_bytes(opb)); oggpack_writeclear(opb); #else In my small testing application my debugger says there are 50 bytes of memory lost and it refers to op->packet=malloc(oggpack_bytes(opb)); I tried also: op->packet=_ogg_malloc(o...
2006 Aug 24
1
AMD64 bug
...reach the end of a movie. The patch below fixes this bug. --- libtheora-0.0.0.alpha7/lib/toplevel.c 2006-06-13 00:57:36.000000000 +0200 +++ libtheora-pdw/lib/toplevel.c 2006-08-19 16:55:30.000000000 +0200 @@ -172,7 +172,7 @@ static int _theora_unpack_comment(theora_comment *tc, oggpack_buffer *opb){ int i; - long len; + long len,tmp; _tp_readlsbint(opb,&len); if(len<0)return(OC_BADHEADER); @@ -180,7 +180,8 @@ _tp_readbuffer(opb,tc->vendor, len); tc->vendor[len]='\0'; - _tp_readlsbint(opb,(long *) &tc->comments); + _tp_readlsbint(opb,&tm...
2005 Aug 05
1
debugging question.
...e tree for debug and can single step through the program. However i am facing the following problem (which I think 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=o...
2004 Oct 31
3
a question about Bitstream Header.
Hi, I have a question about the format of Theora bitstream header. It seems to me that there are differences between the specification[1] (version 2004 Oct 1) and its reference implementation in libtheora 1.0alpha3 released at 2004 Jun 1. I mean that... please refer to Section 6.2 'Identification Header Decode' in that specification[1] and the function
2008 Mar 31
1
Problem creating ogg comment header for theatrical/stage/disco lighting stream
...second byte to the ogg buffer. I am using windows and have created a new win32 library project with visual studio and added my code, what do i have to do to get the function working? Is there a project preset I have to change? or something else? I can manualy add to ogg buffer like oggpackB_write(opb, 55, 8) ok, so it's not the buffer that's the problem but the part where it's bit-shifting the second line in the function. I have taken the code from Theora library as it's closer to using libogg2 than vorbis library. Vorbis is working ok in my application but have yet to include t...
2010 Nov 04
4
Fwd: Merging jorbis upstream and the cortado jorbis fork back into one
...rbis/Mapping0.java~ jorbis-0.0.17/com/jcraft/jorbis/Mapping0.java --- jorbis-0.0.17/com/jcraft/jorbis/Mapping0.java~ 2008-05-07 10:06:50.000000000 +0200 +++ jorbis-0.0.17/com/jcraft/jorbis/Mapping0.java 2010-11-04 14:14:30.774014847 +0100 @@ -99,8 +99,8 @@ class Mapping0 extends FuncMapping{ opb.write(1, 1); opb.write(info.coupling_steps-1, 8); for(int i=0; i<info.coupling_steps; i++){ - opb.write(info.coupling_mag[i], Util.ilog2(vi.channels)); - opb.write(info.coupling_ang[i], Util.ilog2(vi.channels)); + opb.write(info.coupling_mag[i], Util.ilog2round...
2006 Aug 29
0
Bug#383793: libtheora0: not 64-bit clean
...debconf information -------------- next part -------------- --- libtheora-0.0.0.alpha7/lib/toplevel.c 2006-06-13 00:57:36.000000000 +0200 +++ libtheora-pdw/lib/toplevel.c 2006-08-19 16:55:30.000000000 +0200 @@ -172,7 +172,7 @@ static int _theora_unpack_comment(theora_comment *tc, oggpack_buffer *opb){ int i; - long len; + long len,tmp; _tp_readlsbint(opb,&len); if(len<0)return(OC_BADHEADER); @@ -180,7 +180,8 @@ _tp_readbuffer(opb,tc->vendor, len); tc->vendor[len]='\0'; - _tp_readlsbint(opb,(long *) &tc->comments); + _tp_readlsbint(opb,&tm...
2003 Oct 09
0
Vorbis plugin for RealOne Player
...following function in the Vorbis source.. int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ vorbis_dsp_state *vd=vb->vd; backend_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 p...
2003 Feb 23
6
More Missing Pieces
Hi, I am making good progress on understanding, documenting, and re-implementing VP3. I have found some more deadwood in the decoder code and I just wanted to verify that it really has no place: * Version 3.3 tables: There are 2 sets of VLCs: One for v3.1 and one for v3.3. The v3.1 set is always selected. Are the v3.3 tables in production, or will they ever be? * DC Search Points: VP3
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...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]->trans...
2012 Feb 22
0
[LLVMdev] Force rematerialization
Hi all, I'd like to force rematerialization by extending live intervals. For example: %vreg1 = opa %vreg2, %vreg3 ; RClassA:%vreg1, RClassB:%vreg2, RClassB:%vreg3 ... somewhere between --> %vreg2<kill> and %vreg3<kill> .. %vreg4 = opb %vreg1 ; RClassA:%vreg1, RClassB:%vreg4 In my case, %vreg1 is not spillable and I'd like to extend vreg2 and vreg3 live intervals to get "opa" rematerialized. If I understand correctly, the InlineSpiller only rematerializes if all the operands values of "opa" reach &quot...
2001 Jul 13
1
Got a problem (BUG?)
...run a util at work called 'bounds checker' and it came up with this little beauty: void oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes){ memset(b,0,sizeof(oggpack_buffer)); b->buffer=b->ptr=buf; b->storage=bytes; } Stack memory overrun: Copying 20 bytes to opb; Starting offset 0, destination size 4 bytes. This is in RC1 code base. Any ideas? fixes? I'll try and get more info on it. regards, Jon Brightwell ATD monkey --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from th...
2006 Mar 19
0
how to arrange the codeword tree into array form
...k this process is done in _make_words in tremer code. i would be if some one could explain me the exact algorithm or where can i get it? i am attaching the code here for your reference. static int _make_words(char *l,long n,ogg_uint32_t *r,long quantvals, codebook *b, oggpack_buffer *opb,int maptype){ long i,j,count=0; long top=0; ogg_uint32_t marker[33]; if(n<2){ r[0]=0x80000000; }else{ memset(marker,0,sizeof(marker)); for(i=0;i<n;i++){ long length=l[i]; if(length){ ogg_uint32_t entry=marker[length]; long chase=0; if(count &&amp...
2001 May 01
1
encoder observation
Hello! First of all a question: When you make the encoder tables (ie: mode_e.h) do you use the mapping0_forward function? Because you made the encoder tables, and after this you did a minor correction in the final beta4 ... (this correction was: additional[0]=fabs(additional[0]*scale); in the mapping0_forward function) (I see this was a bug, and the modification was correct, but this correction
2003 Sep 09
0
Should the vendor tag be updated for 1.0.1?
...========================================= RCS file: /usr/local/cvsroot/vorbis/lib/info.c,v retrieving revision 1.61 diff -u -r1.61 info.c --- lib/info.c 11 Oct 2002 11:14:41 -0000 1.61 +++ lib/info.c 9 Sep 2003 12:19:32 -0000 @@ -416,7 +416,7 @@ } static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){ - char temp[]="Xiph.Org libVorbis I 20020717"; + char temp[]="Xiph.Org libVorbis I 20030902"; int bytes = strlen(temp); /* preamble */ Index: ogginfo/ogginfo2.c =================================================================== RCS file: /usr/lo...
2005 Sep 13
1
Clarification on code books usage.
...ode book tree till it hits a leaf node which is nothing but the entry number. If we consider our floor 1 Y value example , this entry number is directly being used as the Y value. Here is an extract from the tremor code for the same "if((fit_value[j+k]=vorbis_book_decode(books+book,&vd->opb))==-1)" where vorbis_book_decode is returning an entry number. If this is correct the code books constructed for decoding of the floor at the encoder should have as many entries as the maximum value of the floor 1 Y value can take (seems to be 256 ) . In the case of the residue computation th...
2015 Jun 13
3
Asterisk and Deutsche Telekom
jg <webaccounts173 at jgoettgens.de> schrieb: > It doesn't really depend on your sip.conf and Asterisk. Your gateway/router > will be the major problem. My summer project will be to look at session Are you sure? Right now I'm using an italian SIP-Provider (Messagenet), configured in my sip.conf and I can receive calls without any problem... So, I don't think, I have to
2013 Jan 02
1
Define 6.1 and 7.1 channel mappings
Tim's proposal seems reasonable but it conflicts with the FLAC documentation that says the channel ordering follows SMPTE/ITU-R recommendations. I think we may be butting up against an area where the standards aren't clear. ITU-R BS.2159-4 (http://www.itu.int/dms_pub/itu-r/opb/rep/R-REP-BS.2159-4-2012-PDF-E.pdf) doesn't define a 7.1 layout but simply diagrams several possibilities on page 27. DTS-HD seems to specify 7 different possible 7.1 layouts (http://www.scribd.com/doc/17630423/21/Channel-Layout). I think my preference for the Apple/Core Audio layouts is kno...