(&self)
| 185 | |
| 186 | impl<'a> EncodeInput<'a> { |
| 187 | pub fn yuv(&self) -> ResultType<&'_ [u8]> { |
| 188 | match self { |
| 189 | Self::YUV(f) => Ok(f), |
| 190 | _ => bail!("not pixelfbuffer frame"), |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | pub fn texture(&self) -> ResultType<*mut c_void> { |
| 195 | match self { |
no outgoing calls