pub fn compute_position(
position: &OverlayPosition,
frame_width: u32,
frame_height: u32,
text_width_px: u32,
text_height_px: u32,
margin: u32,
) -> (u32, u32)Expand description
Compute pixel coordinates for the overlay given frame dimensions.
Returns (x, y) coordinates for the top-left corner of the overlay text.