diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-25 00:35:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-25 00:35:18 +0000 |
commit | 9bc8b38660a18e1aa2717d3724bd9c03da3fe6fc (patch) | |
tree | 85ea72b509481348c0c6f9edd2524b6adbad51e1 | |
parent | bc1e36466604c039b0b72afc3c7e07a3ea071b6c (diff) | |
download | ffmpeg-9bc8b38660a18e1aa2717d3724bd9c03da3fe6fc.tar.gz |
16x8 MV vissualization by (Wolfgang Hesseler <qv at multimediaware dot com>)
Originally committed as revision 2530 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 4cc31fe2ab..bfd086bf69 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1401,6 +1401,16 @@ void ff_print_debug_info(MpegEncContext *s, Picture *pict){ 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; |