Parent Directory
|
Revision Log
Revision 118 - (view) (download)
1 : | Isibaar | 3 | #ifndef _ENCODER_SAD_H_ |
2 : | #define _ENCODER_SAD_H_ | ||
3 : | |||
4 : | |||
5 : | #include "../portab.h" | ||
6 : | |||
7 : | canard | 115 | typedef void (sadInitFunc)(void); |
8 : | typedef sadInitFunc* sadInitFuncPtr; | ||
9 : | Isibaar | 3 | |
10 : | canard | 115 | extern sadInitFuncPtr sadInit; |
11 : | sadInitFunc sadInit_altivec; | ||
12 : | |||
13 : | suxen_drol | 118 | |
14 : | Isibaar | 3 | typedef uint32_t (sad16Func)(const uint8_t * const cur, |
15 : | const uint8_t * const ref, | ||
16 : | const uint32_t stride, | ||
17 : | const uint32_t best_sad); | ||
18 : | typedef sad16Func* sad16FuncPtr; | ||
19 : | extern sad16FuncPtr sad16; | ||
20 : | sad16Func sad16_c; | ||
21 : | sad16Func sad16_mmx; | ||
22 : | sad16Func sad16_xmm; | ||
23 : | canard | 89 | sad16Func sad16_altivec; |
24 : | Isibaar | 3 | |
25 : | suxen_drol | 118 | |
26 : | typedef uint32_t (sad16biFunc)(const uint8_t * const cur, | ||
27 : | const uint8_t * const ref1, | ||
28 : | const uint8_t * const ref2, | ||
29 : | const uint32_t stride); | ||
30 : | typedef sad16biFunc* sad16biFuncPtr; | ||
31 : | extern sad16biFuncPtr sad16bi; | ||
32 : | sad16biFunc sad16bi_c; | ||
33 : | //sad16biFunc sad16bi_mmx; | ||
34 : | //sad16biFunc sad16bi_xmm; | ||
35 : | |||
36 : | |||
37 : | Isibaar | 3 | typedef uint32_t (sad8Func)(const uint8_t * const cur, |
38 : | const uint8_t * const ref, | ||
39 : | const uint32_t stride); | ||
40 : | typedef sad8Func* sad8FuncPtr; | ||
41 : | extern sad8FuncPtr sad8; | ||
42 : | sad8Func sad8_c; | ||
43 : | sad8Func sad8_mmx; | ||
44 : | sad8Func sad8_xmm; | ||
45 : | canard | 90 | sad8Func sad8_altivec; |
46 : | Isibaar | 3 | |
47 : | |||
48 : | typedef uint32_t (dev16Func)(const uint8_t * const cur, | ||
49 : | const uint32_t stride); | ||
50 : | typedef dev16Func *dev16FuncPtr; | ||
51 : | extern dev16FuncPtr dev16; | ||
52 : | dev16Func dev16_c; | ||
53 : | dev16Func dev16_mmx; | ||
54 : | dev16Func dev16_xmm; | ||
55 : | canard | 89 | dev16Func dev16_altivec; |
56 : | Isibaar | 3 | |
57 : | /* plain c */ | ||
58 : | /* | ||
59 : | |||
60 : | uint32_t sad16(const uint8_t * const cur, | ||
61 : | const uint8_t * const ref, | ||
62 : | const uint32_t stride, | ||
63 : | const uint32_t best_sad); | ||
64 : | |||
65 : | uint32_t sad8(const uint8_t * const cur, | ||
66 : | const uint8_t * const ref, | ||
67 : | const uint32_t stride); | ||
68 : | |||
69 : | uint32_t dev16(const uint8_t * const cur, | ||
70 : | const uint32_t stride); | ||
71 : | */ | ||
72 : | /* mmx */ | ||
73 : | /* | ||
74 : | |||
75 : | uint32_t sad16_mmx(const uint8_t * const cur, | ||
76 : | const uint8_t * const ref, | ||
77 : | const uint32_t stride, | ||
78 : | const uint32_t best_sad); | ||
79 : | |||
80 : | uint32_t sad8_mmx(const uint8_t * const cur, | ||
81 : | const uint8_t * const ref, | ||
82 : | const uint32_t stride); | ||
83 : | |||
84 : | |||
85 : | uint32_t dev16_mmx(const uint8_t * const cur, | ||
86 : | const uint32_t stride); | ||
87 : | |||
88 : | */ | ||
89 : | /* xmm */ | ||
90 : | /* | ||
91 : | uint32_t sad16_xmm(const uint8_t * const cur, | ||
92 : | const uint8_t * const ref, | ||
93 : | const uint32_t stride, | ||
94 : | const uint32_t best_sad); | ||
95 : | |||
96 : | uint32_t sad8_xmm(const uint8_t * const cur, | ||
97 : | const uint8_t * const ref, | ||
98 : | const uint32_t stride); | ||
99 : | |||
100 : | uint32_t dev16_xmm(const uint8_t * const cur, | ||
101 : | const uint32_t stride); | ||
102 : | */ | ||
103 : | |||
104 : | #endif /* _ENCODER_SAD_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |