“Distributed architectures and logical task decomposition in multimedia surveillance systems