#[repr(C)]pub struct mpv_render_frame_info {
pub flags: u64,
pub target_time: i64,
}Expand description
Information about the next video frame that will be rendered. Can be retrieved with MPV_RENDER_PARAM_NEXT_FRAME_INFO.
Fields§
§flags: u64A bitset of mpv_render_frame_info_flag values (i.e. multiple flags are combined with bitwise or).
target_time: i64Absolute time at which the frame is supposed to be displayed. This is in the same unit and base as the time returned by mpv_get_time_us(). For frames that are redrawn, or if vsync locked video timing is used (see “video-sync” option), then this can be 0. The “video-timing-offset” option determines how much “headroom” the render thread gets (but a high enough frame rate can reduce it anyway). mpv_render_context_render() will normally block until the time is elapsed, unless you pass it MPV_RENDER_PARAM_BLOCK_FOR_TARGET_TIME = 0.
Trait Implementations§
Source§impl Clone for mpv_render_frame_info
impl Clone for mpv_render_frame_info
Source§fn clone(&self) -> mpv_render_frame_info
fn clone(&self) -> mpv_render_frame_info
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mpv_render_frame_info
impl Debug for mpv_render_frame_info
impl Copy for mpv_render_frame_info
Auto Trait Implementations§
impl Freeze for mpv_render_frame_info
impl RefUnwindSafe for mpv_render_frame_info
impl Send for mpv_render_frame_info
impl Sync for mpv_render_frame_info
impl Unpin for mpv_render_frame_info
impl UnwindSafe for mpv_render_frame_info
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more