Mercurial > libavcodec.hg
comparison motion_est_template.c @ 4266:8a50de4eafca libavcodec
10l umh search needs hex size 2 now after the last change
| author | michael |
|---|---|
| date | Tue, 05 Dec 2006 12:35:47 +0000 |
| parents | 4241e92fb0c7 |
| children | d6f83e2f8804 |
comparison
equal
deleted
inserted
replaced
| 4265:4241e92fb0c7 | 4266:8a50de4eafca |
|---|---|
| 772 for(i=0; i<16; i++){ | 772 for(i=0; i<16; i++){ |
| 773 CHECK_CLIPPED_MV(x+hex[i][0]*j, y+hex[i][1]*j); | 773 CHECK_CLIPPED_MV(x+hex[i][0]*j, y+hex[i][1]*j); |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 1); | 777 return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 2); |
| 778 } | 778 } |
| 779 | 779 |
| 780 #define SAB_CHECK_MV(ax,ay)\ | 780 #define SAB_CHECK_MV(ax,ay)\ |
| 781 {\ | 781 {\ |
| 782 const int key= ((ay)<<ME_MAP_MV_BITS) + (ax) + map_generation;\ | 782 const int key= ((ay)<<ME_MAP_MV_BITS) + (ax) + map_generation;\ |
