pub fn change_memory_format( img_buf: ImgBuf, frame: Frame, target_format: MemoryFormat, ) -> Result<(Frame, ImgBuf), Error>