web_codecs/video/
dimensions.rs1#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
2pub struct Dimensions {
3 pub width: u32,
4 pub height: u32,
5}
6
7impl Dimensions {
8 pub fn new(width: u32, height: u32) -> Self {
9 Self { width, height }
10 }
11}