Commit Graph

1923 Commits

Author SHA1 Message Date
diego be69c6d145 Add missing header files, fixes the warnings:
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
2007-11-09 17:20:27 +00:00
diego c97e68b7b1 Add missing header file, fixes the warnings:
In file included from vf_fspp.c:46:
../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@25004 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 17:17:48 +00:00
diego 4c67136240 Remove misleading comment and remove unnecessary #includes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25003 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 16:28:37 +00:00
diego 8c2f371e19 Rearrange headers to get rid of an #undef and remove unnecessary headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25002 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 15:44:47 +00:00
diego e20855c92e Remove unnecessary dsputil.h #include, fixes the warnings:
In file included from vf_uspp.c:33:
../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@25001 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 15:39:08 +00:00
diego 16ad1ac3be #include libavcodec/eval.h instead of manually declaring ff_eval.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25000 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 14:12:19 +00:00
rfelker ca60f3fe0f const fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24999 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 12:52:50 +00:00
rfelker 6ae8dd0e1d ack, can't believe i wrote this crap with void pointer arithmetic
gimme some cola!!!

since the code was disabled and tests had shown it was slower,
i'm just removing it rather than fixing it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24998 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 12:51:43 +00:00
rfelker f713cb0faf begin moving const filter data to .text/.rodata sections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24997 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 06:58:32 +00:00
rfelker 549d3be0c7 stage 1 of applying const to vf structs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24996 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 06:57:24 +00:00
rfelker f754ec02e5 vf_screenshot does not depend on libpng; it uses libavcodec now
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24995 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 06:52:33 +00:00
reimar fb366fbf03 Simplify decode_audio function a bit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24989 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-08 18:14:49 +00:00
reimar c849b6683a Remove a check+abort, this case should never happen anyway, and if it does
the most likely result is a NULL dereference which isn't much worse.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24946 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-03 10:20:00 +00:00
uau 6338c068a2 Simplify init_audio_filters() arguments
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
2007-11-01 06:52:28 +00:00
uau 2d44426648 audio: simplify buffer allocation code
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
2007-11-01 06:52:23 +00:00
uau 1844e1dd0c Change decode_audio() interface
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
2007-11-01 06:52:19 +00:00
uau 3e8ab86642 Replace hopefully unreachable code with abort()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24914 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-01 06:51:53 +00:00
uau 9e796deb33 dec_audio.c: Make some functions static
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24913 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-01 06:51:49 +00:00
uau 244bd237fb Simplify audio buffer allocation logic
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
2007-11-01 06:51:44 +00:00
uau 8338fa9ecf Reindent dec_audio.c
Also remove some commented out code


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24911 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-01 06:51:38 +00:00
diego 625098b0ac Comment out uninit function, its use is commented out. Fixes warning:
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
2007-10-30 15:31:45 +00:00
diego f468804293 Remove commented-out and unused fmt_list array.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24894 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 15:27:13 +00:00
diego 80e1a70e8a Remove unused fmt_list array, fixes the warnings:
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
2007-10-30 15:24:09 +00:00
diego 4e39ea3dfe Remove unused functions, fixes the warnings:
vf_2xsai.c:80: warning: 'GetResult1' defined but not used
vf_2xsai.c💯 warning: 'GetResult2' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24891 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-30 09:10:01 +00:00
rtogni ec70a0fbbd Change the frame format passed to lavc realvideo decoders to adapt for
the changes in r10825.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24882 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-28 22:32:20 +00:00
diego 6f88dd80a7 fix warning:
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
2007-10-22 16:37:51 +00:00
reimar bcc10e0961 Check ICDecompressGetFormatSize to avoid crashes.
Based on patch by Gianluigi Tiesi (mplayer netfarm it).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24829 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-21 13:15:48 +00:00
rfelker d32ae85e1c reminder that this filter has broken global vars
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24813 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-19 12:33:21 +00:00
zuxy 4ba5898840 Remove unused static function get_image().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24799 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-17 14:06:44 +00:00
compn c040ef5660 Add Coinitialize function to vfw encoder and win32 loader.
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
2007-10-17 05:14:21 +00:00
zuxy f53d4bcb3e Reorder #includes to get rid of the FIXME
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24766 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-12 03:17:43 +00:00
zuxy c212ce53e6 Remove unnecessary #include <malloc.h>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24765 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-12 03:14:11 +00:00
zuxy 1c6f85026a Silence a gcc warning: "wrong type argument to increment".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24763 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-11 09:47:03 +00:00
reimar b5df36517b Make vf_screenshot use the libavcodec PNG encoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24759 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-09 12:46:10 +00:00
rtogni b8c80f6477 Fix output channle ordering
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24721 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-07 15:06:53 +00:00
rtogni 84747029e6 Typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24713 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-06 13:45:14 +00:00
michael 79c7b5f23f change double arrays to float (this should be accurate enough)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24700 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-04 12:44:16 +00:00
michael cabd86df24 fix infinite loop
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24699 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-04 12:32:54 +00:00
michael f761edd20b overcomplete wavelet denoiser
not optimized at all but much cleaner than uspp


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24697 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-03 23:50:54 +00:00
rtogni 6d5e4cc2ca Disable direct rendering for ROQ video, the buffer management used by
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
2007-09-30 20:02:57 +00:00
iive 944b5d2acd Define profiles_t as const to fix a warning. Prevent profiles[] from been exported.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24649 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-28 21:06:45 +00:00
diego 81cebd7e45 Disable unused query_format functions for now until they are
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
2007-09-26 23:00:43 +00:00
diego 65a43f35ed Disable buggy unused function via #if 0, blessed by Rich.
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
2007-09-26 22:48:59 +00:00
diego 6e0510ff84 Remove unused crappy hash_pic function, blessed by Rich.
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
2007-09-26 22:43:38 +00:00
diego 04586de1dd MPEG-2 blocks at qp 1 get overfiltered by spp, apparently because "qp>>1" turns
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
2007-09-18 14:08:08 +00:00
diego 1660e3c123 Replace stdint.h #include by functionally equivalent inttypes.h.
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
2007-09-18 09:30:42 +00:00
reimar ca7b84e869 Make vd_ffmpeg work with lavf demuxer also for RealVideo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24543 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-16 11:52:05 +00:00
reimar af7f992651 Copy AC-3 bsmod field into IEC data-type field as required by the specs
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
2007-09-15 16:39:39 +00:00
reimar d46f568fb4 Handle swab when input length is odd (treat it as if there was an additional
0 byte)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24528 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 16:30:39 +00:00
reimar 502368c206 Fix off-by-one error if fsize is odd (does handling that case even make sense?)
and remove a TODO comment that no longer applies.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24456 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:52:13 +00:00