From 5f768453348355ff9dada07abd3ae2a5636fe8cb Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 14 Oct 2015 17:49:35 +0200 Subject: [PATCH] software/scaling/extensions: add inline attributes --- src/software/scaling/extensions.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/software/scaling/extensions.rs b/src/software/scaling/extensions.rs index 24cacb5..0ddc671 100644 --- a/src/software/scaling/extensions.rs +++ b/src/software/scaling/extensions.rs @@ -3,12 +3,14 @@ use ::{Picture, decoder, Error, frame}; use super::{Context, Flags, flag}; impl<'a> Picture<'a> { + #[inline] pub fn scaler(&self, width: u32, height: u32, flags: Flags) -> Result { Context::get(self.format(), self.width(), self.height(), self.format(), width, height, flags) } + #[inline] pub fn converter(&self, format: format::Pixel) -> Result { Context::get(self.format(), self.width(), self.height(), format, self.width(), self.height(), @@ -17,12 +19,14 @@ impl<'a> Picture<'a> { } impl frame::Video { + #[inline] pub fn scaler(&self, width: u32, height: u32, flags: Flags) -> Result { Context::get(self.format(), self.width(), self.height(), self.format(), width, height, flags) } + #[inline] pub fn converter(&self, format: format::Pixel) -> Result { Context::get(self.format(), self.width(), self.height(), format, self.width(), self.height(), @@ -32,12 +36,14 @@ impl frame::Video { impl decoder::Video { + #[inline] pub fn scaler(&self, width: u32, height: u32, flags: Flags) -> Result { Context::get(self.format(), self.width(), self.height(), self.format(), width, height, flags) } + #[inline] pub fn converter(&self, format: format::Pixel) -> Result { Context::get(self.format(), self.width(), self.height(), format, self.width(), self.height(),