changeset 2397:a579ef4a4f4a libavcodec

motion_val doxy
author michael
date Wed, 29 Dec 2004 12:14:14 +0000
parents 7e360068b653
children 582e635cfa08
files avcodec.h
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Wed Dec 29 04:17:52 2004 +0000
+++ b/avcodec.h	Wed Dec 29 12:14:14 2004 +0000
@@ -476,7 +476,14 @@
     uint8_t *mbskip_table;\
 \
     /**\
-     * Motion vector table\
+     * Motion vector table.\
+     * @code\
+     * example:\
+     * int mv_sample_log2= 4 - motion_subsample_log2;\
+     * int mb_width= (width+15)>>4;\
+     * int mv_stride= (mb_width << mv_sample_log2) + 1;\
+     * motion_val[direction][x + y*mv_stride][0->mv_x, 1->mv_y];\
+     * @endcode\
      * - encoding: set by user\
      * - decoding: set by lavc\
      */\