mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-10 11:39:46 +00:00
video: implement Eq and PartialEq on VideoAlignment
This commit is contained in:
parent
6fbe7a1739
commit
7cc57f4164
1 changed files with 12 additions and 0 deletions
|
@ -82,6 +82,18 @@ impl VideoAlignment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl PartialEq for VideoAlignment {
|
||||||
|
fn eq(&self, other: &VideoAlignment) -> bool {
|
||||||
|
self.get_padding_top() == other.get_padding_top()
|
||||||
|
&& self.get_padding_bottom() == other.get_padding_bottom()
|
||||||
|
&& self.get_padding_left() == other.get_padding_left()
|
||||||
|
&& self.get_padding_right() == other.get_padding_right()
|
||||||
|
&& self.get_stride_align() == other.get_stride_align()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Eq for VideoAlignment {}
|
||||||
|
|
||||||
pub trait VideoBufferPoolConfig {
|
pub trait VideoBufferPoolConfig {
|
||||||
fn get_video_alignment(&self) -> Option<VideoAlignment>;
|
fn get_video_alignment(&self) -> Option<VideoAlignment>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue