From 08909fb56b4f50ed82534a9e56c56ad02d72a45e Mon Sep 17 00:00:00 2001 From: Calvin Walton Date: Wed, 2 Apr 2014 14:53:10 -0400 Subject: Add Win32 GDI-based screen grabbing 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=" 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 Signed-off-by: Michael Niedermayer --- libavdevice/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'libavdevice/Makefile') diff --git a/libavdevice/Makefile b/libavdevice/Makefile index 7e5f9bf38b..68b65cc763 100644 --- a/libavdevice/Makefile +++ b/libavdevice/Makefile @@ -26,6 +26,7 @@ OBJS-$(CONFIG_FBDEV_INDEV) += fbdev_dec.o \ fbdev_common.o OBJS-$(CONFIG_FBDEV_OUTDEV) += fbdev_enc.o \ fbdev_common.o +OBJS-$(CONFIG_GDIGRAB_INDEV) += gdigrab.o OBJS-$(CONFIG_IEC61883_INDEV) += iec61883.o OBJS-$(CONFIG_JACK_INDEV) += jack_audio.o timefilter.o OBJS-$(CONFIG_LAVFI_INDEV) += lavfi.o -- cgit v1.2.3