Ramiro Polla
a4388ebd37
Split swscale.c into scaler code (swscale.c) and utility code (utils.c).
...
Originally committed as revision 30411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
4a88852623
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 30385 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
David Conrad
01cc47dcd3
More const-correctness for sws_scale
...
Originally committed as revision 30381 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
0e21dcdb13
Split overly long line.
...
Originally committed as revision 30378 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Alexis Ballier
f28cc5771f
Make const prototypes for input sources of sws_scale_* stricter.
...
Patch by Alexis Ballier gmailify($firstname, $familyname)
Originally committed as revision 30374 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
3aca8b59f6
Remove useless forward declaration.
...
Originally committed as revision 30371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
c36a4294dc
Remove stray '\' at the end of macro definitions.
...
Originally committed as revision 30362 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
90eb284a77
Remove duplicated or pointless newlines.
...
Originally committed as revision 30361 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
398c193d0b
Factorize error message logging, log it if the converter cannot be
...
set.
Originally committed as revision 30360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
e36a545de5
Reindent after the last commit.
...
Originally committed as revision 30359 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
c0d1dc1c4f
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.
Originally committed as revision 30358 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
00c4127ec9
Remove double const
...
Originally committed as revision 30357 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
9a180390b9
Factorize error message logging in rgb2rgbWrapper().
...
Originally committed as revision 30356 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
1b5d46c6a6
Reindent
...
Originally committed as revision 30350 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Måns Rullgård
d39d7cf693
Remove inline from initFilter()
...
It makes no sense having that function inlined.
Originally committed as revision 30349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
e922e34c96
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
Originally committed as revision 30341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
5090d8e16a
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
Originally committed as revision 30340 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
a630ed3ee9
Fix typo, "get rid off" -> "get rid of".
...
Originally committed as revision 30338 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
730cb9dab3
Revert r30331, which broke compilation.
...
swScale_C is not templated if any optimization is to be used and
!runtime_cpudetect.
Originally committed as revision 30334 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
80853cfc6a
Factorize the code which calls the non optimized C functions in
...
getSwsFunc().
Originally committed as revision 30331 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
c70f1401df
Prefer "to %s%s" over "to%s %s", slightly more readable.
...
Originally committed as revision 30330 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
a9e2878c48
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.
Originally committed as revision 30329 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
0cc854e377
Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.
...
Originally committed as revision 30327 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
d95c863850
Factorize code which logs the source and destination formats in
...
sws_getContext().
Originally committed as revision 30326 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
3e906f4cfb
Simplify reset_ptr(): employ usePal() macro rather than enumerating
...
all the paletted formats.
Originally committed as revision 30317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
2e3e8031ec
Don't initialize normal horizontal filter if MMX2 filter is used.
...
Originally committed as revision 30313 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Zuxy Meng
a959e24780
Const correctness for src pointer. Remove all constness related warnings in
...
libswscale.
Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
3bfbbef64d
Fix typo.
...
Originally committed as revision 30304 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
00c081a8f0
Remove unused clip_table code.
...
Originally committed as revision 30303 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
efc034cc0f
Add const qualifier to rgb48 to YV12 functions' src.
...
Originally committed as revision 30301 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
a3e35e2852
Add missing parameter to rgb48 to YV12 functions.
...
Originally committed as revision 30300 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Reimar Döffinger
1b168a428d
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.
Originally committed as revision 30246 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
8e9767f6fd
Implement sws_isSupportedInput() and sws_isSupportedOutput().
...
Originally committed as revision 30236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
634116df3e
Prefer enum PixelFormat over int for the type of the format parameter
...
of getSubSampleFactors().
Originally committed as revision 30184 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
997980f0d8
Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for the
...
swscale_configuration() and swscale_license() functions, consistent
with the rest of FFmpeg.
Originally committed as revision 30180 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
f412d5e97a
Simplify usePal() macro, make it use av_pix_fmt_descriptors.
...
Originally committed as revision 30172 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
b3cf7cb144
Simplify getSubSampleFactors(), make it use the values provided by
...
av_pix_fmt_descriptors().
Originally committed as revision 30171 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
d3243d1431
Indentation.
...
Originally committed as revision 30087 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
a8bcc7b42b
Document the differences between the two asm fragments in initMMX2HScaler().
...
Originally committed as revision 29978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
f415be684d
Add support for nv12/nv21 input.
...
Originally committed as revision 29974 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Stefano Sabatini
a9af75ae85
Make sws_format_name() use av_pix_fmt_descriptors.
...
This also introduces a dependency of libswscale on libavutil.
Originally committed as revision 29968 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Diego Biurrun
bd381fd3f6
Add functions to return library license and library configuration.
...
Originally committed as revision 29932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
NVIDIA Corporation
8cbcb1c732
Support VDPAU hardware accelerated decoding of MPEG-4 ASP on capable
...
hardware.
Original patch by NVIDIA corporation.
Originally committed as revision 29885 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
749fac310c
Reset slice direction at end of each frame.
...
Originally committed as revision 29675 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
9cf484d06e
Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and label
...
parameters.
Originally committed as revision 29652 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
c2613a3137
Indent.
...
Originally committed as revision 29651 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Lars Täuber
991e579cae
Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().
...
Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>.
Originally committed as revision 29650 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
67c2c5bb2e
Curly brackets cosmetics for previous commit.
...
Originally committed as revision 29587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
1ddb5747df
Check for return value of initFilter().
...
Originally committed as revision 29586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago
Ramiro Polla
7248797c03
swscale: Check for return values of malloc.
...
Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
15 years ago