[XviD-devel] Get Assert problem with Debug version of 1.2.2

Radek Czyz radoslaw at syskin.cjb.net
Fri Oct 30 11:12:23 CET 2009


Hi,
Yes it's an assert I added long ago, after discovering that our mv cost 
calculation is in fact not right.
However I never found a way to get our cost calculation always right 
while keeping it at least remotely as fast. And it is speed-critical code.

I think we need to concede that our cost is an approximation (correct 
for majority of MVs, and for huge majority of practically-encountered 
MVs) and remove the assert.

Unless somebody has a better idea? :)

Radek

Vico Sohu wrote:
> Hi, All,
> 
>       When I use debug mode of version 1.2.2, always get problem at mbcoding.c (in folder \bitstream) :
> 
>  if (!pMB->mcsel)
>   for (i = 0; i < (pMB->mode == MODE_INTER4V ? 4 : 1); i++) {
>    CodeVector(bs, pMB->pmvs[i].x, frame->fcode);
>    CodeVector(bs, pMB->pmvs[i].y, frame->fcode);
> 
> #ifdef _DEBUG
>    if (i == 0) /* for simplicity */ {
>     int coded_length = BitstreamPos(bs) - bits;
>     int estimated_length = d_mv_bits(pMB->pmvs[i].x, pMB->pmvs[i].y, zeroMV, frame->fcode, 0);
>     assert(estimated_length == coded_length);
>     d_mv_bits(pMB->pmvs[i].x, pMB->pmvs[i].y, zeroMV, frame->fcode, 0);
>    }
> #endif
>   }
> 
> estimated_length IS OFTEN NOT EQUAL TO  coded_length.   so assert error always happen.
> Maybe latest version should modify this code.... 
> 
> ----- Original Message ----- 
> From: <xvid-devel-request at xvid.org>
> To: <xvid-devel at xvid.org>
> Sent: Monday, October 19, 2009 6:00 PM
> Subject: Xvid-devel Digest, Vol 81, Issue 5
> 
> 
>> Send Xvid-devel mailing list submissions to
>> xvid-devel at xvid.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://list.xvid.org/mailman/listinfo/xvid-devel
>> or, via email, send a message with subject or body 'help' to
>> xvid-devel-request at xvid.org
>>
>> You can reach the person managing the list at
>> xvid-devel-owner at xvid.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Xvid-devel digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Requirments for ecoding VGA at 60fps (Xu Ruian)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 19 Oct 2009 11:26:52 +0800
>> From: Xu Ruian <ruian.xu at gmail.com>
>> Subject: [XviD-devel] Requirments for ecoding VGA at 60fps
>> To: xvid-devel at xvid.org
>> Message-ID:
>> <416a1d890910182026w3c7e4bb3x72c7c204980c0953 at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi,
>> I'm now working on a project to port XVID to ARM 946(270MHz).
>> The final goal is to encode MPEG-4 video of VGA at 60fps.
>>
>> Did anyone have experience of running XVID on ARM?
>> Is it feasible to achieve such a performance on this chip?
>>
>> -- 
>> Thanks!
>>
>> Yours, Sincerely
>> William Xu
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Xvid-devel mailing list
>> Xvid-devel at xvid.org
>> http://list.xvid.org/mailman/listinfo/xvid-devel
>>
>>
>> End of Xvid-devel Digest, Vol 81, Issue 5
>> *****************************************
> _______________________________________________
> Xvid-devel mailing list
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> 



More information about the Xvid-devel mailing list