Lines Matching refs:AvFrameError
754 pub enum AvFrameError { enum
774 pub fn new() -> Result<Self, AvFrameError> { in new()
777 unsafe { ffi::av_frame_alloc().as_mut() }.ok_or(AvFrameError::FrameAllocationFailed)?, in new()
783 pub fn builder() -> Result<AvFrameBuilder, AvFrameError> { in builder()
826 pub fn make_writable(&mut self) -> Result<(), AvFrameError> { in make_writable() argument
836 pub fn set_dimensions(&mut self, dimensions: Dimensions) -> Result<(), AvFrameError> { in set_dimensions() argument
842 .map_err(|_| AvFrameError::DimensionOverflow)?; in set_dimensions()
846 .map_err(|_| AvFrameError::DimensionOverflow)?; in set_dimensions()
852 pub fn set_format(&mut self, format: AvPixelFormat) -> Result<(), AvFrameError> { in set_format() argument
887 ) -> Result<AvFrame, AvFrameError> { in build_owned() argument
907 return Err(AvFrameError::BufferOutOfRange); in build_owned()
911 return Err(AvFrameError::BufferTooSmall); in build_owned()
914 return Err(AvFrameError::InvalidStride); in build_owned()
938 return Err(AvFrameError::BufferAlias); in build_owned()