MCPcopy Create free account
hub / github.com/Recordscript/recordscript / yuv

Method yuv

libs/scrap/src/common/mod.rs:187–192  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

185
186impl<'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 {

Callers 6

encode_to_messageMethod · 0.80
encode_to_messageMethod · 0.80
encode_to_messageMethod · 0.80
test_vpxFunction · 0.80
test_av1Function · 0.80
test_encoderFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_vpxFunction · 0.64
test_av1Function · 0.64
test_encoderFunction · 0.64