Commit Graph

1910 Commits

Author SHA1 Message Date
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
reimar 73acce23fd Mark DTS tables as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24455 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:47:15 +00:00
reimar 2be7f28a86 Fix 10l typo in syncword
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24454 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:39:02 +00:00
reimar c3d320c6ac Improved comments, based on patches by Ulion [ulion2002 gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24453 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:56:04 +00:00
reimar cb9466a0b3 Simplify and fix big-endian hwac3 header generation code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24452 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:54:06 +00:00
reimar 62e3a9e6a6 Deobfuscate: use IMGFMT_RGB_DEPTH and IMGFMT_IS_BGR
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24451 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 18:36:04 +00:00
diego 80c3412309 warning fix:
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
2007-09-09 09:59:50 +00:00
diego 7bfa03ac43 warning fix:
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
2007-09-09 09:57:36 +00:00
gpoirier a7aae21ad0 Add a check for c->head being NULL in pullup_free_context().
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
2007-09-08 14:43:10 +00:00
reimar cd4c2fdfb4 Support lowdelay flag
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24349 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-06 08:57:50 +00:00
diego efb632ebcb warnig fix (blessed by Rich):
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
2007-09-04 12:54:45 +00:00
nicodvb 1dbfe77925 added .stream_aspect to st_video_t: if non-zero and if not specified otherwise
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
2007-09-01 15:54:45 +00:00
iive e371194632 Remove imported rational calculation code and use the original one from avutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24315 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 10:50:36 +00:00
diego 90aa63e2fd Remove pointless #ifdef HAVE_XVMC within get_format(), all of the function
is protected by that #ifdef.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24274 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:38:08 +00:00