aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_png.c
Commit message (Collapse)AuthorAge
* VO: remove vo_jpeg, vo_png, vo_pnm, vo_tgaGravatar wm42012-08-06
| | | | All of these have been replaced by vo_image.
* screenshot, vo_png: fix dependency on sizeof(AVFrame)Gravatar wm42012-04-29
| | | | | | | | | In order to stay binary compatible with libavcodec, applications should not dependent on sizeof(AVFrame). This means allocating AVFrame on the stack is not allowed, and the function avcodec_alloc_frame() must be used to allocate an AVFrame instead. Partially based on a patch by uau.
* vo_png: set AVCodecContext parameters before opening itGravatar Uoti Urpala2012-02-28
| | | | | | | Instead of opening avctx in preinit() and setting paramters later, (re)open it in config() where parameters can be set first. This fixes a failure to open the codec with new libavcodec versions that check pix_fmt during avcodec_open2().
* Update Libav API usesGravatar Uoti Urpala2012-02-01
| | | | | | | | | | | | | | | | | | | Change various code to use the latest Libav API. The libavcodec error_recognition setting has been removed and replaced with different semantics. I removed the "--lavdopts=er=<value>" option accordingly, as I don't think it's widely enough used to be worth attempting to emulate the old option semantics using the new API. A new option with the new semantics can be added later if needed. Libav dropped APIs that were necessary with all Libav versions until quite recently (like setting avctx->age), and it would thus not be possible to keep compatibility with previous Libav versions without adding workarounds. The new APIs also had some bugs/limitations in the recent Libav release 0.8, and it would not work fully (at least some avcodec options would not be set correctly). Because of those issues, this commit makes no attempt to maintain compatibility with anything but the latest Libav git head. Hopefully the required fixes and improvements will be included in a following Libav point release.
* 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.
* Delete things related to old translation systemGravatar Uoti Urpala2010-03-10
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* vo_png: add missing "#include "fmt-conversion.h"Gravatar Uoti Urpala2010-01-08
| | | | fmt-conversion.h is needed for imgfmt2pixfmt().
* Merge svn changes up to r30187Gravatar Uoti Urpala2010-01-08
|\
* \ Merge svn changes up to r30165Gravatar Uoti Urpala2010-01-08
|\ \
| | * Change vo_png to use FFmpeg's png encoder instead of libpng.Gravatar reimar2010-01-03
| |/ | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30186 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Simplify range-checking functions for subopt parsing.Gravatar reimar2010-01-01
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30165 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix function declarations to avoid casting function pointers.Gravatar reimar2010-01-01
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesGravatar Uoti Urpala2009-07-07
| |
* | Translation system changes part 2: replace macros by stringsGravatar Amar Takhar2009-07-07
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsGravatar Amar Takhar2009-07-07
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
| * whitespace cosmetics: Remove all trailing whitespace.Gravatar diego2009-05-13
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29117Gravatar Uoti Urpala2009-04-01
|\|
| * Remove obsolete extra elements from opt_t struct initialization.Gravatar diego2009-03-15
| | | | | | | | | | | | | | Fixes a bunch of 'excess elements in struct initializer' warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28957 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28951Gravatar Uoti Urpala2009-03-14
|\|
| * Make data related to suboption parsing const in libvoGravatar reimar2009-03-07
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28863 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28537Gravatar Uoti Urpala2009-02-12
|\|
| * Add standard license headers, unify header formatting.Gravatar diego2009-02-08
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28149Gravatar Uoti Urpala2008-12-14
|\|
| * Add support for writing PNG files with alpha channel in -vo pngGravatar reimar2008-12-10
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28126 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27949Gravatar Uoti Urpala2008-11-17
|\| | | | | | | | | | | | | | | | | Conflicts: common.mak libvo/vo_xv.c libvo/x11_common.c libvo/x11_common.h stream/cache2.c
| * Use the proper IMGFMT_RGB24 and IMGFMT_BGR24 defines instead ofGravatar reimar2008-11-13
| | | | | | | | | | | | | | IMGFMT_RGB|24 and IMGFMT_BGR|24. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27907 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add missing #include for mplayer.h, fixes the warning:Gravatar diego2008-10-03
| | | | | | | | | | | | | | libvo/vo_png.c:67: warning: implicit declaration of function 'exit_player' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27687 b3059339-0415-0410-9bf9-f77b7e298cf2
| * add outdir sub-option to vo pngGravatar ben2008-09-20
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27650 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove variable arguments from vo control() functionsGravatar Uoti Urpala2008-04-23
|/ | | | | No voctrl uses them any more, and using them would not be a good idea because it makes forwarding arguments to other functions harder.
* #include config.h before all other headers.Gravatar diego2008-03-14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark the vo_functions_t definitions as const where possible.Gravatar reimar2007-12-02
| | | | | | | | This is not possible for xover and anything supporting vidix due to horrible hacks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25248 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vo info structs constGravatar reimar2007-12-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25244 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of mp_msg_test in vo_png, only reason to use it is performance andGravatar reimar2007-10-03
| | | | | | | | that is not critical here and the way it was used probably would not improve performance anyway git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24691 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use IMGFMT_IS_BGR instead of mpi->flags&MP_IMGFLAG_SWAPPED, this is easierGravatar reimar2007-10-03
| | | | | | | to understand and in this case more accurate git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24690 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make a local-only variable static in vo_pngGravatar reimar2007-10-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24689 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some functions static.Gravatar uau2006-07-08
| | | | | | | Patch by Stefan Huehner, stefan at huehner org. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18955 b3059339-0415-0410-9bf9-f77b7e298cf2
* Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with ↵Gravatar reynaldo2006-04-24
| | | | | | lots of corrections git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert all if(verbose>X) to mp_msg_test calls.Gravatar diego2006-03-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix the return types of all (six) libvo API functions. Used to be uint32_t, butGravatar ivo2005-08-05
| | | | | | | | return values can be negative (VO_ERROR, VO_NOTAVAIL and VO_NOTIMPL), so it's changed to int now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16172 b3059339-0415-0410-9bf9-f77b7e298cf2
* replace VO and VF numeric flags with #defined identifiersGravatar henry2005-04-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15213 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implementation of vo_png suboption parser with subopt-helper and removalGravatar ivo2005-01-10
| | | | | | | of -z command line option. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14452 b3059339-0415-0410-9bf9-f77b7e298cf2
* embarassing typoGravatar diego2004-07-19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12858 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed get_info, using the same sheme as in libmpcodecs insteadGravatar alex2002-11-11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8149 b3059339-0415-0410-9bf9-f77b7e298cf2
* - removed YV12 support (builtin yv12->rgb conversion)Gravatar arpi2002-10-26
| | | | | | | - removed built-in OSD rendering git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7927 b3059339-0415-0410-9bf9-f77b7e298cf2
* also set VFCAP_ACCEPT_STRIDE when draw_image() is implementedGravatar arpi2002-10-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7695 b3059339-0415-0410-9bf9-f77b7e298cf2
* draw_image()Gravatar arpi2002-10-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7694 b3059339-0415-0410-9bf9-f77b7e298cf2
* tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bugGravatar arpi2002-09-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
* finally removed query_vaa, bes_da and vo_tune_info - the obsoleted libvo apiGravatar alex2002-08-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7125 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale and 32->24bpp conversion removedGravatar arpi2002-05-20
| | | | | | | | do osd only for yuv modes (for rgb image_data==NULL, so draw_osd sigfaults) use vfcap.h constants for query_format git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6133 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added BGR32 output support to PNG vo target because, hey, whyGravatar melanson2002-03-01
| | | | | | | not? Besides, it helps me debug PPC stuff. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4905 b3059339-0415-0410-9bf9-f77b7e298cf2