initial video osd algorithm project