mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
software/scaling/context: add inline attributes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user