History | View | Annotate | Download (69 KB)
swscale: simplify initialization code
Simplify the fallthrough case when no accelerated functionscan be initialized.
swscale: further cleanup swscale.c
Move x86-specific constants out of swscale.c
swscale: partially move the arch specific code left
PPC and x86 code is split off from swscale_template.c. Lots of code isstill duplicated and should be removed later.
Again uniformize the init system to be more similar to the dsputil one.
Unset h*scale_fast in the x86 init in order to make the output...
swscale: Factorize FAST_BGR2YV12 definition.
It is used only for x86 so it will eventually be moved with that codeinto the x86 arch subdirectory.
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
100l fix if condition
Originally committed as revision 32395 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Y400A (gray alpha) input support in libswscale
Originally committed as revision 32394 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: remove useless temporary variable
Originally committed as revision 32258 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: factorize plane copying code out of 2 functions
Originally committed as revision 32257 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
indent
Originally committed as revision 32157 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: remove unused code
yvu9ToYv12Wrapper() used to support yv12 with the chroma planes either in theuv order or the vu order. FFmpeg no longer has a pixel format in vu order.
Originally committed as revision 32156 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: fix internal rgb->yv12 chroma conversion used by the main scaler path
The shift must be applied before the masking.
Originally committed as revision 32051 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: simplify selection of optimizations to compile.
Originally committed as revision 32013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: Always define COMPILE_xxx to either 0 or 1.
Originally committed as revision 32012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: fix unaligned accesses in (RGB|BGR)32_1 to YUV conversion
Originally committed as revision 32011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: remove unused macro parameter in BGR2UV template
Originally committed as revision 32010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
validate input data and linesizes
Originally committed as revision 31976 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add missing comma, fix rgb2yuv_table[SWS_CS_SMPTE240M] coefficients.
Originally committed as revision 31779 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add some comments to the rgb2yuv_table, clarifying the standard whereare defined.
Originally committed as revision 31778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Cosmetics: reindent and unify whitespace
Originally committed as revision 31757 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Do planar copy with a single memcpy only if the stride is equal to the length
This avoids writing outside of the designated rectangle.
Originally committed as revision 31756 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
In planarCopyWrapper, Only copy length, not stride of the last line in the plane
If the destination planes are offset within the destination buffer,writing the extra bytes at the end may write outside of the destinationbuffer.
Originally committed as revision 31746 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add av_ prefix to bswap macros
Originally committed as revision 31679 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fix 'assignment from incompatible pointer type' warning.
Patch by Eli Friedman, eli d friedman a gmail
Originally committed as revision 31628 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
deprecate palette8topacked32 in favor of public API functions sws_convertPalette8ToPacked32 and -24
additionallym deprecate palette8torgb16 and its bgr variant withoutreplacement. These functions are not meant to be used by applications.
Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340...
Remove PI definition and use M_PI instead.
M_PI is defined by the included file libavutil/mathematics.h.
Originally committed as revision 31185 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Revert r31153. It failed to build on:x86_64 / Mac OS X gcc 4.0.1x86_64 / Linux icc (all)x86_64 / Linux gcc 4.0.4x86_64 / OpenBSD gcc 3.3.5x86_64 / Linux suncc 5.10and there are some reports of crashes.
Originally committed as revision 31170 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Use int instead of long to pass width parameters in non-public functions.long was being incorrectly used as an x86-sized register, both for 32 and 64bits, but this is not the case in win64.
Originally committed as revision 31153 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale: Relicense almost all x86 assembler optimizations as LGPL.
This is of course done with permissions from the authors. The only GPLcomponent left are MMX optimizations for YUV to RGB conversion.
Originally committed as revision 30965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
AltiVec implies a PPC CPU, so there is no need to check for both.
Originally committed as revision 30954 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Check whether COMPILE_ALTIVEC is defined, not if it is set to a 0/1 value.COMPILE_ALTIVEC is never set to 1, it is just #defined.
Originally committed as revision 30937 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Extend the generic path of the yuv2rgb converter with support for rgb444output format.
Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl
Originally committed as revision 30934 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fix compilation on powerpc with --disable-altivec
in case altivec is disabled, even compilation of code using altiveckeywords or asm must be avoided.
Originally committed as revision 30869 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Avoid duplication of usePal() macro.
Originally committed as revision 30856 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special converter with support for rgb444 output format.Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl
Originally committed as revision 30841 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Support BGR555, BGR565, RGB555 and RGB565 foreign endian output inlibswscale.
Patch by Alexis Ballier, alexis D ballier A gmail
Originally committed as revision 30840 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fill the r, g, b values used for computing the c->pal_yuv table in thecase where the source format is PIX_FMT_GRAY8.
This is required as PIX_FMT_GRAY8 has been declared as a palettedformat in FFmpeg r22191, fix GRAY8 -> RGB conversion.
Originally committed as revision 30826 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Implement shuffle_bytes_abcd() functions and use them for shufflingbytes when converting between RGB32 variants.
In particular fix the argb -> rgba and abgr -> bgra conversions.
See the thread:Subject: [FFmpeg-devel] [RFC] RGB32 / BGR32 ethernal bugDate: Tue, 26 Jan 2010 01:06:18 +0100...
Reindent.
Originally committed as revision 30467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Use a consistent convention for the names of the internal wrapperfunctions. Improve readability. This line, and those below, will be ignored-
swscale.c
Originally committed as revision 30466 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Use isAnyRGB() where possible
Originally committed as revision 30435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Rename isRGB() and isBGR() as their meaning is confusing.
Originally committed as revision 30433 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fix mis-computation of the needsDither variable erroneously introducedin r30419, which was causing a swscale-example regression.
Also increase my liter count by 20.0 units.
Originally committed as revision 30431 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Use av_get_bits_per_pixel() for computing the bits per pixel of thesource and destination format, cache those values in the newly addedSwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and removethe fmt_depth() function.
Originally committed as revision 30419 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Indent.
Originally committed as revision 30413 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Move array specifiers outside DECLARE_ALIGNED() invocations
Originally committed as revision 30385 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
More const-correctness for sws_scale
Originally committed as revision 30381 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Split overly long line.
Originally committed as revision 30378 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Remove useless forward declaration.
Originally committed as revision 30371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Remove stray '\' at the end of macro definitions.
Originally committed as revision 30362 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Remove duplicated or pointless newlines.
Originally committed as revision 30361 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Factorize error message logging, log it if the converter cannot beset.
Originally committed as revision 30360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Reindent after the last commit.
Originally committed as revision 30359 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Make the pal2rgbWrapper set and use the converter in pal2rgbWrapperonly 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
Remove double const
Originally committed as revision 30357 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Factorize error message logging in rgb2rgbWrapper().
Originally committed as revision 30356 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Reindent
Originally committed as revision 30350 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
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
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
Fix typo, "get rid off" -> "get rid of".
Originally committed as revision 30338 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Factorize the code which calls the non optimized C functions ingetSwsFunc().
Originally committed as revision 30331 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Prefer "to %s%s" over "to%s %s", slightly more readable.
Originally committed as revision 30330 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Simplify code in sws_getContext() which logs if the destination formatsupport dithering, remove the const char *dither variable and use aliteral string instead.
Originally committed as revision 30329 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Factorize code which logs the source and destination formats insws_getContext().
Originally committed as revision 30326 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Simplify reset_ptr(): employ usePal() macro rather than enumeratingall the paletted formats.
Originally committed as revision 30317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Don't initialize normal horizontal filter if MMX2 filter is used.
Originally committed as revision 30313 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Const correctness for src pointer. Remove all constness related warnings inlibswscale.
Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fix typo.
Originally committed as revision 30304 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Remove unused clip_table code.
Originally committed as revision 30303 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add const qualifier to rgb48 to YV12 functions' src.
Originally committed as revision 30301 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add missing parameter to rgb48 to YV12 functions.
Originally committed as revision 30300 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Ignore 0-height slice in sws_scale, otherwise a final 0-height slice willcause libswscale to assume the incorrect slice order and complain aboutslices starting in the middle.
Originally committed as revision 30246 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Implement sws_isSupportedInput() and sws_isSupportedOutput().
Originally committed as revision 30236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Prefer enum PixelFormat over int for the type of the format parameterof getSubSampleFactors().
Originally committed as revision 30184 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for theswscale_configuration() and swscale_license() functions, consistentwith the rest of FFmpeg.
Originally committed as revision 30180 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Simplify usePal() macro, make it use av_pix_fmt_descriptors.
Originally committed as revision 30172 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Simplify getSubSampleFactors(), make it use the values provided byav_pix_fmt_descriptors().
Originally committed as revision 30171 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Indentation.
Originally committed as revision 30087 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Document the differences between the two asm fragments in initMMX2HScaler().
Originally committed as revision 29978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add support for nv12/nv21 input.
Originally committed as revision 29974 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Add functions to return library license and library configuration.
Originally committed as revision 29932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Support VDPAU hardware accelerated decoding of MPEG-4 ASP on capablehardware.
Original patch by NVIDIA corporation.
Originally committed as revision 29885 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Reset slice direction at end of each frame.
Originally committed as revision 29675 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Rename CHECKED_ALLOC(Z) to FF_ALLOC(Z)_OR_GOTO and add context and labelparameters.
Originally committed as revision 29652 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Originally committed as revision 29651 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
Curly brackets cosmetics for previous commit.
Originally committed as revision 29587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Check for return value of initFilter().
Originally committed as revision 29586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: Check for return values of malloc.
Originally committed as revision 29584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Restore comment that was partially removed.
Originally committed as revision 29582 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Check return values of sws_allocVec() and sws_getConstVec().
Originally committed as revision 29543 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Introduce and use sws_allocVec().
Originally committed as revision 29536 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Reuse sws_getConstVec() where possible.
Originally committed as revision 29535 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Cosmetics:- Place curly brackets in the same line as while/for/if/switch/else/do;- Place curly brackets at column 0 in the next line starting a function.
Originally committed as revision 29523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale