Fast and Efficient Method for Block Edge Classification and Its Application in H.264/AVC Video Coding