[FFmpeg-devel] [PATCH v3] Add Win32 GDI-based screen grabbing

Michael Niedermayer michaelni at gmx.at
Thu Apr 3 01:38:39 CEST 2014


On Wed, Apr 02, 2014 at 02:53:10PM -0400, Calvin Walton wrote:
> Based on original code by Christophe Gisquet in 2010, updated to work
> with current ffmpeg APIs.
> 
> Supports grabbing a single window or an area of the screen, including
> support for multiple monitors (Windows does funky stuff with negative
> coordinates here).
> 
> I've moved most of the configuration to AVOptions; the input file name
> is now only the string "desktop", or "title=<windowname>" to select a
> single window. The AVOptions are the same as x11grab where possible.
> 
> Code has been added to support a "show_region" mode, like x11grab, which
> will draw a rectangle on the screen around the area being captured.
> 
> Instead of duplicating code for paletted image handling, I make use of
> the GDI API's ability to output DIB (BMP) images, which can be run
> through ffmpeg's existing BMP decoder.
> 
> Signed-off-by: Calvin Walton <calvin.walton at kepstin.ca>
> ---
> 
> Notes:
>     Revised patch fixes the spelling of Christophe's name, and corrects
>     the build failure seen on 64-bit. It also removes an old debug
>     statement that was causing some printf format warnings on 64bit.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140403/353a4b0a/attachment.asc>


More information about the ffmpeg-devel mailing list