[FFmpeg-devel] MPEG-2 Acceleration Refactor

Greg Hulands ghulands
Mon Jun 18 07:47:14 CEST 2007


Hi Corey,
On 17/06/2007, at 10:20 PM, Corey Hickey wrote:
[...]

>
>> @@ -1638,7 +1642,10 @@
>>          /* special case for the first coef. no need to add a  
>> second vlc table */
>>          UPDATE_CACHE(re, &s->gb);
>>          if (((int32_t)GET_CACHE(re, &s->gb)) < 0) {
>> -            level= (3*qscale*quant_matrix[0])>>5;
>> +            if (speed == DECODE_FAST)
>> +               level= (3*qscale)>>1;
>> +            else
>> +               level= (3*qscale*quant_matrix[0])>>5;
>
> I missed them last time, but I think the quoted line immediately above
> should remain at the same indentation so it doesn't look changed.  
> There
> are some other instances like this further down.

I think there is a problem with where you are viewing the patch. If  
you notice that the - at the start of the line is not the same width  
as the + and it is causing  the alignment problem you are seeing. I  
just looked at that part of the patch in nano and it looks fine.

There is another one in there which is amongst a heap of removals. I  
think that what has happened is that when I removed the _fast  
functions that where basically duplicates of the existing ones with  
minor modifications, diff has been confused. All changes in the code  
are at the correct indentation levels for the line above.

If I have misunderstood, can you please clarify.

>
> Other than that, I don't see anything cosmetically wrong, so if  
> anybody
> submits the patch to closer scrutiny, hopefully few problems will  
> remain.

So should I start a new thread for the patch once there are no more  
problems cosmetically?

Cheers,
Greg





More information about the ffmpeg-devel mailing list