Depth-map downscale factors

I need to have 2 different downscale factors because I am mixing 5MP and 50MP images in the same project.
Other question : What is the downscale algorithm used ?