search for: vorbis_dsp_st

Displaying 20 results from an estimated 23 matches for "vorbis_dsp_st".

2001 Jan 26
1
Thread issues: clarification
Monty -- I'm still running into problems with my threaded encoded, and I think I just figured out why. I have N threads running in parallel calling vorbis_analysis_blockout() and vorbis_analysis() to do the number crunching on the input samples. They all share a single vorbis_dsp_state -- my understanding was that this was ok; they only *read* from the vorbis_dsp_state, therefore not creating any race conditions. However, I think I must have misunderstood, because in reading the code from vorbis_analysis_blockout() and the functions that it calls, it appears that there are wr...
2001 Jan 09
1
Question re: vorbis_block_clear()
I'm running into memory leak and read-from/write-to unallocated errors in the cleanup phase of parallel oggenc. I see in vorbis_block_clear() that it references some fields on the vorbis_dsp_state that it cached during vorbis_block_init(), and conditionally does some cleanup based on the values of those fields. Does this fact effectively mean that you can't have multiple vorbis_block instances outstanding? i.e., can you only reliably vorbis_block_clear() the *last* vorbis_block that...
2000 Dec 08
1
voribs_analysis() question
...rbis_block to a different processor, and let them call vorbis_analsis() in parallel with each other. However, as has been briefly alluded on this list before, there is global state that is shared between all vorbis_block instances. Specifically, vorbis_block contains a pointer to the stream's vorbis_dsp_state, which in turn, has a pointer to the stream's vorbis_info. The code under vorbis_analysis gets compilcated quickly (and I'm *not* a math/DSP kind of guy), but I can see that, at the very least, the global vorbis_dsp_state seems to be getting modified in each call to vorbis_analysis()....
2004 Jun 29
3
Struct Fields Description
Hello all Can anyone point me to some form of description for the fields in the following structures : 1/ vorbis_dsp_state 2/ vorbis_block Thank you. regards ~previr _____________________________________________________________ Previr Rangroo STMicroelectronics Associate Systems Lab Engineer Plot No. 2 & 3, Audio Competence Center Sector 16A, CMG Systems Lab...
2004 Jun 29
3
Struct Fields Description
Hello all Can anyone point me to some form of description for the fields in the following structures : 1/ vorbis_dsp_state 2/ vorbis_block Thank you. regards ~previr _____________________________________________________________ Previr Rangroo STMicroelectronics Associate Systems Lab Engineer Plot No. 2 & 3, Audio Competence Center Sector 16A, CMG Systems Lab...
2009 Mar 15
1
Add vorbis_dsp_init() ?
...//bugzilla.mozilla.org/show_bug.cgi?id=481601 The patch to fix the crash adds a new vorbis_dsp_init() function to libvorbis, and calls that from fs_vorbis_init() in libfishsound: https://bug481601.bugzilla.mozilla.org/attachment.cgi?id=366150 The public function it adds is: void vorbis_dsp_init(vorbis_dsp_state *v){ memset(v,0,sizeof(*v)); } Is it ok to commit the libvorbis patch to svn.xiph.org/trunk/vorbis? Conrad.
2008 Sep 12
4
[Patch] New function of libvorbis
...2/include/vorbis/codec.h libvorbis-1.2.1RC2_NI/include/vorbis/codec.h *** libvorbis-1.2.1RC2/include/vorbis/codec.h Mon Aug 25 05:57:44 2008 --- libvorbis-1.2.1RC2_NI/include/vorbis/codec.h Sat Sep 13 05:00:22 2008 *************** *** 178,183 **** --- 178,185 ---- extern void vorbis_dsp_clear(vorbis_dsp_state *v); extern double vorbis_granule_time(vorbis_dsp_state *v, ogg_int64_t granulepos); + + extern const char *vorbis_version_string(void); /* Vorbis PRIMITIVES: analysis/DSP layer ****************************/ diff -crN libvorbis-1.2.1RC2/lib/info.c libvorbis-1.2.1RC...
2001 Feb 11
3
Parallel encoding
...g lazy. I'm interested in adapting the encoder to farm out work to various machines on a network. I'm just trying to find out if this is going to be trivial. I don't know how the encoder works but from my very brief glance through the code it would appear that a state is maintained 'vorbis_dsp_state' that's going to make my distributed encoding more difficult. Is it worth me delving more deeply, presumably this state can't be duplicated across all machines? Thanks, M --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg...
2007 Sep 17
1
How To Encode Realtime
...encode and decode the stream. The problem is, I use vorbis_analysis_buffer() and vorbis_analysis_wrote() push the PCM data in, then use vorbis_analysis_blockout(&vd, &vb) to output a block, it can't output all the data. It seems that some data which length is constant, must be in the vorbis_dsp_state, can not be output. When Decode, there's similar problem. These lead time lapse. I have tested, 22050, 1 channel. First, vorbis_analysis_wrote(&vd, 2048), vorbis_analysis_blockout(&vd, &vb), no block out. After, every time vorbis_analysis_wrote(&vd, 1024), vorbis_analysi...
2017 Feb 06
2
libvorbis without encapulsation
L'octidi 18 pluviôse, an CCXXV, Miscellaneous a écrit : > > The RLP draft mentioned on the libvorbis docs page, are there sample > > implementations (in C) of this yet anywhere?  > Sorry that should say RTP, not RLP I am not sure I understand exactly what you are asking, but libavformat has a RTP packetizer that works for both Vorbis and Theora, implemented in rtpenc_xiph.c.
2006 May 04
2
Howto get playtime
Hi, Searched in Google, browsed xiph vorbis sites but found no good information about how to get the current playtime out of the granuleposition of the ogg_packet. Anyone knows if there is any 'Programming with libvorbis' documentation out there, cause on xiph's site (http://www.xiph.org/vorbis/doc/) there's nothing :( Any help? THX, Tom
2000 Dec 24
0
State of Vorbis: Monty's current offline development
Nothing on a branch yet; I'll be building a temp branch for my changes soon. First, I'm eliminating ordering dependancies in vorbis_block structures. They'll be totally sepreate and vorbis_analysis won't have a global state in vorbis_dsp_state that requires them being done in order. That way, a parallel-threaded encoder can run multiple vorbis_blocks through multiple simultaneous calls to vorbis_analysis. Second, psy.c is almost entirely new code. That from Segher's patches I couldn't apply directly is 'applied' in...
2003 Mar 03
1
vorbis patch for latest code
...est changes (ov_crosslap, vorbis_window) by xiphmont: Index: include/vorbis/codec.h =================================================================== RCS file: /usr/local/cvsroot/vorbis/include/vorbis/codec.h,v retrieving revision 1.42 diff -r1.42 codec.h 211a212 > extern float* vorbis_window(vorbis_dsp_state *v,int W); Index: win32/vorbis.def =================================================================== RCS file: /usr/local/cvsroot/vorbis/win32/vorbis.def,v retrieving revision 1.10 diff -r1.10 vorbis.def 38a39,42 > vorbis_synthesis_lapout > > vorbis_window > Index: win32/vorbisfi...
2003 Oct 09
0
Vorbis plugin for RealOne Player
...am trying to build an Ogg/Vorbis plugin for RealOne Player through the HelixCommunity source. During runtime, however, I saw an access violation. I did some debugging and narrowed it down to the 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 */...
2012 May 14
0
Memory Leak in vorbis_info_clear()
...-Wall -o vbs vbs.c -lvorbisenc -lvorbis */ /* noleak: valgrind --leak-check=yes ./vbs */ /* leak: valgrind --leak-check=yes ./vbs -l */ #include <unistd.h> /* getopt(3) */ #include <vorbis/codec.h> #include <vorbis/vorbisenc.h> static struct vorbis_info info; static struct vorbis_dsp_state dsp; static struct vorbis_comment comment; static struct vorbis_block block; void init(void) { struct { ogg_packet ident, comment, setup; } pkt; vorbis_info_init(&info); vorbis_encode_init_vbr(&info, 2, 44100, 1.0); vorbis_analysis_init(&dsp, &info); vorbis_comment_init(&...
2001 Sep 02
0
Encoding process
...c, encode.c, and audio.c and I think I have a basic idea of what happens. I got it down in pseudocode as follows: --- 1 get parameters 2 init vorbis_comment -- vorbis_comment_init() 3 init vorbis_info -- vorbis_info_init() 4 start encoding with info and params -- vorbis_encode_init() 5 init vorbis_dsp_state from info -- vorbis_analysis_init() 6 init vorbis_block from dsp -- vorbis_block_init() 7 init ogg_stream_state with serial -- ogg_stream_init() 8 fill vorbis_comment -- vorbis_comment_add() 9 create header packets from dsp -- vorbis_analysis_headerout() 10 dump header packets to stream -- o...
2014 Sep 10
4
[RFC PATCH v1 0/3] Introducing ARM SIMD Support
libvorbis does not currently have any simd/vectorization. Following patches add generic framework for simd/vectorization and on top, add ARM-NEON simd vectorization using intrinsics. I was able to get over 34% performance improvement on my Beaglebone Black which is single Cortex-A8 based CPU. You can find more information on metrics and procedure I used to measure at
2017 Feb 06
3
libvorbis without encapulsation
...age = 256}, lW = 0, W = 0, nW = 0, pcmend = 512, mode = 0,    eofflag = 0, granulepos = 0, sequence = 3, vd = 0x7fffffffde20, localstore = 0x64a380, localtop = 64, localalloc = 64,    totaluse = 7376, reap = 0x64a360, glue_bits = 0, time_bits = 0, floor_bits = 0, res_bits = 0, internal = 0x647330} vorbis_dsp_state: (gdb) p vdsps $10 = {analysisp = 1, vi = 0x7fffffffdde0, pcm = 0x642750, pcmret = 0x642770, pcm_storage = 221012, pcm_current = 55376,    pcm_returned = 0, preextrapolate = 1, eofflag = 0, lW = 0, W = 0, nW = 0, centerW = 512, granulepos = 256, sequence = 4,    glue_bits = 0, time_bits = 0, flo...
2007 Aug 10
5
[Patch] Const correct tags functions
...char *tag, const char *contents); +extern char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count); +extern int vorbis_comment_query_count(vorbis_comment *vc, const char *tag); extern void vorbis_comment_clear(vorbis_comment *vc); extern int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb); --- lib/info.c (revision 13502) +++ lib/info.c (working copy) @@ -59,7 +59,7 @@ memset(vc,0,sizeof(*vc)); } -void vorbis_comment_add(vorbis_comment *vc,char *comment){ +void vorbis_comment_add(vorbis_comment *vc,const char *comment){ vc->user_comments=_ogg_real...
2002 Jan 03
3
Suggestion for libvorbisfile: scaling
I've been experimenting with the ideas of Replay Gain[1] and find that ogg123 doesn't have a way of specifying the scaling applied to replayed samples (like -f in mpg123). Looking at libvorbisfile, I see no function exactly matching this possibly desirable behaviour. ov_read() scales by either 128 (byte output) or 32768 (word output), but there's nothing in between. ov_read_float()