Browse code

Merge remote-tracking branch 'qatar/master'

* qatar/master:
motion_est: drop inline from sad_hpel_motion_search()
motion_est: remove unused macros
motion_est: remove useless no_motion_search() function
lagarith: frame multithreading
doxygen: qdm2: Drop documentation for non-existing function parameters
build: add HOSTOBJS to SUBDIR_VARS list

Conflicts:
Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/08/10 11:46:13
Showing 3 changed files
... ...
@@ -73,7 +73,7 @@ SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS      \
73 73
                MMI-OBJS ALTIVEC-OBJS VIS-OBJS                            \
74 74
                MMX-OBJS YASM-OBJS                                        \
75 75
                MIPSFPU-OBJS MIPSDSPR2-OBJS MIPSDSPR1-OBJS MIPS32R2-OBJS  \
76
-               OBJS TESTOBJS
76
+               OBJS HOSTOBJS TESTOBJS
77 77
 
78 78
 define RESET
79 79
 $(1) :=
... ...
@@ -39,15 +39,13 @@
39 39
 #undef NDEBUG
40 40
 #include <assert.h>
41 41
 
42
-#define SQ(a) ((a)*(a))
43
-
44 42
 #define P_LEFT P[1]
45 43
 #define P_TOP P[2]
46 44
 #define P_TOPRIGHT P[3]
47 45
 #define P_MEDIAN P[4]
48 46
 #define P_MV1 P[9]
49 47
 
50
-static inline int sad_hpel_motion_search(MpegEncContext * s,
48
+static int sad_hpel_motion_search(MpegEncContext * s,
51 49
                                   int *mx_ptr, int *my_ptr, int dmin,
52 50
                                   int src_index, int ref_index,
53 51
                                   int size, int h);
... ...
@@ -374,15 +372,6 @@ int ff_init_me(MpegEncContext *s){
374 374
     return 0;
375 375
 }
376 376
 
377
-static inline void no_motion_search(MpegEncContext * s,
378
-                                    int *mx_ptr, int *my_ptr)
379
-{
380
-    *mx_ptr = 16 * s->mb_x;
381
-    *my_ptr = 16 * s->mb_y;
382
-}
383
-
384
-#define Z_THRESHOLD 256
385
-
386 377
 #define CHECK_SAD_HALF_MV(suffix, x, y) \
387 378
 {\
388 379
     d= s->dsp.pix_abs[size][(x?1:0)+(y?2:0)](NULL, pix, ptr+((x)>>1), stride, h);\
... ...
@@ -390,7 +379,7 @@ static inline void no_motion_search(MpegEncContext * s,
390 390
     COPY3_IF_LT(dminh, d, dx, x, dy, y)\
391 391
 }
392 392
 
393
-static inline int sad_hpel_motion_search(MpegEncContext * s,
393
+static int sad_hpel_motion_search(MpegEncContext * s,
394 394
                                   int *mx_ptr, int *my_ptr, int dmin,
395 395
                                   int src_index, int ref_index,
396 396
                                   int size, int h)
... ...
@@ -1051,9 +1040,8 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
1051 1051
     switch(s->me_method) {
1052 1052
     case ME_ZERO:
1053 1053
     default:
1054
-        no_motion_search(s, &mx, &my);
1055
-        mx-= mb_x*16;
1056
-        my-= mb_y*16;
1054
+        mx   = 0;
1055
+        my   = 0;
1057 1056
         dmin = 0;
1058 1057
         break;
1059 1058
     case ME_X1:
... ...
@@ -1294,10 +1282,9 @@ static int ff_estimate_motion_b(MpegEncContext * s,
1294 1294
     switch(s->me_method) {
1295 1295
     case ME_ZERO:
1296 1296
     default:
1297
-        no_motion_search(s, &mx, &my);
1297
+        mx   = 0;
1298
+        my   = 0;
1298 1299
         dmin = 0;
1299
-        mx-= mb_x*16;
1300
-        my-= mb_y*16;
1301 1300
         break;
1302 1301
     case ME_X1:
1303 1302
     case ME_EPZS:
... ...
@@ -1105,7 +1105,6 @@ static int process_subpacket_9 (QDM2Context *q, QDM2SubPNode *node)
1105 1105
  *
1106 1106
  * @param q         context
1107 1107
  * @param node      pointer to node with packet
1108
- * @param length    packet length in bits
1109 1108
  */
1110 1109
 static void process_subpacket_10 (QDM2Context *q, QDM2SubPNode *node)
1111 1110
 {
... ...
@@ -1154,7 +1153,6 @@ static void process_subpacket_11 (QDM2Context *q, QDM2SubPNode *node)
1154 1154
  *
1155 1155
  * @param q         context
1156 1156
  * @param node      pointer to node with packet
1157
- * @param length    packet length in bits
1158 1157
  */
1159 1158
 static void process_subpacket_12 (QDM2Context *q, QDM2SubPNode *node)
1160 1159
 {