summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_spp.c
Commit message (Collapse)AuthorAgeFilesLines
* vf_spp, vf_fspp: replace use of deprecated libav functionmplayer-svn2012-08-031-1/+1
| | | | | | | Replace use of deprecated dsputil_init() by ff_dsputil_init(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34816 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: diego
* cleanup: do libav* initialization on startupUoti Urpala2011-07-181-3/+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: remove NULL checks before free() all over the codecboesch2010-11-141-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32624 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add central init_avcodec() to avoid duplicated libavcodec init codediego2010-11-021-1/+2
| | | | | | | | | | | | | | | | Patch by Vlad Seryakov, vseryakov gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32043 b3059339-0415-0410-9bf9-f77b7e298cf2 Refactor more instances of avcodec_initialized handling into init_avcodec(). This is a leftover from the previous commit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32044 b3059339-0415-0410-9bf9-f77b7e298cf2 Add missing #include for vd_ffmpeg.h; fixes the warning: libmpcodecs/vf_zrmjpeg.c:472: warning: implicit declaration of function 'init_avcodec' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32176 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 r30683Uoti Urpala2010-03-101-2/+2
|\
| * Rename open() vf initialization function to vf_open().diego2010-02-211-2/+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-1/+1
|\| | | | | | | | | | | 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.
| * Support more qscale types in most post-processing filters.reimar2010-01-291-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30454 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30419Uoti Urpala2010-01-251-2/+8
|\|
| * Make sure that a qstride of 0 (intentional or not) does not completely breakreimar2010-01-231-2/+8
| | | | | | | | | | | | | | the code (crash if malloc(0) != NULL, otherwise wrong qscales used for B-frames). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30405 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-40/+40
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove unnecessary libavutil/internal.h includesUoti Urpala2009-07-261-5/+0
| | | | | | | | | | | | | | These includes were added earlier after the definition of the DECLARE_ALIGNED and DECLARE_ASM_CONST macros were moved to this header in FFmpeg. However now those macros are again in the public mem.h header, and there is no need to include internal.h.
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-40/+40
| |
* | Merge svn changes up to r29134Uoti Urpala2009-04-021-4/+0
|\|
| * Remove unnecessary malloc.h #includes and related #ifdeffery.diego2009-04-021-4/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 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 r28366Uoti Urpala2009-01-261-0/+5
|\| | | | | | | | | | | | | | | | | Contains more changes needed to sync build system with latest FFmpeg. Conflicts: Makefile configure mplayer.c
| * Fix compilation after DECLARE_ASM_CONST/DECLARE_ALIGNED moving within FFmpeg.diego2009-01-251-0/+5
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28364 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28341Uoti Urpala2009-01-191-5/+5
|\| | | | | | | | | | | Conflicts: configure libmpcodecs/native/rtjpegn.c
| * Lots and lots of #ifdef ARCH_... -> #if ARCH_...reimar2009-01-161-5/+5
| | | | | | | | | | | | | | | | and #ifdef HAVE_MMX etc -> #if HAVE_MMX. There might be still more that need to be fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28325 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to 27824Uoti Urpala2008-10-251-5/+5
|\| | | | | | | | | | | | | | | | | | | Conflicts: cfg-common-opts.h libmpcodecs/dec_video.c libmpcodecs/vd.c libvo/x11_common.h mplayer.c stream/cache2.c
| * Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.diego2008-10-161-5/+5
| | | | | | | | | | | | | | Neither variant is valid C99 syntax, but __asm__ is the most portable variant. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r26783Uoti Urpala2008-05-151-16/+18
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile common.mak configure libmpcodecs/vd_ffmpeg.c libmpdemux/demux_mkv.c libvo/vo_xv.c mplayer.c
| * Use standard license headers.diego2008-05-131-16/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26759 b3059339-0415-0410-9bf9-f77b7e298cf2
* | 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.
* 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
* Add missing header files, fixes the warnings:diego2007-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | In file included from vf_mcdeint.c:59: ../libavcodec/dsputil.h: In function 'copy_block2': ../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16' ../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16' ../libavcodec/dsputil.h: In function 'copy_block4': ../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32' ../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32' In file included from vf_spp.c:40: ../libavcodec/dsputil.h: In function 'copy_block2': ../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16' ../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16' ../libavcodec/dsputil.h: In function 'copy_block4': ../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32' ../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25005 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused fmt_list array, fixes the warnings:diego2007-10-301-15/+0
| | | | | | | | | vf_ow.c:296: warning: 'fmt_list' defined but not used vf_spp.c:544: warning: 'fmt_list' defined but not used vf_uspp.c:334: warning: 'fmt_list' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24893 b3059339-0415-0410-9bf9-f77b7e298cf2
* MPEG-2 blocks at qp 1 get overfiltered by spp, apparently because "qp>>1" turnsdiego2007-09-181-1/+1
| | | | | | | | it into 0, which causes an integer overflow later. Clip qp at 1 to avoid this. patch by Alexander Strange, astrange ithinksw com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24572 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace implicit use of fast_memcpy via macro by explicit use to allowreimar2007-06-051-4/+4
| | | | | | | for future optimization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23475 b3059339-0415-0410-9bf9-f77b7e298cf2
* qp height should be in macroblocks, not pixelshenry2006-11-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20601 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unreachable code: this filter can't compile with external libavcodec ↵nicodvb2006-04-171-5/+0
| | | | | | (the Makefile rules prevent it) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18132 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
* Move conditional compilation out of the code and into the build system.diego2006-01-311-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update licensing information: The FSF changed postal address.diego2006-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17368 b3059339-0415-0410-9bf9-f77b7e298cf2
* prevent flicker, to get old behaviour use spp=x:y:4 / x:y:5michael2005-12-061-6/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17111 b3059339-0415-0410-9bf9-f77b7e298cf2
* attribute alignmichael2005-12-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17083 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* use stored dimensions instead of visible one when (vf_)get_image is callediive2005-07-201-2/+2
| | | | | | | let's see where does the cola goes :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16019 b3059339-0415-0410-9bf9-f77b7e298cf2
* ensure that dr buffers are readablemichael2005-07-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15966 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved NV12/NV21 support.syrjala2005-02-161-2/+0
| | | | | | | | | | | - Fixed PlanarToNV12Wrapper() and made it handle NV21. - Added yuv2nv12XinC() to handle software scaling. - Added NV12/NV21 handling to various places. - Removed NV12 from vf_hue and vf_spp as they don't look like they can actually handle it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14716 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing strange csp matching code (was copy&pasted from vf_pp where it ↵michael2004-11-231-12/+2
| | | | | | | | | originated from arpi 2.5 years ago) -> fixes spp+scale+x11 crash dont disable the filter by default (100l for iive) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14023 b3059339-0415-0410-9bf9-f77b7e298cf2
* crash with Y8 colourspace fixedreimar2004-10-211-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13730 b3059339-0415-0410-9bf9-f77b7e298cf2
* adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64aurel2004-10-211-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13721 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l typomichael2004-09-191-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13394 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2004-08-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13150 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory corruption, noticable at reallocate imageiive2004-06-241-8/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12632 b3059339-0415-0410-9bf9-f77b7e298cf2
* quant_parameter is 2*mpeg1_quant, no problems noticed with too high valuesiive2004-04-091-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12164 b3059339-0415-0410-9bf9-f77b7e298cf2
* check for invalid user inputiive2004-04-081-2/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12158 b3059339-0415-0410-9bf9-f77b7e298cf2
* spp softthresholding in mmxmichael2004-02-241-1/+77
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11995 b3059339-0415-0410-9bf9-f77b7e298cf2
* spp soft thresholding patch by (James Crowson <jbcrowso at ncsu dot edu>)michael2004-02-241-8/+40
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation if lavc is compiled as a shared lib. Patch by Panagiotis ↵alex2003-12-071-0/+6
| | | | | | Issaris <takis@lumumba.luc.ac.be> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11569 b3059339-0415-0410-9bf9-f77b7e298cf2
* memcpy pix instead of black screen if no DR and codec provides no qscale tablemichael2003-11-161-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11478 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000lmichael2003-10-311-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11336 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2003-10-311-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11335 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip filter if codec doesnt provide the QP array and user didnt force a QP ↵michael2003-10-281-0/+2
| | | | | | | | | (fixes diegos segfault) its quite scary how many 10l bugs the spp filter had ... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11309 b3059339-0415-0410-9bf9-f77b7e298cf2
* autoqmichael2003-10-281-18/+46
| | | | | | | support all planar YUV variants (untested, probably buggy) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11308 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2003-10-281-8/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11306 b3059339-0415-0410-9bf9-f77b7e298cf2
* another 10l ...michael2003-10-281-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11305 b3059339-0415-0410-9bf9-f77b7e298cf2
* optimizemichael2003-10-281-4/+76
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11302 b3059339-0415-0410-9bf9-f77b7e298cf2
* optimizingmichael2003-10-271-28/+78
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11300 b3059339-0415-0410-9bf9-f77b7e298cf2
* change offsets (quality 2-4 looks better now)michael2003-10-271-4/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11299 b3059339-0415-0410-9bf9-f77b7e298cf2
* different / faster / simpler "quantization"michael2003-10-271-14/+6
| | | | | | | filtered images look like with the old quantization (to me at least) if anyone notices a difference then tell me ASAP git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11297 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2003-10-271-10/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11296 b3059339-0415-0410-9bf9-f77b7e298cf2
* 120lmichael