1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-13 02:15:59 +00:00
Commit Graph

662 Commits

Author SHA1 Message Date
benoit
de1ca7fb29 Make const prototypes for input sources of sws_scale_* stricter.
Patch by Alexis Ballier gmailify($firstname, $familyname)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30374 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 16:30:20 +00:00
ramiro
4277621a41 swscale-example: Add comment about the use of av_{malloc,free}.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30373 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 15:42:51 +00:00
ramiro
d4e79342c1 Remove useless forward declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30371 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 11:35:04 +00:00
zuxy
4455af6720 User friendly warning message that gives out names of source and target formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30370 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 05:21:17 +00:00
mru
51f1113b15 swscale-example: use av_malloc()
Image buffers require 16-byte alignment, so av_malloc() should be used.
Fixes crash on PPC.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30369 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 03:47:11 +00:00
stefano
d448df5add Split long line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30368 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-18 23:34:07 +00:00
stefano
18f9a9bebc Convert int -> enum PixelFormat in doTest().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30367 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-18 23:33:17 +00:00
zuxy
2257b14a19 Define out currently unused static functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30365 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-18 08:42:04 +00:00
stefano
91e4519ed0 Remove stray '\' at the end of macro definitions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30362 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 23:29:31 +00:00
stefano
c60f68724c Remove duplicated or pointless newlines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30361 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 23:17:47 +00:00
stefano
aadf8843d7 Factorize error message logging, log it if the converter cannot be
set.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30360 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 23:07:37 +00:00
stefano
6db184bb80 Reindent after the last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30359 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 23:02:20 +00:00
stefano
3c54865aea Make the pal2rgbWrapper set and use the converter in pal2rgbWrapper
only if the input format is paletted.

Fix potential crashes/weirdness if the input format is non-paletted.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30358 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 23:00:01 +00:00
mru
1a8479b95e Remove double const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30357 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 19:26:35 +00:00
stefano
acd1a4075d Factorize error message logging in rgb2rgbWrapper().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30356 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 15:11:25 +00:00
mru
1d08d54a97 Reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30350 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 14:25:19 +00:00
mru
9c1aafc17c Remove inline from initFilter()
It makes no sense having that function inlined.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30349 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 14:25:17 +00:00
stefano
f9569e1114 Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ‘sws_scale’:
swscale.c:2968: warning: cast discards qualifiers from pointer target type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30341 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 00:26:29 +00:00
stefano
21a572c8de Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ‘planarCopy’:
swscale.c:2256: warning: cast discards qualifiers from pointer target type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30340 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-17 00:21:50 +00:00
stefano
d11d2ab242 Fix typo, "get rid off" -> "get rid of".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30338 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 22:49:00 +00:00
stefano
68544d15da Revert r30331, which broke compilation.
swScale_C is not templated if any optimization is to be used and
!runtime_cpudetect.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30334 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:51:26 +00:00
stefano
e1a3ac7fb2 Prefer enum PixelFormat to int as the parameter type of
fmt_depth(fmt).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30333 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:32:58 +00:00
stefano
ae2e7d7298 Declare with av_unused the variable alpMmxFilter, fix the gcc warning:
swscale_template.c: In function ‘swScale_C’:
swscale_template.c:2580: warning: unused variable ‘alpMmxFilter’
swscale_template.c: In function ‘sws_init_swScale_C’:


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30332 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:22:30 +00:00
stefano
5cd08a9945 Factorize the code which calls the non optimized C functions in
getSwsFunc().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30331 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:19:54 +00:00
stefano
5ffab28a7c Prefer "to %s%s" over "to%s %s", slightly more readable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30330 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:14:29 +00:00
stefano
d77dc477c5 Simplify code in sws_getContext() which logs if the destination format
support dithering, remove the const char *dither variable and use a
literal string instead.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30329 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:11:03 +00:00
ramiro
3c8de6d006 Document some of SwsContext.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30328 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 19:04:55 +00:00
ramiro
14fe9544f9 Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30327 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 18:39:06 +00:00
stefano
5d8bd54019 Factorize code which logs the source and destination formats in
sws_getContext().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30326 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 18:36:21 +00:00
stefano
4644bd6293 Simplify reset_ptr(): employ usePal() macro rather than enumerating
all the paletted formats.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30317 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 11:08:16 +00:00
mru
93710d64bb Add symbol versioning for shared libraries
Based on patch by Reinhard Tartler <siretart tauware de>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30315 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 04:48:55 +00:00
ramiro
87e34c3f3f Don't initialize normal horizontal filter if MMX2 filter is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30313 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 19:50:59 +00:00
zuxy
0bd2e793c1 Const correctness for src pointer. Remove all constness related warnings in
libswscale.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 08:51:51 +00:00
stefano
32c03dd8c2 Fix typo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30304 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 00:39:25 +00:00
ramiro
8af165c26f Remove unused clip_table code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30303 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 19:12:42 +00:00
ramiro
1cda8b002f Add const qualifier to rgb48 to YV12 functions' src.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30301 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 06:19:45 +00:00
ramiro
dadbe620d6 Add missing parameter to rgb48 to YV12 functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30300 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 06:19:10 +00:00
conrad
f3f11efc7a /nop is illegal with Apple's older version of gas, this was fixed elsewhere
but not here since it was unused before now.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30289 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 19:03:09 +00:00
zuxy
52b2e49c29 Make sure that sfence is used after any non temporal stores.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30287 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 02:34:33 +00:00
zuxy
7c79acf4b2 Avoid redefinition of RGB_PLANAR2PACKED24 as the template is included for
multiple times.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30273 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-11 08:21:31 +00:00
ramiro
83ff693d41 cosmetics: {} placement.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30272 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-11 07:30:28 +00:00
zuxy
ed8a43de8f MMX(2) accelerated yuv420->rgb24 routine, trivial as essentially as it just
swaps R and B inputs for the existing yuv420->bgr24 routine.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30254 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-09 17:20:49 +00:00
zuxy
9e5a65dcbe Remove unused PREFETCHW macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30253 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-09 14:44:20 +00:00
reimar
c894574236 Ignore 0-height slice in sws_scale, otherwise a final 0-height slice will
cause libswscale to assume the incorrect slice order and complain about
slices starting in the middle.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30246 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-08 19:31:33 +00:00
stefano
3f1a03feb1 Implement sws_isSupportedInput() and sws_isSupportedOutput().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30236 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-07 19:07:47 +00:00
zuxy
0c7fcdd42e Remove const to avoid a bunch of GCC warnings against discarded qualifiers and
incompatible pointer type.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30234 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-07 07:13:18 +00:00
stefano
763360ccad Prefer enum PixelFormat over int for the type of the format parameter
of getSubSampleFactors().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30184 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-03 15:20:07 +00:00
stefano
e8d92b1e66 Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for the
swscale_configuration() and swscale_license() functions, consistent
with the rest of FFmpeg.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30180 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-03 14:35:20 +00:00
stefano
e786fb79c5 Simplify usePal() macro, make it use av_pix_fmt_descriptors.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30172 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-03 00:22:49 +00:00
stefano
f192bfea2a Simplify getSubSampleFactors(), make it use the values provided by
av_pix_fmt_descriptors().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30171 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-03 00:09:24 +00:00