Add window to encoder