SMPTE RP219-1 pattern signal

This commit is contained in:
Dmitry Sergeev
2026-09-16 00:09:16 +03:00
parent 72939c3be7
commit c3bcee6223
5 changed files with 158 additions and 18 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ func LoadFace(path string, size float64) (font.Face, error) {
return face, nil
}
// NewTextOverlay rasterizes text (white, anti-aliased) onto a black backing
// box, centered horizontally. Box width and x are multiples of 6 so the box
// NewTextOverlay rasterizes text (white, anti-aliased) onto a black backing box.
// Box width and x are multiples of 6 so the box
// covers whole v210 blocks and the per-frame copy is word-aligned.
func NewTextOverlay(text string, frameW, frameH, posX, posY int, face font.Face) (*TextOverlay, error) {
if text == "" {