summaryrefslogtreecommitdiff
path: root/libavdevice/x11grab.c
Commit message (Collapse)AuthorAge
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Add missing libavutil/time.h includes.Anton Khirnov2012-07-28
|
* x11grab: cosmetics: consistent naming for x11grab-related thingsDiego Biurrun2012-07-28
|
* x11grab: fix a memory leak exposed by valgrindAntonio Ospite2012-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | When using "-f x11grab -i :0.0" valgrind reports a definitely lost memory block with this message: ==31544== 5 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==31544== at 0x4026E68: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==31544== by 0x4026F17: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==31544== by 0x60D399A: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1) ==31544== by 0x60D3A70: av_strdup (in /usr/lib/x86_64-linux-gnu/libavutil.so.51.22.1) ==31544== by 0x4A2BE58: ??? (in /usr/lib/x86_64-linux-gnu/libavdevice.so.53.2.0) ==31544== by 0x506D29E: avformat_open_input (in /usr/lib/x86_64-linux-gnu/libavformat.so.53.21.0) ==31544== by 0x400A80: main (in /home/ao2/WIP/am7xxx-play/tests/a.out) The 5 bytes lost are the ones from param = av_strdup(":0.0"), so let's free param in the exit path. Also check the av_strdup() return value. Note: calling av_free(param) even when av_strdup() fails and param is NULL is OK and keeps the code simpler without adding another label to skip av_free(). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* doxygen: Remove documentation for non-existing parameters; misc small fixes.Diego Biurrun2012-02-28
|
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-27
|
* misc Doxygen markup improvementsDiego Biurrun2011-12-05
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-19
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.Diego Biurrun2011-09-24
|
* lavf,lavd: remove all usage of AVFormatParameters from demuxers.Anton Khirnov2011-08-15
| | | | | | AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
* x11grab: add show_region AVOption.Yu-Jie Lin2011-07-31
| | | | | | | Draw the current grabbing region for indication. Signed-off-by: Yu-Jie Lin <livibetter@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x11grab: add follow_mouse AVOption.Yu-Jie Lin2011-07-31
| | | | | | | | | -follow_mouse centered|PIXELS move grabbing region to where mouse pointer at the center; or only move when pointer reaches within PIXELS to the edge. Signed-off-by: Yu-Jie Lin <livibetter@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x11grab: replace undocumented nomouse hackery with a private option.Anton Khirnov2011-07-08
|
* libavdevice: Remove disabled code.Diego Biurrun2011-07-07
|
* x11grab: remove a memory allocation and the associated memcpy.Sven C. Dack2011-06-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf,lavc: free avoptions in a generic way.Anton Khirnov2011-06-05
| | | | | | It's simpler and less error-prone. Fixes some memleaks along the way.
* x11grab: add framerate private option.Anton Khirnov2011-06-04
|
* x11grab: add video_size private option.Anton Khirnov2011-05-27
|
* x11grab: factorize returning error codes.Anton Khirnov2011-05-27
|
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Make x11grab cursor drawing suck lessJason Garrett-Glaser2010-11-07
| | | | | | | | | | | | | This new version: 1. Works on 24-bit and 32-bit input, not just 32-bit. 2. Doesn't try to run on 16-bit or 8-bit, instead of outright crashing. 3. Does proper alpha-blending, so cursor shadows look correct. 4. Doesn't swap R and B. Mostly fixes issue 1997. Fixes issue 2056. Originally committed as revision 25690 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove non-existing stray arguments from Doxygen function documentation.Diego Biurrun2010-07-02
| | | | Originally committed as revision 23976 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix grammar errors in documentationMåns Rullgård2010-06-30
| | | | Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove stray semicolon.Carl Eugen Hoyos2010-06-21
| | | | Originally committed as revision 23691 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* x11grab: AVFormatParameters are always passed from av_open_input_stream(),Ramiro Polla2010-03-23
| | | | | | there is no need to check for it. Originally committed as revision 22651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define _XOPEN_SOURCE as 600 before including a XSI extension header.Carl Eugen Hoyos2009-12-14
| | | | Originally committed as revision 20871 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use enum PixelFormat as type for input_pixfmt to avoid one icc warning.Carl Eugen Hoyos2009-12-14
| | | | Originally committed as revision 20859 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add nomouse option to not record the mouse cursor.Michael Niedermayer2009-11-27
| | | | | | Implements issue877 Originally committed as revision 20633 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused stuff.Michael Niedermayer2009-11-27
| | | | Originally committed as revision 20632 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Real cursor support in x11grab.Roxis2009-11-27
| | | | | | | Patch by Roxis /// roxis list dot ru Slight changes by me to update the patch to current svn. Originally committed as revision 20631 to svn://svn.ffmpeg.org/ffmpeg/trunk
* x11grab: remove unnecessary #includes and senseless #defineMåns Rullgård2009-07-21
| | | | Originally committed as revision 19479 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not invade _t POSIX namespace.Diego Biurrun2008-12-13
| | | | Originally committed as revision 16109 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-03
| | | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste.it along with some spelling/consistency fixes for the long names by me Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded sys/mman.h #include.Diego Biurrun2008-03-24
| | | | Originally committed as revision 12567 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.Diego Biurrun2008-03-20
| | | | Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
* typo fixesDiego Biurrun2008-03-15
| | | | Originally committed as revision 12449 to svn://svn.ffmpeg.org/ffmpeg/trunk
* More verbose error log message.Benoit Fouet2008-01-18
| | | | Originally committed as revision 11556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Introduce libavdeviceLuca Abeni2007-11-22
Originally committed as revision 11077 to svn://svn.ffmpeg.org/ffmpeg/trunk