1 |
|
#ifndef _REDUCED_H_ |
2 |
|
#define _REDUCED_H_ |
3 |
|
|
4 |
|
#include "../portab.h" |
5 |
|
|
6 |
|
/* decoding */ |
7 |
|
typedef void (COPY_UPSAMPLED_8X8_16TO8) (uint8_t *Dst, const int16_t *Src, const int BpS); |
8 |
|
typedef void (ADD_UPSAMPLED_8X8_16TO8) (uint8_t *Dst, const int16_t *Src, const int BpS); |
9 |
|
|
10 |
|
/* deblocking: Note: "Nb"_Blks is the number of 8-pixels blocks to process */ |
11 |
|
typedef void HFILTER_31(uint8_t *Src1, uint8_t *Src2, int Nb_Blks); |
12 |
|
typedef void VFILTER_31(uint8_t *Src1, uint8_t *Src2, const int BpS, int Nb_Blks); |
13 |
|
|
14 |
|
/* encoding: WARNING! These read 1 pixel outside of the input 16x16 block! */ |
15 |
|
typedef void FILTER_18X18_TO_8X8(int16_t *Dst, const uint8_t *Src, const int BpS); |
16 |
|
typedef void FILTER_DIFF_18X18_TO_8X8(int16_t *Dst, const uint8_t *Src, const int BpS); |
17 |
|
|
18 |
|
|
19 |
|
extern COPY_UPSAMPLED_8X8_16TO8 * copy_upsampled_8x8_16to8; |
20 |
|
extern COPY_UPSAMPLED_8X8_16TO8 xvid_Copy_Upsampled_8x8_16To8_C; |
21 |
|
extern COPY_UPSAMPLED_8X8_16TO8 xvid_Copy_Upsampled_8x8_16To8_mmx; |
22 |
|
extern COPY_UPSAMPLED_8X8_16TO8 xvid_Copy_Upsampled_8x8_16To8_xmm; |
23 |
|
|
24 |
|
extern ADD_UPSAMPLED_8X8_16TO8 * add_upsampled_8x8_16to8; |
25 |
|
extern ADD_UPSAMPLED_8X8_16TO8 xvid_Add_Upsampled_8x8_16To8_C; |
26 |
|
extern ADD_UPSAMPLED_8X8_16TO8 xvid_Add_Upsampled_8x8_16To8_mmx; |
27 |
|
extern ADD_UPSAMPLED_8X8_16TO8 xvid_Add_Upsampled_8x8_16To8_xmm; |
28 |
|
|
29 |
|
extern VFILTER_31 * vfilter_31; |
30 |
|
extern VFILTER_31 xvid_VFilter_31_C; |
31 |
|
extern VFILTER_31 xvid_VFilter_31_x86; |
32 |
|
|
33 |
|
extern HFILTER_31 * hfilter_31; |
34 |
|
extern HFILTER_31 xvid_HFilter_31_C; |
35 |
|
extern HFILTER_31 xvid_HFilter_31_x86; |
36 |
|
extern HFILTER_31 xvid_HFilter_31_mmx; |
37 |
|
|
38 |
|
extern FILTER_18X18_TO_8X8 * filter_18x18_to_8x8; |
39 |
|
extern FILTER_18X18_TO_8X8 xvid_Filter_18x18_To_8x8_C; |
40 |
|
extern FILTER_18X18_TO_8X8 xvid_Filter_18x18_To_8x8_mmx; |
41 |
|
|
42 |
|
extern FILTER_DIFF_18X18_TO_8X8 * filter_diff_18x18_to_8x8; |
43 |
|
extern FILTER_DIFF_18X18_TO_8X8 xvid_Filter_Diff_18x18_To_8x8_C; |
44 |
|
extern FILTER_DIFF_18X18_TO_8X8 xvid_Filter_Diff_18x18_To_8x8_mmx; |
45 |
|
|
46 |
|
|
47 |
|
/* rrv motion vector scale-up */ |
48 |
|
#define RRV_MV_SCALEUP(a) ( (a)>0 ? 2*(a)-1 : (a)<0 ? 2*(a)+1 : (a) ) |
49 |
|
|
50 |
|
#endif /* _REDUCED_H_ */ |