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: move away x86 specific code from rgb2rgb
Keep only the plain C code in the main rgb2rgb.c and move the x86specific optimizations to x86/rgb2rgb.cChange the initialization pattern a little so some of it can befactorized to behave more like dsputils.
swscale: Factorize FAST_BGR2YV12 definition.
It is used only for x86 so it will eventually be moved with that codeinto the x86 arch subdirectory.
Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().
When HAVE_7REGS was not defined these functions had an empty bodycausing the following warnings during compilation.In file included from libswscale/x86/yuv2rgb_mmx.c:58:libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:...
swscale: postpone sws_getContext removal until next major bump.
The replacement isn't ready yet.
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
also update the multiple inclusion guards in config.h|mak
Merge libavcore into libavutil
It is pretty hopeless that other considerable projects will adoptlibavutil alone in other projects. Projects that need small footprintare better off with more specialized libraries such as gnulib or ratherjust copy the necessary parts that they need. With this in mind, nobody...
Fix MMX rgb24 to yuv conversion with gcc 4.6
When built with gcc 4.6, the MMX rgb24 to yuv conversion giveswrong output. The compiler produces this warning:
libswscale/swscale_template.c:1885:5: warning: use of memory input without lvalue in asm operand 4 is deprecated...
Remove a few if (p) av_freep(&p) forms
Replace ASMALIGN with .p2align
This macro has unconditionally used .p2align for a long time andserves no useful purpose.
consolidate .gitignore patters into a single file
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
convert svn:ignore properties to .gitignore files
colorspace-test: fix build
rgb32tobgr32() has been removed in favour of shuffle_bytes_2103() in r32190
Originally committed as revision 32676 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Store src/dstFormat after calling handle_jpeg
handle_jpeg may update the src/dstFormat variables, this makes sure theupdated version is stored in the context.
This fixes roundup issue 2302.
Patch by Troot, all_crap_goes_here at hotmail
Originally committed as revision 32562 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
100l, fix sws_getCachedContext. It did not set the colorspace details,but worse it did not set up destination dimensions, thus every userof it would necessarily fail.
Originally committed as revision 32424 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Set default values for the scale context in sws_alloc_context().
Originally committed as revision 32415 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Set the default value of param0 and param1 to SWS_PARAM_DEFAULT.
Originally committed as revision 32414 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Set valid default values for the srcw, srch, dstw, dsth options in thescale context. Prevent pointless warnings when usingav_opt_set_defaults() for setting the default values, as in a pendingpatch.
Originally committed as revision 32413 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Cosmetics: put "if (...)" and "av_log(...)" in the same line forimproving vertical alignment and readability.
Originally committed as revision 32405 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Put if (...) av_log() in the same line, more compact and increasereadibility.
Originally committed as revision 32404 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Amend constraints for the src_format and dst_format options in theSWScale context.
Originally committed as revision 32403 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Cosmetics: fix braces placement.
Originally committed as revision 32402 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Deprecate sws_getContext(), use sws_alloc_context() andsws_init_context() instead.
Originally committed as revision 32401 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add documentation for the returned value of sws_init_context().
Originally committed as revision 32400 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Bump minor version after the addition of sws_alloc_context() andsws_init_context() of r32368.
Originally committed as revision 32396 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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: clear SWS_CPU_CAPS_SSE2 in update_flags_cpu() missed in r32068
Originally committed as revision 32393 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
cosmetics: break long line update_flags_cpu
Originally committed as revision 32392 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
fix typos and grammar
Originally committed as revision 32370 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Make the avoptions list of sws more complete.
Originally committed as revision 32369 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Split alloc and init of context so that parameters can be set in the contextinstead of requireing being passed through function parameters. This alsomakes sws work with AVOptions.
Originally committed as revision 32368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: use full chroma input for point scaler
Originally committed as revision 32360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: cosmetic alignment
Originally committed as revision 32265 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
swscale-test: always use bilinear scaler to get output for SSD
Originally committed as revision 32256 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
rgb2rgb: don't misuse HAVE_* defines
Introduce and use COMPILE_TEMPLATE_* instead.
Originally committed as revision 32241 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: indentation and emtpy line cosmetics
Originally committed as revision 32222 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: avoid reading prior to the source buffer in planar2x() MMX2
Originally committed as revision 32221 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: allow specifying src/dst pixel formats
Originally committed as revision 32215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
indent
Originally committed as revision 32214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: take input from reference file
If the CRC from the src->dst conversion matches a reference, it is notnecessary to perform a dst->yuva420p conversion and check the SSD.
Originally committed as revision 32213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: always use SWS_BILINEAR to convert from ref to src
Originally committed as revision 32212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: move conversion from ref to source back to doTest()
The source format parameters are kept in static variables and conversion fromref to source is only made when any parameter changes.
Originally committed as revision 32211 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
rgb2rgb: replace shuffle_bytes_2103() by optimized rgb32tobgr32()
Originally committed as revision 32190 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
rgb2rgb: remove unused yvu9toyv12 function
Originally committed as revision 32155 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
av_fill_image_linesizes -> av_image_fill_linesizes
Originally committed as revision 32106 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
rgb2rgb: build SSE2 codepath
Originally committed as revision 32068 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale: also update flags on sws_getCachedContext()
Originally committed as revision 32052 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
Fix mlib compilation: add mising include for SwsContext.Patch by [vle gmx net].
Originally committed as revision 32050 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
fix anonymous memory mapping for NetBSD
mmap() with MAP_ANONYMOUS requires the file descriptor to be -1 in NetBSD.Linux just ignores this parameter.
Patch by Grant Carver <grantc at cat dot co dot za>
Originally committed as revision 31984 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: add CRC output
Originally committed as revision 31982 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
Originally committed as revision 31949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: get strides using av_fill_image_linesizes() from libavcore
Originally committed as revision 31948 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: merge declaration and initialization
Originally committed as revision 31879 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Revert commit: r31772 | stefano | 2010-07-23 01:01:31 +0200 (Fri, 23 Jul 2010) | 2 lines
Prefer impersonal form over third person, for consistency with the rest of FFmpeg.
The change was not approved by the maintainer.
Originally committed as revision 31847 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Fix compilation, forgot to add const also to thedefinition of ff_yuv2packedX_altivec
Originally committed as revision 31782 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
More const-correctness fixes to avoid warnings.
Originally committed as revision 31781 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add some "const" to avoid incompatible pointer type warnings
Originally committed as revision 31780 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
swscale-test: scale from reference to source only once for each algorithm
Originally committed as revision 31777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Originally committed as revision 31776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: change order tests are run, maintaining the same algorithm forsequential geometries instead of running all algorithms sequentially for eachgeometry.
Originally committed as revision 31775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Prefer impersonal form over third person, for consistency with therest of FFmpeg.
Originally committed as revision 31772 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: use only 3 characters to print width/height since they're alwayssmaller than 1000
Originally committed as revision 31771 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: print test name before running test, so that it's available inthe output even if the test crashes.
Originally committed as revision 31770 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
swscale-test: allocate more memory to prevent scalers from writing out of bounds
Some converters (ie. unscaled rgb24 -> argb) may write some bytes out ofbounds. Ideally the converters should be fixed, but in the meantime we allocatemore memory to prevent heap corruption....
darwin: allow 64-bit darwin to allocate executable memory
darwin requires _DARWIN_C_SOURCE to be defined for MAP_ANON, which is used byswscale to determine whether to use malloc() or mmap(). 64-bit darwin does nothave an executable heap, so mmap() must be used instead of malloc(), and...
swscale-test: use av_pix_fmt_descriptors[].name directly
Originally committed as revision 31759 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Restore vertical alignment in some defines
Originally committed as revision 31758 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
Another try at fixing swscale on win64, as per r31153.
Don't change paramater passing, but instead use casts.Shouldn't affect asm output on anything other than win64.libswscale should work on win64 now.The rest of ffmpeg still isn't win64 compatible due to the issue of xmm...
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
Change the type of Y table to pointer to void in fill_table().This fixes warnings about wrong type being used, e.g.:libswscale/yuv2rgb.c: In function ‘ff_yuv2rgb_c_init_tables’:libswscale/yuv2rgb.c:778: warning: passing argument 4 of ‘fill_table’ from incompatible pointer type...
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...
Move internal scale context fields initialization fromsws_setColorspaceDetails() to ff_yuv2rgb_c_init_tables().
Allow to factorize duplicated code.
Originally committed as revision 31300 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
remove palette8torgb15 and palette8tobgr15
They contain exactly the same code as their 16bit variants, so this iseffectively code de-duplication.
Originally committed as revision 31298 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Rename yuv2rgb_template2.c --> yuv2rgb_template.c now that the other is gone.
Originally committed as revision 31279 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Remove GPL-licensed YUV to RGB MMX routines.We now have an LGPL replacement that is at least equally fast.
Originally committed as revision 31278 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Add empty newline to separate function declarations, for betterreadability.
Originally committed as revision 31192 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Cosmetics: make more compact the code for handle_jpeg(), this also allowsvertical alignment. Improve readability.
Originally committed as revision 31186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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
13% faster yuv420 to rgb15 mmx.It is now faster than the old gpl version on conroe.
Originally committed as revision 31181 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale