summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_screenshot.c
Commit message (Collapse)AuthorAgeFilesLines
* screenshot: allow forcing taking screenshots with the video filterwm42012-02-291-1/+11
| | | | | | | | | | If the screenshot_force video filter is inserted, taking screenshots will always use the video filter, and skip the VO specific screenshot code. This can be useful if the VO code causes problems, or if it's intended to take screenshots from a specific location in the filter chain. The 'screenshot' filter is intended as fallback, it's not used if possible.
* core: add infrastructure to get screenshots from VOswm42011-11-251-133/+48
| | | | | | | | | | | | | | | | | | | Add a VO command (VOCTRL_SCREENSHOT) which requests a screenshot directly from the VO. If VO support is available, screenshots will be taken instantly (no more 1 or 2 frames delay). Taking screenshots when hardware decoding is in use will also work (vdpau). Additionally, the screenshots will now use the same colorspace as the video display. Change the central MPContext to be allocated with talloc so that it can be used as a talloc parent context. This commit does not yet implement the functionality for any VO (added in subsequent commits). The old screenshot video filter is not needed anymore if VO support is present, and in that case will not be used even if it is present in the filter chain. If VO support is not available then the filter is used like before. Note that the filter still has some of the old problems, such as delaying the screenshot by at least 1 frame.
* vf_screenshot: better check for pixel format swscale supportharklu2011-08-171-40/+14
| | | | | | | | | | vf_screenshot checked for a list of pixel formats that were known to work with swscale. However, the list was incomplete. If a pixel format was used that was not on the vf_screenshot list, but was supported both by swscale and the VO driver, mplayer2 would insert a useless scale filter to convert to a format supported by vf_screenshot. Fix this by making vf_screenshot check directly whether the pixel format is supported by swscale with sws_isSupportedInput().
* cleanup: do libav* initialization on startupUoti Urpala2011-07-181-1/+0
| | | | | | | Do the global initialization of libavcodec and libavformat (avcodec_register_all(), av_register_all()) immediately on program startup and remove the initialization calls from various individual modules that use libavcodec/libavformat functionality.
* cleanup: shut up more warningsClément Bœsch2011-05-061-2/+2
|
* cleanup: remove NULL checks before free() all over the codecboesch2010-11-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32624 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"Uoti Urpala2010-05-291-6/+6
| | | | | | | Change 'struct vf_instance' pointer arguments to more standard style as in the subject. Also some other minor formatting fixes. Patch by Diego Biurrun.
* Merge svn changes up to r31141Uoti Urpala2010-05-071-0/+1
|\
| * Add support for 12-bit color mode on framebuffer devices.cehoyos2010-05-061-0/+1
| | | | | | | | | | | | | | Patch Janusz Krzysztofik, jkrzyszt A tis icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31139 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r31050Uoti Urpala2010-04-261-3/+3
|\|
| * Replace memalign(x) (x > 8) by av_malloc() to prevent crashes on systemszuxy2010-04-201-3/+3
| | | | | | | | | | | | | | lacking memalign(), e.g. Win32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31045 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Rename struct vf_instance_s --> vf_instance.diego2010-02-211-6/+6
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30684 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30683Uoti Urpala2010-03-101-3/+2
|\|
| * Rename open() vf initialization function to vf_open().diego2010-02-211-3/+2
| | | | | | | | | | | | | | This avoids clashes with fcntl.h under certain circumstances. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30680 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30463Uoti Urpala2010-03-091-0/+18
|\| | | | | | | | | | | Note that r30455 is wrong, that commit does not in fact change the default behavior as claimed in the commit message. It only breaks "-af-adv force=0", which was already pretty much useless though.
| * Add missing license headers to all files in the libmpcodecs directory.diego2010-01-301-0/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30195Uoti Urpala2010-01-081-2/+2
|\|
| * Replace deprecated sws_scale_ordered usages by sws_scale (which does the same).reimar2010-01-031-2/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30192 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30185Uoti Urpala2010-01-081-0/+1
|\|
| * Add missing avcodec_close to vf_screenshot.reimar2010-01-031-0/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30185 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Mark some functions that do not need external visibility as static.diego2009-09-301-1/+1
| | | | | | | | | | | | | | patch by Alexander Neumann, alexander bumpern de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29744 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29117Uoti Urpala2009-04-011-8/+4
|\|
| * Consistently use MP_MAX_PLANES as size for plane pointer/stride arrays in ↵reimar2009-03-291-8/+4
| | | | | | | | | | | | | | | | | | | | libmpcodecs. This might avoid some issues since sws_scale in some cases assumes these have at least 4 valid entries. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29103 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28641Uoti Urpala2009-02-181-1/+1
|\| | | | | | | | | | | | | | | Convert vo_x11_border (used in vo_gl/gl2 though the vo_gl_border macro) to use a wrapper macro in old-style VOs which do not provide a VO object argument. Before this function had an explicit global_vo argument in vo_gl/gl2. New vo_vdpau uses it too so use the same mechanism as most other functions.
| * Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:diego2009-02-171-1/+1
| | | | | | | | | | | | | | mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28038Uoti Urpala2008-11-251-83/+85
|\|
| * cosmetics: Move up uninit() to avoid a forward declaration.diego2008-11-231-10/+9
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27983 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: consistent function declarations.diego2008-11-231-4/+7
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27982 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Remove tabs and trailing whitespace.diego2008-11-231-69/+69
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27981 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make various functions staticUoti Urpala2008-08-121-1/+1
| |
* | Remove _s/_st suffix from some struct namesUoti Urpala2008-04-251-6/+6
|/ | | | | Since the names are always used after the keyword "struct" having a suffix as in "struct demuxer_st" is almost completely pointless.
* FFmpeg now uses different (unified) #include paths.diego2008-02-251-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless castsreimar2008-01-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25828 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a missing free of the avctxreimar2007-12-251-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25528 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all vf_info_t structs constreimar2007-12-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25249 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vf_screenshot use the libavcodec PNG encoderreimar2007-10-091-42/+35
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24759 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless fastmemcpy.h include for filters that do not even do any memcpy.reimar2007-05-271-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23391 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix segfault with videos with unusual resolution, patch by Stanislav ↵gpoirier2006-11-151-1/+1
| | | | | | | | | | | Maslovski % stanislav P maslovski A gmail P com % Original thread: date: Nov 15, 2006 10:38 PM subject: [MPlayer-dev-eng] [PATCH] vf_screenshot.c: segfault (buffer overflow) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20946 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add repeated screenshot mode to vf_screenshot.eugeni2006-09-151-2/+19
| | | | | | | It is triggered by "screenshot 1". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19839 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 3reynaldo2006-07-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18884 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move postproc ---> libswscalelucabe2006-06-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move #ifdefs around complete files into the build system.diego2006-06-211-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18774 b3059339-0415-0410-9bf9-f77b7e298cf2
* Software Scaler headers usage cleanuplucabe2006-06-181-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18749 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make return type consistent with usage. Patch by Pierre Lombard.rathann2006-05-131-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18485 b3059339-0415-0410-9bf9-f77b7e298cf2
* passing pts through the filter layer (lets see if pts or cola comes out at ↵michael2006-03-211-2/+2
| | | | | | the end) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17907 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, uninit() was not used, fixes bug #401reimar2005-10-301-0/+2
| | | | | | | Modified patch from T. Dekker (t dekker <at> student utwente nl) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16875 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix multiple issues: No picture at all, broken pictures, only every secondreimar2005-09-121-58/+34
| | | | | | | | | picture displayed, compile warnings because of undefined functions and a compile error on MinGW because of redefinition of open(). Or in short: I didn't find a case where the old version worked?!? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16465 b3059339-0415-0410-9bf9-f77b7e298cf2
* do nothing if no free filenames are availablehenry2005-09-111-4/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16458 b3059339-0415-0410-9bf9-f77b7e298cf2
* use slices if DR isn't availablehenry2005-09-111-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16457 b3059339-0415-0410-9bf9-f77b7e298cf2
* forgotten MP_IMGFLAG_READABLEhenry2005-09-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16453 b3059339-0415-0410-9bf9-f77b7e298cf2
* DR and slice supporthenry2005-09-111-21/+99
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16451 b3059339-0415-0410-9bf9-f77b7e298cf2
* screenshot filterhenry2005-09-111-0/+236
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16447 b3059339-0415-0410-9bf9-f77b7e298cf2