Struct rsmpeg::swscale::SwsContext [−][src]
pub struct SwsContext { /* fields omitted */ }
Implementations
impl SwsContext
[src]
impl SwsContext
[src]pub fn as_ptr(&self) -> *const SwsContext
[src]
pub fn as_mut_ptr(&mut self) -> *mut SwsContext
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<SwsContext>)
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<SwsContext>)
[src]Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub unsafe fn from_raw(raw: NonNull<SwsContext>) -> Self
[src]
pub unsafe fn from_raw(raw: NonNull<SwsContext>) -> Self
[src]Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub fn into_raw(self) -> NonNull<SwsContext>
[src]
impl SwsContext
[src]
impl SwsContext
[src]pub fn get_context(
src_w: i32,
src_h: i32,
src_format: AVPixelFormat,
dst_w: i32,
dst_h: i32,
dst_format: AVPixelFormat,
flags: u32
) -> Option<Self>
[src]
pub fn get_context(
src_w: i32,
src_h: i32,
src_format: AVPixelFormat,
dst_w: i32,
dst_h: i32,
dst_format: AVPixelFormat,
flags: u32
) -> Option<Self>
[src]Return None when input is invalid. Parameter flags
can be
rsmpeg::ffi::SWS_FAST_BILINEAR
etc.
pub unsafe fn scale(
&mut self,
src_slice: *const *const u8,
src_stride: *const i32,
src_slice_y: i32,
src_slice_h: i32,
dst: *const *mut u8,
dst_stride: *const i32
) -> Result<()>
[src]
pub unsafe fn scale(
&mut self,
src_slice: *const *const u8,
src_stride: *const i32,
src_slice_y: i32,
src_slice_h: i32,
dst: *const *mut u8,
dst_stride: *const i32
) -> Result<()>
[src]Scale the image slice in src_slice and put the resulting scaled slice in the image in dst. A slice is a sequence of consecutive rows in an image.
Slices have to be provided in sequential order, either in top-bottom or bottom-top order. If slices are provided in non-sequential order the behavior of the function is undefined.
Safety
The src_slice
should be valid with the src_stride
, src_slice_y
and
src_slice_h
. The dst
should be valid with the dst_stride
.
Trait Implementations
impl Deref for SwsContext
[src]
impl Deref for SwsContext
[src]type Target = SwsContext
type Target = SwsContext
The resulting type after dereferencing.