過去二十多年來,有關於應用於影片編碼的動量搜尋演算法不在少數,這些演算法中主要是為了改進全域搜尋演算法,進而加快動量的估算與減少計算上的複雜度和時間。但是這些方法皆是使用固定大小的區塊去估算,若是將之應用在縮放的影片中,會有區塊大小的變化,對於比對上就會造成嚴重的誤差。為了解決縮放的影片中區塊的縮放不定,提出了一個計算整段影片的縮放倍率的方法,並將計算後的結果應用到影像的修補上,過去的影像修補是對平移的影片中的物件做修補,而我們將本論文提出的方法應用到含有縮放的影片中,並對影片中的物件進行修補。 Most motion estimation algorithms are proposed for video coding during past twenty years. These algorithms are improved to speed up the estimation of motion vector and to decrease time complexity computationally. These methods are using of fixed block size. There are problems when using fixed block size in variety of scale videos. So we propose a method to calculate the variety of scale videos using unfixed block size. We use our method to inpaint the moving object horizontally in scale videos which are different from in planning videos in the past.