Skip to main content

render_timecode_text

Function render_timecode_text 

Source
pub fn render_timecode_text(
    tc: &str,
    frame_width: u32,
    frame_height: u32,
    overlay: &TimecodeOverlay,
) -> (u32, u32)
Expand description

Compute the (x, y) pixel position for a timecode string overlay.

The returned coordinates represent the top-left corner of the rendered text box. tc is expected to be a formatted timecode string such as “01:02:03:04”. frame_width and frame_height are the frame dimensions in pixels.