Rate Distortion Optimized Coding Mode Selection for H.264/AVC in Wireless Environments