We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af80b95 commit 441d1ceCopy full SHA for 441d1ce
crates/vdo/src/lib.rs
@@ -281,12 +281,18 @@ impl StreamBuilder {
281
self
282
}
283
284
+ pub fn framerate(mut self, framerate: u32) -> Self {
285
+ self.framerate = framerate;
286
+ self
287
+ }
288
+
289
pub fn build(self) -> Result<Stream> {
290
let map = Map::new()?;
291
map.set_u32("channel", self.channel)?;
292
map.set_u32("format", self.format as u32)?;
293
map.set_u32("width", self.width)?;
294
map.set_u32("height", self.height)?;
295
+ map.set_u32("framerate", self.framerate)?;
296
map.set_u32("buffer.count", self.buffer_count)?;
297
map.set_u32("buffer.strategy", self.buffer_strategy as u32)?;
298
let (stream_raw, maybe_error) = unsafe { try_func!(vdo_stream_new, map.raw, None) };
0 commit comments