~siretart/x264/trunk

« back to all changes in this revision

Viewing changes to encoder/me.h

  • Committer: Henrik Gramner
  • Author(s): Anton Mitrofanov
  • Date: 2016-12-01 17:00:07 UTC
  • Revision ID: git-v1:b2b39dae0bd891c8d150b4f4c3a2a24d8d6c1431
Cosmetics

Also make x264_weighted_reference_duplicate() static.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
extern uint16_t *x264_cost_mv_fpel[QP_MAX+1][4];
70
70
 
71
71
#define COPY1_IF_LT(x,y)\
72
 
if((y)<(x))\
73
 
    (x)=(y);
 
72
if( (y) < (x) )\
 
73
    (x) = (y);
74
74
 
75
75
#define COPY2_IF_LT(x,y,a,b)\
76
 
if((y)<(x))\
 
76
if( (y) < (x) )\
77
77
{\
78
 
    (x)=(y);\
79
 
    (a)=(b);\
 
78
    (x) = (y);\
 
79
    (a) = (b);\
80
80
}
81
81
 
82
82
#define COPY3_IF_LT(x,y,a,b,c,d)\
83
 
if((y)<(x))\
 
83
if( (y) < (x) )\
84
84
{\
85
 
    (x)=(y);\
86
 
    (a)=(b);\
87
 
    (c)=(d);\
 
85
    (x) = (y);\
 
86
    (a) = (b);\
 
87
    (c) = (d);\
88
88
}
89
89
 
90
90
#define COPY4_IF_LT(x,y,a,b,c,d,e,f)\
91
 
if((y)<(x))\
 
91
if( (y) < (x) )\
92
92
{\
93
 
    (x)=(y);\
94
 
    (a)=(b);\
95
 
    (c)=(d);\
96
 
    (e)=(f);\
 
93
    (x) = (y);\
 
94
    (a) = (b);\
 
95
    (c) = (d);\
 
96
    (e) = (f);\
97
97
}
98
98
 
99
99
#define COPY2_IF_GT(x,y,a,b)\
100
 
if((y)>(x))\
 
100
if( (y) > (x) )\
101
101
{\
102
 
    (x)=(y);\
103
 
    (a)=(b);\
 
102
    (x) = (y);\
 
103
    (a) = (b);\
104
104
}
105
105
 
106
106
#endif