[vlc-devel] [PATCH] Direct2D video output module

David Kaplan david at 2of1.org
Fri Jul 23 07:57:01 CEST 2010


On Thu, Jul 22, 2010 at 11:26 PM, Laurent Aimar <fenrir at elivagar.org> wrote:

>  Because, you need to do it when calling ID2D1HwndRenderTarget_DrawBitmap
> (not sure it's the right place) using rect_src_clipped.


I've done this when I copy the picture into the bitmap.


> Also, it means you can simply declare a picture of
> width equals to picture->p[0].i_pitch/4 for the above issue but copy only
> the real size.
>

Well I can't create a bitmap with width = picture->p[0].i_pitch/4 really
because at the point where I create the bitmap, there is no picture.
Reallocating bitmap resources is extremely expensive (that's why it's only
done once and memory is copied into it).
The only way I can see is the have a bitmap with width = fmt->width because
that doesn't change and is available at the time we need it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100723/92405e86/attachment.html>


More information about the vlc-devel mailing list