Adding edge extension to encoder input.