Skip to content

Commit 5c65f1a

Browse files
committed
refactor(graphics): inline rgb -> ycbcr
That doesn't seem to help, rust is already inlining the function. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
1 parent bfcf7d0 commit 5c65f1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ironrdp-graphics/src/color_conversion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ impl From<YCbCr> for Rgb {
248248
}
249249

250250
impl From<Rgb> for YCbCr {
251+
#[inline(always)]
251252
fn from(Rgb { r, g, b }: Rgb) -> Self {
252253
// We scale the factors by << 15 into 32-bit integers in order
253254
// to avoid slower floating point multiplications. Since the

0 commit comments

Comments
 (0)