[MPlayer-dev-eng] [PATCH] vo_gl small change

Dmitry Baryshkov lumag at qnc.ru
Wed Dec 25 13:50:45 CET 2002


Hello all!

>> actually if we want it to be optional, it should be a numeric parameter,
>> as slice height. the 'FAST_BLIT' version uses slice height == 1, while
>> the blit-whole-frame mode uses slice height == image_height.
>> maybe slice heiht 4 or 8 is even faster with some cards (needs 
>> experiment,
>> actually the slice height should be the optimal compromise between 
>> register
>> programming overload and the cpu time saved by DMA textured transfer)
>> (the idea behind this FAST_BLIT hack is that while DRI/MESA is 
>> converting
>> the pixels the card can do the DMA transfer of the previous line)
>>
>> there should be a loop like:
>>
>>  for(y0=0;y0<height;y0+=slice_height){
>>     for(y=0;y<slice_height;y++){
>>        // convert & blit lines (y0+y) .. (y0+y+slice_height-1)
>>     }
>>  }
>
I didn't understood, what did you mean by two loops, but I suppose, that 
I wrote, patch, what you suggested.

--
Dmitry.

>>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vo_gl.c.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021225/66954a06/attachment.asc>


More information about the MPlayer-dev-eng mailing list