software/scaling/context: add inline attributes
This commit is contained in:
parent
8b6e41f68c
commit
25c403fa07
@ -21,10 +21,12 @@ pub struct Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
|
#[inline(always)]
|
||||||
pub unsafe fn as_ptr(&self) -> *const SwsContext {
|
pub unsafe fn as_ptr(&self) -> *const SwsContext {
|
||||||
self.ptr as *const _
|
self.ptr as *const _
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(always)]
|
||||||
pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext {
|
pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext {
|
||||||
self.ptr
|
self.ptr
|
||||||
}
|
}
|
||||||
@ -88,10 +90,12 @@ impl Context {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn input(&self) -> &Definition {
|
pub fn input(&self) -> &Definition {
|
||||||
&self.input
|
&self.input
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn output(&self) -> &Definition {
|
pub fn output(&self) -> &Definition {
|
||||||
&self.output
|
&self.output
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user