Use f3kdb for bit depth conversion when needed

This fixes high bit depth AviSynth input with input-depth != 16 or BIT_DEPTH