Mercurial > libavcodec.hg
comparison dsputil.h @ 294:944632089814 libavcodec
4MV motion estimation (not finished yet)
SAD functions rewritten (8x8 support & MMX2 optimizations)
HQ inter/intra decission
msmpeg4 encoding bugfix (MV where too long)
author | michaelni |
---|---|
date | Wed, 27 Mar 2002 21:25:22 +0000 |
parents | db20b987c32d |
children | c1a8a1b4a24b |
comparison
equal
deleted
inserted
replaced
293:6eaf5da091fa | 294:944632089814 |
---|---|
64 #define sub_pixels_2(block, pixels, line_size, dxy) \ | 64 #define sub_pixels_2(block, pixels, line_size, dxy) \ |
65 sub_pixels_tab[dxy](block, pixels, line_size, 8) | 65 sub_pixels_tab[dxy](block, pixels, line_size, 8) |
66 | 66 |
67 /* motion estimation */ | 67 /* motion estimation */ |
68 | 68 |
69 typedef int (*op_pixels_abs_func)(UINT8 *blk1, UINT8 *blk2, int line_size, int h); | 69 typedef int (*op_pixels_abs_func)(UINT8 *blk1, UINT8 *blk2, int line_size); |
70 | 70 |
71 extern op_pixels_abs_func pix_abs16x16; | 71 extern op_pixels_abs_func pix_abs16x16; |
72 extern op_pixels_abs_func pix_abs16x16_x2; | 72 extern op_pixels_abs_func pix_abs16x16_x2; |
73 extern op_pixels_abs_func pix_abs16x16_y2; | 73 extern op_pixels_abs_func pix_abs16x16_y2; |
74 extern op_pixels_abs_func pix_abs16x16_xy2; | 74 extern op_pixels_abs_func pix_abs16x16_xy2; |
75 extern op_pixels_abs_func pix_abs8x8; | |
76 extern op_pixels_abs_func pix_abs8x8_x2; | |
77 extern op_pixels_abs_func pix_abs8x8_y2; | |
78 extern op_pixels_abs_func pix_abs8x8_xy2; | |
75 | 79 |
76 int pix_abs16x16_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); | 80 int pix_abs16x16_c(UINT8 *blk1, UINT8 *blk2, int lx); |
77 int pix_abs16x16_x2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); | 81 int pix_abs16x16_x2_c(UINT8 *blk1, UINT8 *blk2, int lx); |
78 int pix_abs16x16_y2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); | 82 int pix_abs16x16_y2_c(UINT8 *blk1, UINT8 *blk2, int lx); |
79 int pix_abs16x16_xy2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h); | 83 int pix_abs16x16_xy2_c(UINT8 *blk1, UINT8 *blk2, int lx); |
80 | 84 |
81 static inline int block_permute_op(int j) | 85 static inline int block_permute_op(int j) |
82 { | 86 { |
83 return permutation[j]; | 87 return permutation[j]; |
84 } | 88 } |