pub fn generate_mipmaps(
        &mut self,
        face: u32,
        frame: u32,
        filter: MipmapFilter,
        sharpen_filter: SharpenFilter,
    ) -> Result<()> {
        if face <= self.face_count() {
            return Err(Error::InvalidParameters);
        }
        if frame <= self.frame_count() {
            return Err(Error::InvalidParameters);
        }
        unsafe {
            ffi_try!(ffi::vlImageGenerateMipmaps(
                face,
                frame,
                filter as i32,
                sharpen_filter as i32,
            ));
        }
        Ok(())
    }
/// Generates mipmaps for the given face and frame.
///
/// # Errors
///
/// Returns `Err` if the mipmap generation fails,
/// or if the parameters are invalid.
Generates mipmaps for the given face and frame.
Generates mipmaps for the given face and frame .
pub fn generate_mipmaps(
        &mut self,
        face: u32,
        frame: u32,
        filter: MipmapFilter,
        sharpen_filter: SharpenFilter,
    ) -> Result<()> {
        if face <= self.face_count() {
            return Err(Error::InvalidParameters);
        }
        if frame <= self.frame_count() {
            return Err(Error::InvalidParameters);
        }
        unsafe {
            ffi_try!(ffi::vlImageGenerateMipmaps(
                face,
                frame,
                filter as i32,
                sharpen_filter as i32,
            ));
        }
        Ok(())
    }
pub fn generate_mipmaps ( & mut self , face : u32 , frame : u32 , filter : MipmapFilter , sharpen_filter : SharpenFilter , ) -> Result < ( ) > { if face <= self . face_count ( ) { return Err ( Error :: InvalidParameters ) ; } if frame <= self . frame_count ( ) { return Err ( Error :: InvalidParameters ) ; } unsafe { ffi_try ! ( ffi vlImageGenerateMipmaps ( face frame filter as i32 sharpen_filter as i32 ) ) ; } Ok ( ( ) ) }
Generates mipmaps for the given face and frame.
Generates mipmaps for the given face and frame .
&mut self
face
u32
frame
u32
filter
MipmapFilter
sharpen_filter
SharpenFilter
&mut self
face
u32
frame
u32
filter
MipmapFilter
sharpen_filter
SharpenFilter
errors
Returns `Err` if the mipmap generation fails,
or if the parameters are invalid.
Returns ` Err ` if the mipmap generation fails or if the parameters are invalid .