Skip to content

Commit

Permalink
pixfmt_conv.c: Fix undeclared x when building without SIMD
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiatka committed Jul 2, 2024
1 parent 6618547 commit 76e3db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pixfmt_conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ void vc_copylineUYVYtoGrayscale(unsigned char * __restrict dst, const unsigned c
void vc_copylineRGBtoRGBA(unsigned char * __restrict dst, const unsigned char * __restrict src, int dst_len, int rshift, int gshift, int bshift)
{

int x = 0;


#ifdef __SSSE3__
__m128i alpha_mask_sse = _mm_set1_epi32(0xFFFFFFFFU ^ (0xFFU << rshift) ^ (0xFFU << gshift) ^ (0xFFU << bshift));
Expand All @@ -906,8 +908,6 @@ void vc_copylineRGBtoRGBA(unsigned char * __restrict dst, const unsigned char *
shuf = _mm_setr_epi8(2, 1, 0, 0xff, 5, 4, 3, 0xff, 8, 7, 6, 0xff, 11, 10, 9, 0xff);
}

int x = 0;

if (is_simd_compat) {
OPTIMIZED_FOR (x = 0; x <= dst_len - 16; x += 16) {
loaded = _mm_lddqu_si128((const __m128i_u *) src);
Expand Down

0 comments on commit 76e3db8

Please sign in to comment.