Modeling Of Video Quality For Automatic Video Analysis And Its Applications In Wireless Camera Networks