|
@@ -619,8 +619,8 @@ void rgb24_yuv420_sse(uint32_t width, uint32_t height,
|
|
|
#define SAVE_SI128 _mm_stream_si128
|
|
|
const RGB2YUVParam *const param = &(RGB2YUV[yuv_type]);
|
|
|
|
|
|
- uint32_t x, y;
|
|
|
- for(y=0; y<(height-1); y+=2)
|
|
|
+ uint32_t xpos, ypos;
|
|
|
+ for(ypos=0; ypos<(height-1); ypos+=2)
|
|
|
{
|
|
|
const uint8_t *rgb_ptr1=RGB+y*RGB_stride,
|
|
|
*rgb_ptr2=RGB+(y+1)*RGB_stride;
|
|
@@ -630,7 +630,7 @@ void rgb24_yuv420_sse(uint32_t width, uint32_t height,
|
|
|
*u_ptr=U+(y/2)*UV_stride,
|
|
|
*v_ptr=V+(y/2)*UV_stride;
|
|
|
|
|
|
- for(x=0; x<(width-31); x+=32)
|
|
|
+ for(xpos=0; xpos<(width-31); xpos+=32)
|
|
|
{
|
|
|
RGB2YUV_32
|
|
|
|
|
@@ -655,8 +655,8 @@ void rgb24_yuv420_sseu(uint32_t width, uint32_t height,
|
|
|
#define SAVE_SI128 _mm_storeu_si128
|
|
|
const RGB2YUVParam *const param = &(RGB2YUV[yuv_type]);
|
|
|
|
|
|
- uint32_t x, y;
|
|
|
- for(y=0; y<(height-1); y+=2)
|
|
|
+ uint32_t xpos, ypos;
|
|
|
+ for(ypos=0; ypos<(height-1); ypos+=2)
|
|
|
{
|
|
|
const uint8_t *rgb_ptr1=RGB+y*RGB_stride,
|
|
|
*rgb_ptr2=RGB+(y+1)*RGB_stride;
|
|
@@ -666,7 +666,7 @@ void rgb24_yuv420_sseu(uint32_t width, uint32_t height,
|
|
|
*u_ptr=U+(y/2)*UV_stride,
|
|
|
*v_ptr=V+(y/2)*UV_stride;
|
|
|
|
|
|
- for(x=0; x<(width-31); x+=32)
|
|
|
+ for(xpos=0; xpos<(width-31); xpos+=32)
|
|
|
{
|
|
|
RGB2YUV_32
|
|
|
|