summaryrefslogtreecommitdiffstats
path: root/libvo/vo_png.c
Commit message (Collapse)AuthorAgeFilesLines
* VO: remove vo_jpeg, vo_png, vo_pnm, vo_tgawm42012-08-061-202/+0
| | | | All of these have been replaced by vo_image.
* screenshot, vo_png: fix dependency on sizeof(AVFrame)wm42012-04-291-4/+11
| | | | | | | | | 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 itUoti Urpala2012-02-281-19/+21
| | | | | | | 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 usesUoti Urpala2012-02-011-5/+12
| | | | | | | | | | | | | | | | | | | 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 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.
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | 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"Uoti Urpala2010-01-081-0/+1
| | | | fmt-conversion.h is needed for imgfmt2pixfmt().
* Merge svn changes up to r30187Uoti Urpala2010-01-081-115/+46
|\
| * Change vo_png to use FFmpeg's png encoder instead of libpng.reimar2010-01-031-113/+44
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30186 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30165Uoti Urpala2010-01-081-5/+4
|\|
| * Simplify range-checking functions for subopt parsing.reimar2010-01-011-3/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30165 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix function declarations to avoid casting function pointers.reimar2010-01-011-2/+3
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-29/+29
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-24/+24
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-071-5/+5
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-5/+5
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* | Merge svn changes up to r29117Uoti Urpala2009-04-011-1/+1
|\|
| * Remove obsolete extra elements from opt_t struct initialization.diego2009-03-151-2/+2
| | | | | | | | | | | | | | 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 r28951Uoti Urpala2009-03-141-1/+1
|\|
| * Make data related to suboption parsing const in libvoreimar2009-03-071-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28863 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28537Uoti Urpala2009-02-121-2/+17
|\|
| * Add standard license headers, unify header formatting.diego2009-02-081-2/+17
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28481 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28149Uoti Urpala2008-12-141-2/+9
|\|
| * Add support for writing PNG files with alpha channel in -vo pngreimar2008-12-101-2/+9
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28126 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r27949Uoti Urpala2008-11-171-2/+2
|\| | | | | | | | | | | | | | | | | 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 ofreimar2008-11-131-2/+2
| | | | | | | | | | | | | | 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:diego2008-10-031-0/+1
| | | | | | | | | | | | | | 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 pngben2008-09-201-2/+64
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27650 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove variable arguments from vo control() functionsUoti Urpala2008-04-231-1/+1
|/ | | | | 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.diego2008-03-141-1/+1
| | | | 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.reimar2007-12-021-1/+1
| | | | | | | | 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 constreimar2007-12-021-1/+1
| | | | 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 andreimar2007-10-031-20/+10
| | | | | | | | 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 easierreimar2007-10-031-1/+1
| | | | | | | 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_pngreimar2007-10-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24689 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some functions static.uau2006-07-081-1/+1
| | | | | | | 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 ↵reynaldo2006-04-241-16/+18
| | | | | | 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.diego2006-03-241-12/+23
| | | | 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, butivo2005-08-051-6/+6
| | | | | | | | 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 identifiershenry2005-04-181-1/+1
| | | | 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 removalivo2005-01-101-13/+17
| | | | | | | of -z command line option. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14452 b3059339-0415-0410-9bf9-f77b7e298cf2
* embarassing typodiego2004-07-191-1/+1
| | | | 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 insteadalex2002-11-111-9/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8149 b3059339-0415-0410-9bf9-f77b7e298cf2
* - removed YV12 support (builtin yv12->rgb conversion)arpi2002-10-261-106/+15
| | | | | | | - 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 implementedarpi2002-10-101-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7695 b3059339-0415-0410-9bf9-f77b7e298cf2
* draw_image()arpi2002-10-101-3/+14
| | | | 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 bugarpi2002-09-221-0/+1
| | | | 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 apialex2002-08-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7125 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale and 32->24bpp conversion removedarpi2002-05-201-49/+5
| | | | | | | | 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, whymelanson2002-03-011-0/+12
| | | | | | | not? Besides, it helps me debug PPC stuff. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4905 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing scaled outputmichael2002-02-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4797 b3059339-0415-0410-9bf9-f77b7e298cf2
* I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'nick2002-02-171-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4738 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10000hl to Holm... control MUST BE static...arpi2002-02-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4597 b3059339-0415-0410-9bf9-f77b7e298cf2
* query_ stuff replaced by new control() - patch by David Holmarpi2002-02-091-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4593 b3059339-0415-0410-9bf9-f77b7e298cf2
* new info for tuningnick2002-01-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4434 b3059339-0415-0410-9bf9-f77b7e298cf2
* i420/iyuv supportalex2002-01-261-4/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4354 b3059339-0415-0410-9bf9-f77b7e298cf2
* Extensions for video accelerated architecturenick2002-01-261-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4353 b3059339-0415-0410-9bf9-f77b7e298cf2
* SwScaler support for vo_png by Kim Minh, SwScale w/aspecz for vo_dga by meatmos42002-01-081-5/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4061 b3059339-0415-0410-9bf9-f77b7e298cf2
* osd support, zlib range fix. by Kim Minh Kaplan <kmkaplan@selfoffice.com>arpi2002-01-021-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3951 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move yuv2rgb to postprocessnick2001-11-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2733 b3059339-0415-0410-9bf9-f77b7e298cf2
* changes according to -utf8 option, draw_osd() function addedatlka2001-08-131-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1502 b3059339-0415-0410-9bf9-f77b7e298cf2
* sprintf possible buffer overflow fixesal3x2001-06-091-7/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1079 b3059339-0415-0410-9bf9-f77b7e298cf2
* some warnings killedszabii2001-04-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@613 b3059339-0415-0410-9bf9-f77b7e298cf2
* changed copyroght message to correct stuff :)atmosfear2001-04-191-9/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@531 b3059339-0415-0410-9bf9-f77b7e298cf2
* png video out renderer initial releaseatmosfear2001-04-191-0/+295
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@528 b3059339-0415-0410-9bf9-f77b7e298cf2