aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs/vf_screenshot.c
Commit message (Collapse)AuthorAge
* core: add infrastructure to get screenshots from VOsGravatar wm42011-11-25
| | | | | | | | | | | | | | | | | | | 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 supportGravatar harklu2011-08-17
| | | | | | | | | | 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 startupGravatar Uoti Urpala2011-07-18
| | | | | | | 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 warningsGravatar Clément Bœsch2011-05-06
|
* cleanup: remove NULL checks before free() all over the codeGravatar cboesch2010-11-14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32624 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: "struct vf_instance* vf" -> "struct vf_instance *vf"Gravatar Uoti Urpala2010-05-29
| | | | | | | 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 r31141Gravatar Uoti Urpala2010-05-07
|\
| * Add support for 12-bit color mode on framebuffer devices.Gravatar cehoyos2010-05-06
| | | | | | | | | | | | | | 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 r31050Gravatar Uoti Urpala2010-04-26
|\|
| * Replace memalign(x) (x > 8) by av_malloc() to prevent crashes on systemsGravatar zuxy2010-04-20
| | | | | | | | | | | | | | lacking memalign(), e.g. Win32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31045 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30683Gravatar Uoti Urpala2010-03-10
|\ \
* \ \ Merge svn changes up to r30463Gravatar Uoti Urpala2010-03-09
|\ \ \ | | | | | | | | | | | | | | | | | | | | 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.
| | | * cosmetics: Rename struct vf_instance_s --> vf_instance.Gravatar diego2010-02-21
| | |/ | | | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30684 b3059339-0415-0410-9bf9-f77b7e298cf2
| | * Rename open() vf initialization function to vf_open().Gravatar diego2010-02-21
| |/ | | | | | | | | | | | | This avoids clashes with fcntl.h under certain circumstances. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30680 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add missing license headers to all files in the libmpcodecs directory.Gravatar diego2010-01-30
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30195Gravatar Uoti Urpala2010-01-08
|\|
* | Merge svn changes up to r30185Gravatar Uoti Urpala2010-01-08
|\ \
| | * Replace deprecated sws_scale_ordered usages by sws_scale (which does the same).Gravatar reimar2010-01-03
| |/ | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30192 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add missing avcodec_close to vf_screenshot.Gravatar reimar2010-01-03
| | | | | | | | 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.Gravatar diego2009-09-30
| | | | | | | | | | | | | | 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 r29117Gravatar Uoti Urpala2009-04-01
|\|
| * Consistently use MP_MAX_PLANES as size for plane pointer/stride arrays in ↵Gravatar reimar2009-03-29
| | | | | | | | | | | | | | | | | | | | 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 r28641Gravatar Uoti Urpala2009-02-18
|\| | | | | | | | | | | | | | | 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:Gravatar diego2009-02-17
| | | | | | | | | | | | | | 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 r28038Gravatar Uoti Urpala2008-11-25
|\|
| * cosmetics: Move up uninit() to avoid a forward declaration.Gravatar diego2008-11-23
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27983 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: consistent function declarations.Gravatar diego2008-11-23
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27982 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Remove tabs and trailing whitespace.Gravatar diego2008-11-23
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27981 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make various functions staticGravatar Uoti Urpala2008-08-12
| |
* | Remove _s/_st suffix from some struct namesGravatar Uoti Urpala2008-04-25
|/ | | | | 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.Gravatar diego2008-02-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless castsGravatar reimar2008-01-21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25828 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a missing free of the avctxGravatar reimar2007-12-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25528 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all vf_info_t structs constGravatar reimar2007-12-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25249 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vf_screenshot use the libavcodec PNG encoderGravatar reimar2007-10-09
| | | | 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.Gravatar reimar2007-05-27
| | | | 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 ↵Gravatar gpoirier2006-11-15
| | | | | | | | | | | 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.Gravatar eugeni2006-09-15
| | | | | | | 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 3Gravatar reynaldo2006-07-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18884 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move postproc ---> libswscaleGravatar lucabe2006-06-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move #ifdefs around complete files into the build system.Gravatar diego2006-06-21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18774 b3059339-0415-0410-9bf9-f77b7e298cf2
* Software Scaler headers usage cleanupGravatar lucabe2006-06-18
| | | | 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.Gravatar rathann2006-05-13
| | | | 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 ↵Gravatar michael2006-03-21
| | | | | | 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.Gravatar diego2005-11-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, uninit() was not used, fixes bug #401Gravatar reimar2005-10-30
| | | | | | | 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 secondGravatar reimar2005-09-12
| | | | | | | | | 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 availableGravatar henry2005-09-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16458 b3059339-0415-0410-9bf9-f77b7e298cf2
* use slices if DR isn't availableGravatar henry2005-09-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16457 b3059339-0415-0410-9bf9-f77b7e298cf2
* forgotten MP_IMGFLAG_READABLEGravatar henry2005-09-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16453 b3059339-0415-0410-9bf9-f77b7e298cf2