frame/video: add set_kind()
method
This commit is contained in:
@ -74,6 +74,13 @@ impl Video {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn set_kind(&mut self, value: picture::Type) {
|
||||||
|
unsafe {
|
||||||
|
(*self.as_mut_ptr()).pict_type = value.into();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_interlaced(&self) -> bool {
|
pub fn is_interlaced(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
Reference in New Issue
Block a user