Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1225:ca979193f8e1 libavcodec
doxy
author | michaelni |
---|---|
date | Mon, 05 May 2003 10:00:57 +0000 |
parents | 358bbc952e27 |
children | d63e0185a90f |
comparison
equal
deleted
inserted
replaced
1224:3fa9a3de913f | 1225:ca979193f8e1 |
---|---|
1859 x = -x; | 1859 x = -x; |
1860 return -(h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1)); | 1860 return -(h263_chroma_roundtab[x & 0xf] + ((x >> 3) & ~1)); |
1861 } | 1861 } |
1862 } | 1862 } |
1863 | 1863 |
1864 /** | |
1865 * motion compesation of a single macroblock | |
1866 * @param s context | |
1867 * @param dest_y luma destination pointer | |
1868 * @param dest_cb chroma cb/u destination pointer | |
1869 * @param dest_cr chroma cr/v destination pointer | |
1870 * @param dir direction (0->forward, 1->backward) | |
1871 * @param ref_picture array[3] of pointers to the 3 planes of the reference picture | |
1872 * @param pic_op halfpel motion compensation function (average or put normally) | |
1873 * @param pic_op qpel motion compensation function (average or put normally) | |
1874 * the motion vectors are taken from s->mv and the MV type from s->mv_type | |
1875 */ | |
1864 static inline void MPV_motion(MpegEncContext *s, | 1876 static inline void MPV_motion(MpegEncContext *s, |
1865 uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, | 1877 uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, |
1866 int dir, uint8_t **ref_picture, | 1878 int dir, uint8_t **ref_picture, |
1867 op_pixels_func (*pix_op)[4], qpel_mc_func (*qpix_op)[16]) | 1879 op_pixels_func (*pix_op)[4], qpel_mc_func (*qpix_op)[16]) |
1868 { | 1880 { |