Jason Tackaberry wrote:
> On Wed, 2005-08-03 at 18:53 +0200, Dirk Meyer wrote:
>> I never used matroska before (I didn't even wrote the parser). But I
>> hope to fix it this weekend. 
>
> Thanks.
>
>> The best way would be to have a 800x600 canvas for mplayer (or
>> whatever the resolution is) and scale it between evas and copying to
>> mplayer. 
>
> I don't think I can do this right in evas.  It should be possible with
> Imlib2 though.  Create an Imlib2 image the size of the canvas, and tell
> evas to use the image buffer as its own.  Then when you want to update
> the OSD, scale the image, and memcpy the scaled image and copy it to the
> OSD buffer.  (Of course in practice you'd just scale and copy the region
> that needs updating.)  Obviously this logic would be implemented inside
> BufferCanvas.

Great.

> It won't be a speed demon but it should work.  Unless imlib2's scaling
> is much slower than MPlayer's YV12 software scaling or you require a
> high OSD framerate, it should be faster than software scaling the video.

No problem. If the user has a slow cpu he has to live with a slow
osd. But it still should look right.


Dischi

-- 
It is impossible to make anything foolproof because fools are so ingenious.

Attachment: pgph0mag39sdQ.pgp
Description: PGP signature

Reply via email to