vlc | branch: master | Juha Jeronen <[email protected]> | Thu Mar 24 20:33:35 2011 +0200| [6557480165531e4f20f3fae73ffa8beadd8f8e81] | committer: Laurent Aimar
RenderX(): cache vlc_CPU() Signed-off-by: Laurent Aimar <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6557480165531e4f20f3fae73ffa8beadd8f8e81 --- modules/video_filter/deinterlace.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/video_filter/deinterlace.c b/modules/video_filter/deinterlace.c index 43843da..f1e5a17 100644 --- a/modules/video_filter/deinterlace.c +++ b/modules/video_filter/deinterlace.c @@ -1440,6 +1440,7 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst, static void RenderX( picture_t *p_outpic, picture_t *p_pic ) { int i_plane; + unsigned u_cpu = vlc_CPU(); /* Copy image and skip lines */ for( i_plane = 0 ; i_plane < p_pic->i_planes ; i_plane++ ) @@ -1461,7 +1462,7 @@ static void RenderX( picture_t *p_outpic, picture_t *p_pic ) uint8_t *src = &p_pic->p[i_plane].p_pixels[8*y*i_src]; #ifdef CAN_COMPILE_MMXEXT - if( vlc_CPU() & CPU_CAPABILITY_MMXEXT ) + if( u_cpu & CPU_CAPABILITY_MMXEXT ) XDeintBand8x8MMXEXT( dst, i_dst, src, i_src, i_mbx, i_modx ); else #endif @@ -1488,7 +1489,7 @@ static void RenderX( picture_t *p_outpic, picture_t *p_pic ) } #ifdef CAN_COMPILE_MMXEXT - if( vlc_CPU() & CPU_CAPABILITY_MMXEXT ) + if( u_cpu & CPU_CAPABILITY_MMXEXT ) emms(); #endif } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
