Attempt to support multiple bitdepths at the same time in filtering