use x264::*;
pub struct Picture {
raw: x264_picture_t,
}
impl Picture {
pub fn keyframe(&self) -> bool {
self.raw.b_keyframe != 0
}
pub fn pts(&self) -> i64 {
self.raw.i_pts
}
pub fn dts(&self) -> i64 {
self.raw.i_dts
}
#[doc(hidden)]
pub unsafe fn from_raw(raw: x264_picture_t) -> Self {
Self { raw }
}
}