Mercurial > libavcodec.hg
comparison dsputil.h @ 651:45e8f39fda50 libavcodec
put/avg_pixels16
fixing 2 small qpel bugs
author | michaelni |
---|---|
date | Wed, 11 Sep 2002 12:39:53 +0000 |
parents | 0012f75c92bb |
children | 9008cbe229ce |
comparison
equal
deleted
inserted
replaced
650:ef4a33aad86e | 651:45e8f39fda50 |
---|---|
72 void add_pixels_clamped_c(const DCTELEM *block, UINT8 *pixels, int line_size); | 72 void add_pixels_clamped_c(const DCTELEM *block, UINT8 *pixels, int line_size); |
73 void clear_blocks_c(DCTELEM *blocks); | 73 void clear_blocks_c(DCTELEM *blocks); |
74 | 74 |
75 /* add and put pixel (decoding) */ | 75 /* add and put pixel (decoding) */ |
76 typedef void (*op_pixels_func)(UINT8 *block, const UINT8 *pixels, int line_size, int h); | 76 typedef void (*op_pixels_func)(UINT8 *block, const UINT8 *pixels, int line_size, int h); |
77 typedef void (*qpel_mc_func)(UINT8 *dst, UINT8 *src, int dstStride, int srcStride, int mx, int my); | 77 typedef void (*qpel_mc_func)(UINT8 *dst, UINT8 *src, int stride); |
78 | 78 |
79 extern op_pixels_func put_pixels_tab[4]; | 79 extern op_pixels_func put_pixels_tab[2][4]; |
80 extern op_pixels_func avg_pixels_tab[4]; | 80 extern op_pixels_func avg_pixels_tab[2][4]; |
81 extern op_pixels_func put_no_rnd_pixels_tab[4]; | 81 extern op_pixels_func put_no_rnd_pixels_tab[2][4]; |
82 extern op_pixels_func avg_no_rnd_pixels_tab[4]; | 82 extern op_pixels_func avg_no_rnd_pixels_tab[2][4]; |
83 extern qpel_mc_func qpel_mc_rnd_tab[16]; | 83 extern qpel_mc_func put_qpel_pixels_tab[2][16]; |
84 extern qpel_mc_func qpel_mc_no_rnd_tab[16]; | 84 extern qpel_mc_func avg_qpel_pixels_tab[2][16]; |
85 extern qpel_mc_func put_no_rnd_qpel_pixels_tab[2][16]; | |
86 extern qpel_mc_func avg_no_rnd_qpel_pixels_tab[2][16]; | |
87 | |
88 #define CALL_2X_PIXELS(a, b, n)\ | |
89 static void a(uint8_t *block, const uint8_t *pixels, int line_size, int h){\ | |
90 b(block , pixels , line_size, h);\ | |
91 b(block+n, pixels+n, line_size, h);\ | |
92 } | |
85 | 93 |
86 /* motion estimation */ | 94 /* motion estimation */ |
87 | 95 |
88 typedef int (*op_pixels_abs_func)(UINT8 *blk1, UINT8 *blk2, int line_size); | 96 typedef int (*op_pixels_abs_func)(UINT8 *blk1, UINT8 *blk2, int line_size); |
89 | 97 |