Variable padding for self filtering