Hardware co-processors for real-time and high-quality H.264/AVC video coding