1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
Commit Graph

389 Commits

Author SHA1 Message Date
Diego Biurrun
945f7c6e92 Revert #undefining system functions, it is not necessary.
Originally committed as revision 28502 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 20:31:35 +00:00
Diego Biurrun
516c5f88a1 Add config.h #include for ARCH_X86 definition.
Originally committed as revision 28500 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 18:04:19 +00:00
Diego Biurrun
84205e0239 Add #undefs to reenable system functions that are normally forbidden in other
parts of FFmpeg but OK in this test program. Fixes the build.

Originally committed as revision 28499 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 18:01:36 +00:00
Diego Biurrun
43175f5010 Drop DECLARE_ALIGNED from extern declarations. It creates trouble when
swscale_internal.h is #included without HAVE_AV_CONFIG_H defined.

Originally committed as revision 28498 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 17:53:33 +00:00
Kostya Shishkov
e2a004ad4e Prefix visible YUV2RGB functions with sws_
Originally committed as revision 28496 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 14:31:53 +00:00
Kostya Shishkov
fa58ba15f8 Give better name to Inverse_Table_6_9
Originally committed as revision 28495 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 14:17:30 +00:00
Diego Biurrun
2907deed0f Remove file name from file headers.
It provides no useful information and breaks on renames.

Originally committed as revision 28494 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 11:19:19 +00:00
Stefano Sabatini
c099766fad Drop the deprecated sws_scale_ordered() at the next major version
bump.

Originally committed as revision 28492 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-08 23:06:05 +00:00
Stefano Sabatini
96b27045d2 Replace int type with enum PixelFormat for the dstFormat/srcFormat
params of the sws_getContext() and sws_getCachedContext()
declarations, consistent with the implementation.

Originally committed as revision 28491 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-08 23:02:06 +00:00
Stefano Sabatini
b534f73d25 Fix a typo: lumaSarpen -> lumaSharpen.
Originally committed as revision 28490 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-08 22:50:57 +00:00
Diego Biurrun
bf89d54edb cosmetics: Remove period after copyright statement non-sentence.
Originally committed as revision 28444 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-01 15:51:48 +00:00
Diego Biurrun
82aaa790d2 Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.

Originally committed as revision 28414 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-01 02:01:31 +00:00
Diego Biurrun
f4406ec177 HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.
Originally committed as revision 28358 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-25 19:58:33 +00:00
Diego Biurrun
1615fb91a1 Declare struct SwsContext before using it, fixes the checkheaders warning:
libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list
libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want

Originally committed as revision 28353 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-25 12:03:28 +00:00
Diego Biurrun
dfe44a855d Disable C code when compiling AltiVec code, fixes the warning:
swscale_template.c:2623: warning: `swScale_C' defined but not used

Originally committed as revision 28352 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-25 11:59:22 +00:00
Diego Biurrun
f40c7dbb7e spelling/grammar cosmetics
Originally committed as revision 28351 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-25 11:57:17 +00:00
Diego Biurrun
7a24ec506c Fix #endif comments.
Originally committed as revision 28350 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-25 11:33:35 +00:00
Carl Eugen Hoyos
0ab8039577 Add PIX_FMT_VDPAU_WMV3 and PIX_FMT_VDPAU_VC1.
Originally committed as revision 28344 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-20 09:31:07 +00:00
NVIDIA Corporation
4e2b48760b Add VDPAU hardware accelerated decoding for MPEG1 and MPEG2 which will
be used by MPlayer.

Original patch by NVIDIA corporation.

Originally committed as revision 28322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-16 02:14:25 +00:00
Aurelien Jacobs
b63f641e9b Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 28311 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-14 00:13:56 +00:00
Carl Eugen Hoyos
420169e520 Add PIX_FMT_VDPAU_H264.
Originally committed as revision 28281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-01-08 19:54:43 +00:00
Diego Biurrun
643d2e880f Avoid POSIX-reserved _t namespace.
Originally committed as revision 28195 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-27 11:45:46 +00:00
Diego Biurrun
cb82a0736d consistency cosmetics: Rename POWERPC identifiers to PPC.
Originally committed as revision 28194 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-27 11:33:54 +00:00
Diego Biurrun
b9263c945f Remove pointless malloc.h #include.
Originally committed as revision 28164 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-19 09:59:59 +00:00
Reimar Döffinger
217d820253 Some forgotten eax -> REG_a changes.
It seems that binutils >= 2.18 just treat eax as rax but older versions fail.

Originally committed as revision 28136 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-12 16:46:43 +00:00
Diego Biurrun
376924583a Delete unnecessary 'extern' keywords.
Originally committed as revision 28082 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-03 15:25:27 +00:00
Diego Biurrun
1599c47ce3 Remove commented-out duplicate declarations.
Originally committed as revision 28058 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-02 00:26:14 +00:00
Diego Biurrun
2ef8819c9a Remove unused declarations.
Originally committed as revision 28057 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-12-02 00:21:37 +00:00
Diego Biurrun
4d382e2076 cosmetics: Consistently place HEADERS before OBJS in all Makefiles.
Originally committed as revision 27970 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-20 22:54:30 +00:00
Diego Biurrun
5155b8395c Put variable declaration inside an #ifdef to avoid an unused variable warning.
Originally committed as revision 27945 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-17 10:33:59 +00:00
Diego Biurrun
dcc37c9b6a Add some const specifiers to function name variables; fixes a bunch of
"initialization discards qualifiers from pointer target type" warnings.

Originally committed as revision 27894 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-04 20:38:55 +00:00
Diego Biurrun
6408c25b95 Merge ARCH_BFIN lines.
Originally committed as revision 27889 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-03 22:06:45 +00:00
Diego Biurrun
efa430faed Add tests target for libswscale test programs.
Originally committed as revision 27888 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-03 22:01:03 +00:00
Måns Rullgård
1a220bcde3 Remove forgotten ASM_OBJS in libswscale
Originally committed as revision 27887 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-11-03 21:49:54 +00:00
Vitor Sessak
75add6fbfc Silence GCC warnings:
ibswscale/swscale.c: In function ‘sws_scale’:
libswscale/swscale.c:2678: warning: ‘b’ may be used uninitialized in
this function
libswscale/swscale.c:2678: warning: ‘g’ may be used uninitialized in
this function
libswscale/swscale.c:2678: warning: ‘r’ may be used uninitialized in
this function

Originally committed as revision 27837 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-27 19:59:01 +00:00
Michael Niedermayer
bddddb5a0b rgb2rgb.h was not really intended to be a public header, thus remove it.
Originally committed as revision 27836 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-27 09:05:27 +00:00
Michael Niedermayer
b29e65513c Remove rgb2rgb.h dependancy.
Originally committed as revision 27835 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-27 09:03:47 +00:00
Vitor Sessak
65f65c3021 Silence GCC warning
Originally committed as revision 27834 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-26 15:41:11 +00:00
Carl Eugen Hoyos
36e8de07ed Remove unused code that can't be compiled without svn archive.
Originally committed as revision 27827 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-25 20:41:51 +00:00
Michael Niedermayer
9b0d44ef67 Do not attempt to use the unscaled yuv2rgb converter when height is odd because
it will overflow the buffer by 1 line. This might have been exploitable.

Originally committed as revision 27826 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-25 15:00:28 +00:00
Vitor Sessak
76e9fd01dd Cosmetics: alignment
Originally committed as revision 27818 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-23 19:20:14 +00:00
Vitor Sessak
522ce95786 Fix broken palette8to*.
Originally committed as revision 27817 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-23 19:13:11 +00:00
Diego Biurrun
aeb87a49a7 cosmetics: typo fix
Originally committed as revision 27816 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-23 16:23:42 +00:00
David Conrad
9655ffb59e Convert typeof keyword into __typeof__; this is a gcc extension and the former is not accepted in C99 without GNU extensions enabled (e.g. via -fasm). This fixes compilation on PPC.
Originally committed as revision 27805 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-19 18:56:35 +00:00
Diego Pettenò
7ad6469eae Convert asm keyword into __asm__.
Neither the asm() nor the __asm__() keyword is not part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without
requiring further command-line options).

Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 synta.

Originally committed as revision 27778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-16 13:34:30 +00:00
Diego Pettenò
b5c44b1ab6 Mark some symbols in swscale.c as constant.
These are only used in swscale_template.c (and thus don't need to be
made extern), and can be declared as ASM constants.

Originally committed as revision 27737 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-09 11:13:14 +00:00
Diego Pettenò
d0b69b2855 Mark dither_2x2_{8,4} static to swscale.c
These two tables are not used outside swscale.c even though they are
declared also in yuv2rgb.c.

Originally committed as revision 27736 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-09 11:12:38 +00:00
Diego Pettenò
faf6112e26 Mark variation-specific interleaveBytes static.
These functions are never called by themselves, the alias
interleaveBytes is used instead.

Originally committed as revision 27735 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-09 11:11:35 +00:00
Diego Pettenò
6683a37f89 Invert logic for the single-pass in swScale() functions.
Instead of having a firstTime variable defaulting to 1, have a
warnedAlready defaulting to 0. While this should make no difference in
code speed at runtime, it allows to aggregate the four bytes of that
variable with clip_table in .bss section, rather than issuing a .data
section just for that.

As it is, libswscale require no .data section but .data.rel.ro (that
can be mitigated by prelinking), so the change might actually save one
page of memory at runtime (per process).

Originally committed as revision 27734 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-09 11:10:30 +00:00
Carl Eugen Hoyos
f5a2c9816e Change variable types from int to enum PixelFormat.
Fixes icc warning #188: enumerated type mixed with another type

Originally committed as revision 27733 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-10-09 08:36:04 +00:00