Gravity direction-based ultra-fast intraprediction algorithm for H.264/AVC video coding