Remove inline asm from gray_to_rgba and rgb_to_bgr
GCC's code generation is suboptimal this way but the inline assembly can cause build failures based on the GCC version.
Force inlining is also added to avoid branches in case of GCC.
GitLab Maintenance scheduled for Tuesday, 17th March 2026, from 3:30 AM to 7:00 AM BST. GitLab will be in read-only mode and experience short periods of complete downtime (10~15 minutes) during this window.
GCC's code generation is suboptimal this way but the inline assembly can cause build failures based on the GCC version.
Force inlining is also added to avoid branches in case of GCC.