(handle: String)
| 1055 | |
| 1056 | impl AndroidSharedVideoFrameStream { |
| 1057 | fn open(handle: String) -> Result<Self, AppError> { |
| 1058 | let (fd, ptr, length) = open_android_shared_video_memory(&handle)?; |
| 1059 | Ok(Self { |
| 1060 | handle, |
| 1061 | fd, |
| 1062 | ptr, |
| 1063 | length, |
| 1064 | last_sequence: None, |
| 1065 | }) |
| 1066 | } |
| 1067 | |
| 1068 | pub fn next_frame( |
| 1069 | &mut self, |