Add getters to VideColorimetry.

This commit is contained in:
Pete Johanson 2019-01-26 18:42:53 -05:00 committed by Sebastian Dröge
parent a88918dd5f
commit b62e2f154d

View file

@ -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 {