|
|
@ -416,7 +416,7 @@ if( (y)>(ymax<<(S)) ) printf("%d %d %d %d %d ymax" #v, ymax, (x), (y), s->mb_x, |
|
|
|
const int shift= 1+qpel;\
|
|
|
|
const int shift= 1+qpel;\
|
|
|
|
|
|
|
|
|
|
|
|
static av_always_inline int small_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static av_always_inline int small_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -457,7 +457,7 @@ static av_always_inline int small_diamond_search(MpegEncContext * s, int *best, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int funny_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int funny_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -499,7 +499,7 @@ static int funny_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int hex_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int hex_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags, int dia_size) |
|
|
|
int size, int h, int flags, int dia_size) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -533,7 +533,7 @@ static int hex_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int l2s_dia_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int l2s_dia_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -571,7 +571,7 @@ static int l2s_dia_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int umh_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int umh_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -618,7 +618,7 @@ static int umh_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int full_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int full_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -681,7 +681,7 @@ static int full_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
|
|
|
|
|
|
|
|
#define MAX_SAB_SIZE ME_MAP_SIZE |
|
|
|
#define MAX_SAB_SIZE ME_MAP_SIZE |
|
|
|
static int sab_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int sab_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -769,7 +769,7 @@ static int sab_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static int var_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static int var_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags) |
|
|
|
int size, int h, int flags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
@ -830,7 +830,7 @@ static int var_diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static av_always_inline int diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
static av_always_inline int diamond_search(MpegEncContext * s, int *best, int dmin, |
|
|
|
int src_index, int ref_index, int const penalty_factor, |
|
|
|
int src_index, int ref_index, const int penalty_factor, |
|
|
|
int size, int h, int flags){ |
|
|
|
int size, int h, int flags){ |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
MotionEstContext * const c= &s->me; |
|
|
|
if(c->dia_size==-1) |
|
|
|
if(c->dia_size==-1) |
|
|
|