comparison h264.c @ 2535:e0bf024629cf libavcodec

vismv didn't display 8x8 mvs in H.264
author lorenm
date Thu, 03 Mar 2005 07:21:23 +0000
parents 0fbbba9a52bc
children 943b0615fc93
comparison
equal deleted inserted replaced
2534:0420f228ebb6 2535:e0bf024629cf
580 #if 1 580 #if 1
581 //FIXME direct mb can skip much of this 581 //FIXME direct mb can skip much of this
582 if(IS_INTER(mb_type) || (IS_DIRECT(mb_type) && h->direct_spatial_mv_pred)){ 582 if(IS_INTER(mb_type) || (IS_DIRECT(mb_type) && h->direct_spatial_mv_pred)){
583 int list; 583 int list;
584 for(list=0; list<2; list++){ 584 for(list=0; list<2; list++){
585 if((!IS_8X8(mb_type)) && !USES_LIST(mb_type, list) && !IS_DIRECT(mb_type) && !for_deblock){ 585 if(!USES_LIST(mb_type, list) && !IS_DIRECT(mb_type) && !for_deblock){
586 /*if(!h->mv_cache_clean[list]){ 586 /*if(!h->mv_cache_clean[list]){
587 memset(h->mv_cache [list], 0, 8*5*2*sizeof(int16_t)); //FIXME clean only input? clean at all? 587 memset(h->mv_cache [list], 0, 8*5*2*sizeof(int16_t)); //FIXME clean only input? clean at all?
588 memset(h->ref_cache[list], PART_NOT_AVAILABLE, 8*5*sizeof(int8_t)); 588 memset(h->ref_cache[list], PART_NOT_AVAILABLE, 8*5*sizeof(int8_t));
589 h->mv_cache_clean[list]= 1; 589 h->mv_cache_clean[list]= 1;
590 }*/ 590 }*/
1237 const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride; 1237 const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride;
1238 int list; 1238 int list;
1239 1239
1240 for(list=0; list<2; list++){ 1240 for(list=0; list<2; list++){
1241 int y; 1241 int y;
1242 if((!IS_8X8(mb_type)) && !USES_LIST(mb_type, list)){ 1242 if(!USES_LIST(mb_type, list)){
1243 if(1){ //FIXME skip or never read if mb_type doesnt use it 1243 if(1){ //FIXME skip or never read if mb_type doesnt use it
1244 for(y=0; y<4; y++){ 1244 for(y=0; y<4; y++){
1245 *(uint64_t*)s->current_picture.motion_val[list][b_xy + 0 + y*h->b_stride]= 1245 *(uint64_t*)s->current_picture.motion_val[list][b_xy + 0 + y*h->b_stride]=
1246 *(uint64_t*)s->current_picture.motion_val[list][b_xy + 2 + y*h->b_stride]= 0; 1246 *(uint64_t*)s->current_picture.motion_val[list][b_xy + 2 + y*h->b_stride]= 0;
1247 } 1247 }