comparison dsputil.h @ 3020:c75fb0747e74 libavcodec

use h264 MC functions for 2xX Xx2 blocks in snow too
author michael
date Sun, 08 Jan 2006 01:50:34 +0000
parents 533c6386eca9
children 7a92269a3ccd
comparison
equal deleted inserted replaced
3019:08da190c65e2 3020:c75fb0747e74
251 * h264 Chram MC 251 * h264 Chram MC
252 */ 252 */
253 h264_chroma_mc_func put_h264_chroma_pixels_tab[3]; 253 h264_chroma_mc_func put_h264_chroma_pixels_tab[3];
254 h264_chroma_mc_func avg_h264_chroma_pixels_tab[3]; 254 h264_chroma_mc_func avg_h264_chroma_pixels_tab[3];
255 255
256 qpel_mc_func put_h264_qpel_pixels_tab[3][16]; 256 qpel_mc_func put_h264_qpel_pixels_tab[4][16];
257 qpel_mc_func avg_h264_qpel_pixels_tab[3][16]; 257 qpel_mc_func avg_h264_qpel_pixels_tab[4][16];
258 258
259 h264_weight_func weight_h264_pixels_tab[10]; 259 h264_weight_func weight_h264_pixels_tab[10];
260 h264_biweight_func biweight_h264_pixels_tab[10]; 260 h264_biweight_func biweight_h264_pixels_tab[10];
261 261
262 me_cmp_func pix_abs[2][4]; 262 me_cmp_func pix_abs[2][4];
508 508
509 #define LD16(a) (((const struct unaligned_16 *) (a))->l) 509 #define LD16(a) (((const struct unaligned_16 *) (a))->l)
510 #define LD32(a) (((const struct unaligned_32 *) (a))->l) 510 #define LD32(a) (((const struct unaligned_32 *) (a))->l)
511 #define LD64(a) (((const struct unaligned_64 *) (a))->l) 511 #define LD64(a) (((const struct unaligned_64 *) (a))->l)
512 512
513 #define ST16(a, b) (((struct unaligned_16 *) (a))->l) = (b)
513 #define ST32(a, b) (((struct unaligned_32 *) (a))->l) = (b) 514 #define ST32(a, b) (((struct unaligned_32 *) (a))->l) = (b)
514 515
515 #else /* __GNUC__ */ 516 #else /* __GNUC__ */
516 517
517 #define LD16(a) (*((uint16_t*)(a))) 518 #define LD16(a) (*((uint16_t*)(a)))