Mercurial > libavcodec.hg
comparison mpegvideo.c @ 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 | 4c0469b79010 |
comparison
equal
deleted
inserted
replaced
1628:e7420fdad5fc | 1629:74685a0ec851 |
---|---|
1399 int xy= 1 + mb_x*2 + (i&1) + (mb_y*2 + 1 + (i>>1))*(s->mb_width*2 + 2); | 1399 int xy= 1 + mb_x*2 + (i&1) + (mb_y*2 + 1 + (i>>1))*(s->mb_width*2 + 2); |
1400 int mx= (s->motion_val[xy][0]>>shift) + sx; | 1400 int mx= (s->motion_val[xy][0]>>shift) + sx; |
1401 int my= (s->motion_val[xy][1]>>shift) + sy; | 1401 int my= (s->motion_val[xy][1]>>shift) + sy; |
1402 draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100); | 1402 draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100); |
1403 } | 1403 } |
1404 }else if(IS_16X8(s->current_picture.mb_type[mb_index])){ | |
1405 int i; | |
1406 for(i=0; i<2; i++){ | |
1407 int sx=mb_x*16 + 8; | |
1408 int sy=mb_y*16 + 4 + 8*i; | |
1409 int xy=1 + mb_x*2 + (mb_y*2 + 1 + i)*(s->mb_width*2 + 2); | |
1410 int mx=(s->motion_val[xy][0]>>shift) + sx; | |
1411 int my=(s->motion_val[xy][1]>>shift) + sy; | |
1412 draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100); | |
1413 } | |
1404 }else{ | 1414 }else{ |
1405 int sx= mb_x*16 + 8; | 1415 int sx= mb_x*16 + 8; |
1406 int sy= mb_y*16 + 8; | 1416 int sy= mb_y*16 + 8; |
1407 int xy= 1 + mb_x*2 + (mb_y*2 + 1)*(s->mb_width*2 + 2); | 1417 int xy= 1 + mb_x*2 + (mb_y*2 + 1)*(s->mb_width*2 + 2); |
1408 int mx= (s->motion_val[xy][0]>>shift) + sx; | 1418 int mx= (s->motion_val[xy][0]>>shift) + sx; |