util/frame/video: add picture_mut getter
This commit is contained in:
parent
70633b1349
commit
dae7e523f6
@ -35,6 +35,10 @@ impl Video {
|
|||||||
Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height())
|
Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn picture_mut(&mut self) -> Picture {
|
||||||
|
Picture::wrap(self.ptr as *mut AVPicture, self.format(), self.width(), self.height())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn format(&self) -> format::Pixel {
|
pub fn format(&self) -> format::Pixel {
|
||||||
unsafe {
|
unsafe {
|
||||||
if (*self.ptr).format == -1 {
|
if (*self.ptr).format == -1 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user