Debian Codegraph @

utils/mmxsse/find_best_one_pel.c

raw symbols SCIP
1 #cxx . . $ `<file>/utils/mmxsse/find_best_one_pel.c`/include "config.h"cxx . . $ `<file>/config.h`/
2 #include <stdlib.h>
3 #include <limits.h>
4 #include <math.h>
5 #include "mmxsse_motion.h"cxx . . $ `<file>/utils/mmxsse/mmxsse_motion.h`/
6 #include "fastintfns.h"cxx . . $ `<file>/utils/fastintfns.h`/
7
8 void find_best_one_pel_mmxecxx . . $ find_best_one_pel_mmxe(c35203f106abea2e).( me_result_setcxx . . $ me_result_set# *sub22set,
9 uint8_tcxx . . $ uint8_t# *org, uint8_tcxx . . $ uint8_t# *blk,
10 int i0, int j0,
11 int ihigh, int jhigh,
12 int rowstride, int h,
13 me_result_scxx . . $ me_result_s# *best_so_far
14 )
15
16 {
17 int i,k;
18 int d;
19 me_result_scxx . . $ me_result_s# minpos = *best_so_far;
20 int ilim = ihigh-i0;
21 int jlim = jhigh-j0;
22 int dmin = INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!;
23 uint8_tcxx . . $ uint8_t# *orgblk;
24 int penalty;
25 me_result_scxx . . $ me_result_s# matchrec;
26 int32_tcxx . . $ int32_t# resvec[4];
27
28 for( k = 0; k < sub22set->lencxx . . $ _me_result_vec#len.; ++k )
29 {
30 int x;
31 matchrec = sub22set->mestscxx . . $ _me_result_vec#mests.[k];
32 orgblk = org + (i0+matchrec.xcxx . . $ me_result#x.)+rowstride*(j0+matchrec.ycxx . . $ me_result#y.);
33 penalty = (abscxx . . $ abs(7864480464b09eea).(matchrec.xcxx . . $ me_result#x.) + abscxx . . $ abs(7864480464b09eea).(matchrec.ycxx . . $ me_result#y.))<<3;
34
35 /* Get SAD for macroblocks: orgblk,orgblk(+1,0),
36 orgblk(0,+1), and orgblk(+1,+1)
37 Done all in one go to reduce memory bandwidth demand
38 */
39 if( penalty>=dmin )
40 continue;
41 x=mblock_nearest4_sads_mmxecxx . . $ mblock_nearest4_sads_mmxe(ef8b417bae5281f).(orgblk,blk,rowstride,h,resvec,dmin-penalty);
42 if( x+penalty>=dmin )
43 continue;
44 for( i = 0; i < 4; ++i )
45 {
46 if( matchrec.xcxx . . $ me_result#x. <= ilim && matchrec.ycxx . . $ me_result#y. <= jlim )
47 {
48
49 d = penalty+resvec[i];
50 if (d<dmin)
51 {
52 dmin = d;
53 minpos = matchrec;
54 }
55 }
56 if( i == 1 )
57 {
58 orgblk += rowstride-1;
59 matchrec.xcxx . . $ me_result#x. -= 1;
60 matchrec.ycxx . . $ me_result#y. += 1;
61 }
62 else
63 {
64 orgblk += 1;
65 matchrec.xcxx . . $ me_result#x. += 1;
66 }
67 }
68 }
69
70 minpos.weightcxx . . $ me_result#weight. = (uint16_tcxx . . $ uint16_t#)intmincxx . . $ intmin(9b79fb6aee4c0440).(255*255, dmin);
71 *best_so_far = minpos;
72
73 }
74