Skip to content

Commit

Permalink
bgra, rgbaからの変換でalpha値が適切に取得できない問題を修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Aug 12, 2024
1 parent d96d536 commit 6199233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NVEncCore/convert_csp_simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static void RGY_FORCEINLINE convert_rgb32_to_rgba_simd(void **dst, const void **
uint8_t *ptr_dst2 = dst2Line;
uint8_t *ptr_dst3 = dst3Line;
int x = 0, x_fin = width - crop_left - crop_right - 16;
for (; x < x_fin; x += 16, ptr_src += 64, ptr_dst0 += 16, ptr_dst1 += 16, ptr_dst2 += 16) {
for (; x < x_fin; x += 16, ptr_src += 64, ptr_dst0 += 16, ptr_dst1 += 16, ptr_dst2 += 16, ptr_dst3 += 16) {
__m128i xSrc0 = _mm_loadu_si128((__m128i *)(ptr_src + 0));
__m128i xSrc1 = _mm_loadu_si128((__m128i *)(ptr_src + 16));
__m128i xSrc2 = _mm_loadu_si128((__m128i *)(ptr_src + 32));
Expand Down

0 comments on commit 6199233

Please sign in to comment.