core/formats: add NAPixelFormaton::get_total_depth()