# HG changeset patch # User michaelni # Date 1052128857 0 # Node ID ca979193f8e17f415ad04aec91d5c53d4fc7b6f8 # Parent 3fa9a3de913f4af82aefed7b49deb6ed28b2cb03 doxy diff -r 3fa9a3de913f -r ca979193f8e1 dsputil.h --- a/dsputil.h Mon May 05 02:54:15 2003 +0000 +++ b/dsputil.h Mon May 05 10:00:57 2003 +0000 @@ -149,6 +149,8 @@ /* maybe create an array for 16/8 functions */ /** * Halfpel motion compensation with rounding (a+b+1)>>1. + * this is an array[2][4] of motion compensation funcions for 2 + * horizontal blocksizes (8,16) and the 4 halfpel positions
* *pixels_tab[ 0->16xH 1->8xH ][ xhalfpel + 2*yhalfpel ] * @param block destination where the result is stored * @param pixels source @@ -159,6 +161,8 @@ /** * Halfpel motion compensation with rounding (a+b+1)>>1. + * this is an array[2][4] of motion compensation funcions for 2 + * horizontal blocksizes (8,16) and the 4 halfpel positions
* *pixels_tab[ 0->16xH 1->8xH ][ xhalfpel + 2*yhalfpel ] * @param block destination into which the result is averaged (a+b+1)>>1 * @param pixels source @@ -169,6 +173,8 @@ /** * Halfpel motion compensation with no rounding (a+b)>>1. + * this is an array[2][4] of motion compensation funcions for 2 + * horizontal blocksizes (8,16) and the 4 halfpel positions
* *pixels_tab[ 0->16xH 1->8xH ][ xhalfpel + 2*yhalfpel ] * @param block destination where the result is stored * @param pixels source @@ -179,6 +185,8 @@ /** * Halfpel motion compensation with no rounding (a+b)>>1. + * this is an array[2][4] of motion compensation funcions for 2 + * horizontal blocksizes (8,16) and the 4 halfpel positions
* *pixels_tab[ 0->16xH 1->8xH ][ xhalfpel + 2*yhalfpel ] * @param block destination into which the result is averaged (a+b)>>1 * @param pixels source diff -r 3fa9a3de913f -r ca979193f8e1 mpegvideo.c --- a/mpegvideo.c Mon May 05 02:54:15 2003 +0000 +++ b/mpegvideo.c Mon May 05 10:00:57 2003 +0000 @@ -1861,6 +1861,18 @@ } } +/** + * motion compesation of a single macroblock + * @param s context + * @param dest_y luma destination pointer + * @param dest_cb chroma cb/u destination pointer + * @param dest_cr chroma cr/v destination pointer + * @param dir direction (0->forward, 1->backward) + * @param ref_picture array[3] of pointers to the 3 planes of the reference picture + * @param pic_op halfpel motion compensation function (average or put normally) + * @param pic_op qpel motion compensation function (average or put normally) + * the motion vectors are taken from s->mv and the MV type from s->mv_type + */ static inline void MPV_motion(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int dir, uint8_t **ref_picture,