comparison h264.c @ 2669:a4e3a37ed57b libavcodec

some asserts()
author michael
date Thu, 12 May 2005 08:44:17 +0000
parents d321fbf0b2ce
children 6f04c7a5bf24
comparison
equal deleted inserted replaced
2668:b4d7d4d05d95 2669:a4e3a37ed57b
368 368
369 w *= size; 369 w *= size;
370 stride *= size; 370 stride *= size;
371 371
372 assert((((int)vp)&(FFMIN(w, STRIDE_ALIGN)-1)) == 0); 372 assert((((int)vp)&(FFMIN(w, STRIDE_ALIGN)-1)) == 0);
373 assert((stride&(w-1))==0);
373 //FIXME check what gcc generates for 64 bit on x86 and possibly write a 32 bit ver of it 374 //FIXME check what gcc generates for 64 bit on x86 and possibly write a 32 bit ver of it
374 if(w==2 && h==2){ 375 if(w==2 && h==2){
375 *(uint16_t*)(p + 0)= 376 *(uint16_t*)(p + 0)=
376 *(uint16_t*)(p + stride)= size==4 ? val : val*0x0101; 377 *(uint16_t*)(p + stride)= size==4 ? val : val*0x0101;
377 }else if(w==2 && h==4){ 378 }else if(w==2 && h==4){
725 }else{ 726 }else{
726 *(uint32_t*)h->mv_cache [list][scan8[0] - 1 + 2*8]= 727 *(uint32_t*)h->mv_cache [list][scan8[0] - 1 + 2*8]=
727 *(uint32_t*)h->mv_cache [list][scan8[0] - 1 + 3*8]= 0; 728 *(uint32_t*)h->mv_cache [list][scan8[0] - 1 + 3*8]= 0;
728 h->ref_cache[list][scan8[0] - 1 + 2*8]= 729 h->ref_cache[list][scan8[0] - 1 + 2*8]=
729 h->ref_cache[list][scan8[0] - 1 + 3*8]= left_type[0] ? LIST_NOT_USED : PART_NOT_AVAILABLE; 730 h->ref_cache[list][scan8[0] - 1 + 3*8]= left_type[0] ? LIST_NOT_USED : PART_NOT_AVAILABLE;
731 assert((!left_type[0]) == (!left_type[1]));
730 } 732 }
731 733
732 if(for_deblock || (IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred)) 734 if(for_deblock || (IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred))
733 continue; 735 continue;
734 736