Commit 2903960f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

deinterlace: fix build

Regression hidden by 6fe7eb60.
parent 996bff47
...@@ -535,8 +535,8 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst, ...@@ -535,8 +535,8 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst,
void RenderX( picture_t *p_outpic, picture_t *p_pic ) void RenderX( picture_t *p_outpic, picture_t *p_pic )
{ {
int i_plane; int i_plane;
#if defined (CAN_COMPILE_MMXEXT) && !defined(__SSE__) #if defined (CAN_COMPILE_MMXEXT)
const unsigned u_cpu = vlc_CPU(); const bool mmxext = vlc_CPU_MMXEXT();
#endif #endif
/* Copy image and skip lines */ /* Copy image and skip lines */
...@@ -559,15 +559,11 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic ) ...@@ -559,15 +559,11 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic )
uint8_t *src = &p_pic->p[i_plane].p_pixels[8*y*i_src]; uint8_t *src = &p_pic->p[i_plane].p_pixels[8*y*i_src];
#ifdef CAN_COMPILE_MMXEXT #ifdef CAN_COMPILE_MMXEXT
# ifndef __SSE__ if( mmxext )
if( u_cpu & VLC_CPU_MMXEXT )
# endif
XDeintBand8x8MMXEXT( dst, i_dst, src, i_src, i_mbx, i_modx ); XDeintBand8x8MMXEXT( dst, i_dst, src, i_src, i_mbx, i_modx );
else else
#endif #endif
#ifndef __SSE__
XDeintBand8x8C( dst, i_dst, src, i_src, i_mbx, i_modx ); XDeintBand8x8C( dst, i_dst, src, i_src, i_mbx, i_modx );
#endif
} }
/* Last line (C only)*/ /* Last line (C only)*/
...@@ -590,9 +586,7 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic ) ...@@ -590,9 +586,7 @@ void RenderX( picture_t *p_outpic, picture_t *p_pic )
} }
#ifdef CAN_COMPILE_MMXEXT #ifdef CAN_COMPILE_MMXEXT
# ifndef __SSE__ if( mmxext )
if( u_cpu & VLC_CPU_MMXEXT )
# endif
emms(); emms();
#endif #endif
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment