summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
Commit message (Collapse)AuthorAgeFilesLines
* Simplify init_audio_filters() argumentsuau2007-11-012-21/+5
| | | | | | | | | | | | | | | Remove the following arguments as redundant: in_channels, in_format, out_minsize, out_maxsize. The first two always equal fields of the sh_audio_t struct given as the first argument to the function. The last two are unused after the allocation of sh_audio->a_out_buffer was changed to be done on demand. After the out_minsize and out_maxsize arguments are removed the function preinit_audio_filters() is identical to init_audio_filters(), so remove it and use the latter instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24922 b3059339-0415-0410-9bf9-f77b7e298cf2
* audio: simplify buffer allocation codeuau2007-11-011-13/+2
| | | | | | | | | Remove the code allocating sh_audio->a_out_buffer from init_audio_filters() and let the buffer be allocated by the new dynamic allocation code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24921 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change decode_audio() interfaceuau2007-11-012-74/+102
| | | | | | | | | | | | Rewrite decode_audio to better deal with filters that handle input in large blocks. It now always places output in sh_audio->a_out_buffer (which was always given as a parameter before) and reallocates the buffer if needed. After the changes filters can return arbitrarily large blocks of data without some of it being lost. The new version also allows simplifying some code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24920 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace hopefully unreachable code with abort()uau2007-11-011-7/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24914 b3059339-0415-0410-9bf9-f77b7e298cf2
* dec_audio.c: Make some functions staticuau2007-11-012-5/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24913 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify audio buffer allocation logicuau2007-11-011-7/+5
| | | | | | | | | Remove code that set sh_audio->a_out_buffer to equal sh_audio->a_buffer between the calls to init_best_audio_codec and init_audio_filters. Nothing uses the buffer between those calls. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent dec_audio.cuau2007-11-011-332/+373
| | | | | | | Also remove some commented out code git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Comment out uninit function, its use is commented out. Fixes warning:diego2007-10-301-0/+2
| | | | | | | vf_yuvcsp.c:66: warning: 'uninit' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24895 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove commented-out and unused fmt_list array.diego2007-10-301-17/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24894 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused fmt_list array, fixes the warnings:diego2007-10-303-39/+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
* Remove unused functions, fixes the warnings:diego2007-10-301-41/+0
| | | | | | | | vf_2xsai.c:80: warning: 'GetResult1' defined but not used vf_2xsai.c:100: warning: 'GetResult2' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24891 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change the frame format passed to lavc realvideo decoders to adapt for rtogni2007-10-281-15/+12
| | | | | | | | the changes in r10825. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24882 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix warning:diego2007-10-221-1/+1
| | | | | | | | vf_ow.c: In function 'filter': vf_ow.c:168: warning: unused variable 'sum' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24836 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check ICDecompressGetFormatSize to avoid crashes.reimar2007-10-211-0/+5
| | | | | | | Based on patch by Gianluigi Tiesi (mplayer netfarm it). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24829 b3059339-0415-0410-9bf9-f77b7e298cf2
* reminder that this filter has broken global varsrfelker2007-10-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24813 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused static function get_image().zuxy2007-10-171-17/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24799 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add Coinitialize function to vfw encoder and win32 loader.compn2007-10-171-1/+23
| | | | | | | | | | Fixes crash when trying to load vp7vfw.dll in vfw2menc. Patch by Gianluigi Tiesi mplayer___netfarm.it http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2007-September/054136.html git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24798 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reorder #includes to get rid of the FIXMEzuxy2007-10-121-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24766 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary #include <malloc.h>zuxy2007-10-121-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24765 b3059339-0415-0410-9bf9-f77b7e298cf2
* Silence a gcc warning: "wrong type argument to increment".zuxy2007-10-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24763 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vf_screenshot use the libavcodec PNG encoderreimar2007-10-092-44/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24759 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix output channle orderingrtogni2007-10-071-25/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24721 b3059339-0415-0410-9bf9-f77b7e298cf2
* Typortogni2007-10-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24713 b3059339-0415-0410-9bf9-f77b7e298cf2
* change double arrays to float (this should be accurate enough)michael2007-10-041-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24700 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix infinite loopmichael2007-10-041-3/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24699 b3059339-0415-0410-9bf9-f77b7e298cf2
* overcomplete wavelet denoisermichael2007-10-033-0/+341
| | | | | | | not optimized at all but much cleaner than uspp git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24697 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable direct rendering for ROQ video, the buffer management used by rtogni2007-09-301-1/+1
| | | | | | | the codec is not compatible with MPlayer idea of reget_buffer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24676 b3059339-0415-0410-9bf9-f77b7e298cf2
* Define profiles_t as const to fix a warning. Prevent profiles[] from been ↵iive2007-09-281-2/+2
| | | | | | exported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24649 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable unused query_format functions for now until they arediego2007-09-263-0/+6
| | | | | | | | | | | | investigated and properly used/fixed. Fixes warnings: vf_softskip.c:50: warning: 'query_format' defined but not used vf_tfields.c:433: warning: 'query_format' defined but not used vf_telecine.c:91: warning: 'query_format' defined but not used vf_telecine.c:105: warning: 'config' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24625 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable buggy unused function via #if 0, blessed by Rich.diego2007-09-261-0/+2
| | | | | | | | | Fixes warning: vf_pullup.c: At top level: vf_pullup.c:82: warning: 'get_image' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24623 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused crappy hash_pic function, blessed by Rich.diego2007-09-261-19/+0
| | | | | | | | Fixes warning: vf_detc.c:57: warning: 'hash_pic' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24622 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 stdint.h #include by functionally equivalent inttypes.h.diego2007-09-181-1/+1
| | | | | | | | The use of inttypes.h is more common throughout MPlayer and stdint.h can create problems on obscure systems like HP-UX, see Bugzilla #831. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24565 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make vd_ffmpeg work with lavf demuxer also for RealVideo.reimar2007-09-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24543 b3059339-0415-0410-9bf9-f77b7e298cf2
* Copy AC-3 bsmod field into IEC data-type field as required by the specsreimar2007-09-151-0/+1
| | | | | | | | | Is not known to make any difference in practice (yet?). Patch by Ulion (ulion2002 gmail com) minus a cast that seemed unnecessary (beat me if I was wrong ;-) ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24529 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle swab when input length is odd (treat it as if there was an additionalreimar2007-09-151-2/+10
| | | | | | | 0 byte) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24528 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix off-by-one error if fsize is odd (does handling that case even make sense?)reimar2007-09-141-2/+1
| | | | | | | and remove a TODO comment that no longer applies. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24456 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark DTS tables as constreimar2007-09-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24455 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 10l typo in syncwordreimar2007-09-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24454 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved comments, based on patches by Ulion [ulion2002 gmail com]reimar2007-09-141-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24453 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify and fix big-endian hwac3 header generation code.reimar2007-09-141-17/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24452 b3059339-0415-0410-9bf9-f77b7e298cf2
* Deobfuscate: use IMGFMT_RGB_DEPTH and IMGFMT_IS_BGRreimar2007-09-131-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24451 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-091-2/+0
| | | | | | | libmpcodecs/vf_divtc.c:206: warning: 'cmp' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24380 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-091-0/+2
| | | | | | | libmpcodecs/ae_lavc.c:135: warning: 'lavc_find_atag' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24379 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a check for c->head being NULL in pullup_free_context().gpoirier2007-09-081-0/+1
| | | | | | | | | | | This fixes crashes when an invalid filter chain is built Patch by Alexander Strange % astrange A ithinksw P com % Original thread: date: Sep 7, 2007 8:47 PM subject: [MPlayer-dev-eng] [PATCH] crash in pullup with invalid filters git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24370 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support lowdelay flagreimar2007-09-061-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24349 b3059339-0415-0410-9bf9-f77b7e298cf2
* warnig fix (blessed by Rich):diego2007-09-041-1/+1
| | | | | | | pullup.c:223: warning: 'qpcomb_y' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24339 b3059339-0415-0410-9bf9-f77b7e298cf2
* added .stream_aspect to st_video_t: if non-zero and if not specified otherwisenicodvb2007-09-011-0/+1
| | | | | | | by the user the video pipeline will use it as current aspect ratio git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24319 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove imported rational calculation code and use the original one from avutil.iive2007-09-011-83/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24315 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless #ifdef HAVE_XVMC within get_format(), all of the functiondiego2007-08-281-2/+0
| | | | | | | is protected by that #ifdef. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24274 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-08-281-3/+3
| | | | | | | | vd_ffmpeg.c: At top level: vd_ffmpeg.c:915: warning: 'get_format' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24273 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-08-281-1/+1
| | | | | | | vf_scale.c:359:92: warning: trigraph ??) ignored, use -trigraphs to enable git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24269 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Add some explanatory comments to #endif directives.diego2007-08-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24268 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-08-281-1/+0
| | | | | | | | ve_qtvideo.c: At top level: ve_qtvideo.c:109: warning: 'decompressor' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24267 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add code to clear left and right borders not only top and bottom.reimar2007-08-281-2/+20
| | | | | | | Patch by Tomas Janousek (tomi nomi cz) with small modifications by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24263 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clean up the way get_path is handled: Compile get_path.c to an object to linkdiego2007-08-282-4/+0
| | | | | | | | against instead of directly #including the C file and replace the many extern declarations by a proper header file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set sample_rate and bit_rate from sh_audio as fallback in case sh_audio->wfreimar2007-08-271-0/+2
| | | | | | | is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24246 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-08-251-1/+0
| | | | | | | | pullup.c: In function 'decide_frame_length': pullup.c:569: warning: unused variable 'f3' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24196 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declaration.diego2007-08-251-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24168 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declaration.diego2007-08-252-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24166 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declaration.diego2007-08-251-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24163 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some unused variable warnings.diego2007-08-251-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24162 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix unused variable warning.diego2007-08-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24145 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix unused variable warning.diego2007-08-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24140 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable.diego2007-08-241-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24139 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use new request_channelsreimar2007-08-231-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24128 b3059339-0415-0410-9bf9-f77b7e298cf2
* Runtime-patching for windows to fix crash with drv43260.dll reimar2007-08-201-0/+44
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24107 b3059339-0415-0410-9bf9-f77b7e298cf2
* printf in mp_image.h was changed to fprintf in r17972.cehoyos2007-08-082-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24040 b3059339-0415-0410-9bf9-f77b7e298cf2
* make x264 work again after the h264-libx264 renamingmichael2007-08-071-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24024 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move alloc_mpi and copy_mpi from libmenu/vf_menu.c to libmpcodecs/mp_image.c.cehoyos2007-08-043-0/+69
| | | | | | |