Uoti Urpala
577587ec6c
vf_ass: Copy less unnecessary data to/from work area
...
The filter copied the chroma planes from every potentially changed row
of the original image to its non-subsampled work area. Change it to
calculate the minimum and maximum x coordinate for each chroma row and
only copy the part between those.
The performance increase is only minor (though observable), but I
think the resulting code is no more complex than the original.
2008-07-25 01:55:14 +03:00
Uoti Urpala
4dab4347f5
vf_ass: Optimize alpha multiply
...
The effect of alpha blending was calculated as
color = orig_color * alpha / 255
where alpha and color range from 0 to 255.
Change this to
color = (orig_color * alpha + 255) / 256
where the "/ 256" can be expressed as a shift whereas the compiler
would probably generate a multiply+shift for the original "/ 255".
This formula gives a result that is too high by 1 for some inputs.
However it gives the exact result if alpha is 0 or 255 which is
probably the case where small errors would matter most.
2008-07-23 02:05:55 +03:00
Uoti Urpala
2d4656e070
Merge svn changes up to r27332
2008-07-21 15:03:49 +03:00
michael
4993d0c46a
fix memleak
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27332 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-21 11:41:13 +00:00
michael
76affcd2cb
Cleanup, use av_freep() instead of av_free(x); x=NULL
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27331 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-21 11:18:24 +00:00
diego
611c79b782
Remove "en" from list of all man page languages when generating man page
...
installation rules from a pattern. There is a separate rule for English above.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27330 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-19 11:32:33 +00:00
henry
20fee4a617
docs build fix
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27329 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-19 07:11:18 +00:00
diego
ebb8b63112
Only build the documentation in the languages requested from configure.
...
Fixes Bugzilla #978 .
inspired by a patch from Jonas Berlin, bugs outerspace.dyndns org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27328 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-19 02:00:56 +00:00
Gabrov
b0c1710aa0
synced with r27326
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27327 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 16:04:31 +00:00
ptt
3f81e4491a
added missing revisions (26762 & 26795)
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27326 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 09:41:27 +00:00
ptt
20d81382ac
restored file encoding tu utf8 and corrected wrong chars, hoping it's ok now
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27325 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 09:35:44 +00:00
zuxy
d7af803d7a
Remove unnecessary and troublesome inline
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27324 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 08:26:26 +00:00
michael
17b0917069
Make C code in yuv2yuv1() do accurate rounding, this could be split
...
depending on SWS_ACCURATE as well if someone wants.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27323 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-18 00:09:09 +00:00
michael
3076d107cf
indent
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27322 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:43:48 +00:00
michael
8db6dab345
Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27321 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:42:06 +00:00
michael
e96aa16d0c
simplify yuv2yuv1()
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27320 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 23:35:36 +00:00
diego
f45acd080b
Fix typo in msg_lang variable name that prevented the correct message
...
filename from being generated.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27319 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 22:38:26 +00:00
michael
8d04d0c285
10l forgot SWS_BILINEAR
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27318 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 22:30:02 +00:00
michael
fb9c400ac2
Ensure that exactly one scaler algo is used.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27317 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 22:01:18 +00:00
ben
ca39f4d10f
File was missing its dedicated header inclusion.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27316 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 19:37:19 +00:00
ben
9ca38e5303
Maemo platform runs on Nokia N8x0 series too.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27315 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 19:23:27 +00:00
reimar
4153f4e21c
Avoid including avcodec.h in demuxer.h (and thus many other files) just to get
...
FF_INPUT_BUFFER_PADDING_SIZE.
Instead use MP_INPUT_BUFFER_PADDING_SIZE and add a preprocessor check that it
is big enough.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27314 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 17:14:12 +00:00
reimar
6dfb85dc9e
Our ALSA code needs alloca, so check for it in configure and include alloca.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27313 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 17:11:30 +00:00
diego
4cbefcd4f1
cosmetics: Indent language handling after last commit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27312 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 12:38:05 +00:00
diego
adc68058bd
Rewrite translation handling in the build system.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27311 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 12:36:54 +00:00
diego
67dec9f5a8
Simplify summary output, add an extra empty line to it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27310 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 12:24:47 +00:00
diego
535174672b
Remove note about localization from configure output.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27309 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 12:22:05 +00:00
diego
87f1f5fea3
cosmetics: Rename _doc_lang variable to doc_lang.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27308 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 12:19:39 +00:00
diego
33ff3271b1
Evaluate man page installation rule for all available languages,
...
but only install the requested languages.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27307 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 11:54:42 +00:00
zuxy
a078ef894c
Force gcc to emit function body under -gnu99
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27306 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 10:07:21 +00:00
reimar
9254d010ea
limits.h is required for UINT_MAX
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27305 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 18:51:39 +00:00
reimar
b422b105d7
And a 1000l for r27263, swapped a condition, thus setting size to
...
0 when malloc succeeded instead of when it failed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27304 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 17:48:34 +00:00
reimar
2f5b26277f
100l, fix calloc being called with the wrong argument due to reordering
...
two lines in SVN r27263
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27303 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 17:28:19 +00:00
reimar
4a46fcaebc
Make sure demuxed ASF packet is properly padded after descrambling
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27302 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:43:40 +00:00
reimar
e870f84bfb
Move duplicate FF_INPUT_BUFFER_PADDING_SIZE handling into demuxer.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27301 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:18:25 +00:00
diego
fad0b588c2
Add variables for all available man page and documentation languages.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27300 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:14:56 +00:00
reimar
3f35a38237
Do not just print a warning, also fix the len in ASF demuxer!
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27299 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:06:14 +00:00
diego
c2c1ef0189
Remove redundant check in message language test.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27298 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:05:58 +00:00
diego
5068f7a778
Move the "all" option to the front of the list of available languages in
...
the configure help output so it can be noticed more easily.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27297 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 15:53:21 +00:00
diego
e0a81e9d31
cosmetics: Rename LANGUAGES variable to msg_langs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27296 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 15:51:15 +00:00
diego
fb01819aba
Replace output redirection with grep by POSIX standard options.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27295 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 15:38:06 +00:00
diego
4d16c72fa0
Replace simple sed invocation by even simpler tr invocation.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27294 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 15:09:24 +00:00
diego
4b068f19a9
Merge two consecutive sed calls into one.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27293 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 15:08:34 +00:00
diego
011a231706
Add IDs to some XML elements to avoid warnings.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27292 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 22:22:25 +00:00
reimar
24b14f8480
Make af_hrtf tables static const
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27291 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 19:08:09 +00:00
reimar
7c78c34ace
Add const to libaf/filter.c functions.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27290 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 19:05:42 +00:00
reimar
803385a5d7
Replace S_IREAD|S_IWRITE by POSIX-compatible S_IRUSR|S_IWUSR (not exactly the same, but should not matter).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27289 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 17:35:52 +00:00
reimar
b945a124ef
ALSA stupidly tries to define struct timeval and struct timespec, which
...
may cause compilation errors. Check for this and disable ALSA.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27288 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 16:39:26 +00:00
diego
727a1272bc
Fix dlopen(), dlclose() dlsym() calls in configure test.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27287 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 09:21:53 +00:00
diego
64944f9385
Fix tgetent call in termcap configure test.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27286 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-15 09:17:07 +00:00