software/scaling/context: add inline attributes

This commit is contained in:
meh 2015-10-14 17:43:15 +02:00
parent 8b6e41f68c
commit 25c403fa07

View File

@ -21,10 +21,12 @@ pub struct Context {
}
impl Context {
#[inline(always)]
pub unsafe fn as_ptr(&self) -> *const SwsContext {
self.ptr as *const _
}
#[inline(always)]
pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext {
self.ptr
}
@ -88,10 +90,12 @@ impl Context {
}
}
#[inline]
pub fn input(&self) -> &Definition {
&self.input
}
#[inline]
pub fn output(&self) -> &Definition {
&self.output
}