mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
Add getters to VideColorimetry.
This commit is contained in:
parent
a88918dd5f
commit
b62e2f154d
1 changed files with 16 additions and 0 deletions
|
@ -128,6 +128,22 @@ impl VideoColorimetry {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn range(&self) -> ::VideoColorRange {
|
||||
from_glib(self.0.range)
|
||||
}
|
||||
|
||||
pub fn matrix(&self) -> ::VideoColorMatrix {
|
||||
from_glib(self.0.matrix)
|
||||
}
|
||||
|
||||
pub fn transfer(&self) -> ::VideoTransferFunction {
|
||||
from_glib(self.0.transfer)
|
||||
}
|
||||
|
||||
pub fn primaries(&self) -> ::VideoColorPrimaries {
|
||||
from_glib(self.0.primaries)
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for VideoColorimetry {
|
||||
|
|
Loading…
Reference in a new issue