[vlc-devel] Re: sse2 detection

Sigmund Augdal Helberg dnumgis at videolan.org
Wed Jan 18 14:41:31 CET 2006


On Wed, 2006-01-18 at 14:39 +0100, Vaclav Koldus wrote:
> Sigmund Augdal Helberg napsal(a):
> 
> >On Wed, 2006-01-18 at 08:09 +0100, Vaclav Koldus wrote:
> >  
> >
> >>Hi people!
> >>
> >>Recently I found out I need to optimalize some processes in my video 
> >>filter and I rewrited them in SSE2. To keep things clean
> >>I want to know which is the most simple way how to detect whether the 
> >>running machine supports it. Are there any functions
> >>or macros in VLC to find this out?
> >>    
> >>
> >
> >if( p_obj->p_libvlc->i_cpu & CPU_CAPABILITY_SSE2 )
> >
> >Where p_obj is any vlc object.
> >
> >Sigmund
> >  
> >
> >>Thanks and best regards,
> >>
> >>Vaclav
> >>
> >>    
> >>
> >
> >  
> >
> Thanx a lot!
You may find it useful that vlc --no-sse2 will override the detection.
This can be useful to test that your code works in either case. (or at
least fails gracefully).

Sigmund
> 
> V.
> 

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list