Skip to content

Commit

Permalink
fix: Fix ARGB to RGBA conversion on iOS by swapping R and A channels (#…
Browse files Browse the repository at this point in the history
…56)

Co-authored-by: Shtruk <artem@brainway.co.il>
  • Loading branch information
Shtruk and Shtruk authored May 3, 2024
1 parent 663e0bd commit a9fadfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/ResizePlugin.mm
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ - (FrameBuffer*)convertARGB:(FrameBuffer*)buffer to:(ConvertPixelFormat)destinat
}
case RGBA: {
NSLog(@"Converting ARGB_8 Frame to RGBA_8...");
uint8_t permuteMap[4] = {3, 1, 2, 0};
uint8_t permuteMap[4] = {1, 2, 3, 0};
error = vImagePermuteChannels_ARGB8888(source, destination, permuteMap, kvImageNoFlags);
break;
}
Expand Down

0 comments on commit a9fadfb

Please sign in to comment.