changeset 1629:74685a0ec851 libavcodec

16x8 MV vissualization by (Wolfgang Hesseler <qv at multimediaware dot com>)
author michael
date Tue, 25 Nov 2003 00:35:18 +0000
parents e7420fdad5fc
children 586b5c08863c
files mpegvideo.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Mon Nov 24 21:53:32 2003 +0000
+++ b/mpegvideo.c	Tue Nov 25 00:35:18 2003 +0000
@@ -1401,6 +1401,16 @@
                         int my= (s->motion_val[xy][1]>>shift) + sy;
                         draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100);
                     }
+                }else if(IS_16X8(s->current_picture.mb_type[mb_index])){
+                    int i;
+                    for(i=0; i<2; i++){
+                        int sx=mb_x*16 + 8;
+                        int sy=mb_y*16 + 4 + 8*i;
+                        int xy=1 + mb_x*2 + (mb_y*2 + 1 + i)*(s->mb_width*2 + 2);
+                        int mx=(s->motion_val[xy][0]>>shift) + sx;
+                        int my=(s->motion_val[xy][1]>>shift) + sy;
+                        draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100);
+                    }
                 }else{
                     int sx= mb_x*16 + 8;
                     int sy= mb_y*16 + 8;