lavfi: modify avfilter_get_matrix to support separate scale factors