| Branch: | Revision:

ffmpeg / libswscale / utils.c @ 95c8bb03

History | View | Annotate | Download (56.8 KB)

# Date Author Comment
3e2523db 03/26/2011 02:24 AM Peter Ross

libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation

e528cdac 03/17/2011 04:26 PM Michael Niedermayer


This reverts commit 29ba091136a5e04574f7bfc1b17536c923958f6f.

0cb88628 03/17/2011 04:26 PM Michael Niedermayer

Revert "use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*"

This reverts commit a03be6e1ba4cbf9984b0bbdb674704bbb2da6713.

a03be6e1 03/16/2011 08:54 PM Janne Grunau


29ba0911 03/16/2011 08:54 PM Janne Grunau


also update the multiple inclusion guards in config.h|mak

9c158e49 10/29/2010 01:48 PM Martin Storsjö

Store src/dstFormat after calling handle_jpeg

handle_jpeg may update the src/dstFormat variables, this makes sure the
updated 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://

12eef0d1 10/03/2010 07:53 AM Reimar Döffinger

100l, fix sws_getCachedContext. It did not set the colorspace details,
but worse it did not set up destination dimensions, thus every user
of it would necessarily fail.

Originally committed as revision 32424 to svn://

f34fcdc8 09/29/2010 10:06 PM Stefano Sabatini

Set default values for the scale context in sws_alloc_context().

Originally committed as revision 32415 to svn://

fc7c40c2 09/29/2010 04:15 PM Stefano Sabatini

Cosmetics: put "if (...)" and "av_log(...)" in the same line for
improving vertical alignment and readability.

Originally committed as revision 32405 to svn://

d29e863e 09/29/2010 01:02 PM Stefano Sabatini

Put if (...) av_log() in the same line, more compact and increase

Originally committed as revision 32404 to svn://

c24b404b 09/29/2010 08:44 AM Stefano Sabatini

Cosmetics: fix braces placement.

Originally committed as revision 32402 to svn://

0810a584 09/28/2010 10:23 PM Stefano Sabatini

Deprecate sws_getContext(), use sws_alloc_context() and
sws_init_context() instead.

Originally committed as revision 32401 to svn://

df0743e0 09/27/2010 10:24 PM Baptiste Coudurier

Y400A (gray alpha) input support in libswscale

Originally committed as revision 32394 to svn://

9f694f0b 09/27/2010 08:10 PM Janne Grunau

swscale: clear SWS_CPU_CAPS_SSE2 in update_flags_cpu() missed in r32068

Originally committed as revision 32393 to svn://

829e5daf 09/27/2010 08:09 PM Janne Grunau

cosmetics: break long line update_flags_cpu

Originally committed as revision 32392 to svn://

635d4aed 09/26/2010 07:33 PM Michael Niedermayer

Split alloc and init of context so that parameters can be set in the context
instead of requireing being passed through function parameters. This also
makes sws work with AVOptions.

Originally committed as revision 32368 to svn://

f4203ff3 09/26/2010 05:06 PM Ramiro Polla

swscale: use full chroma input for point scaler

Originally committed as revision 32360 to svn://

c17f5a4e 09/06/2010 02:42 PM Ramiro Polla

swscale: also update flags on sws_getCachedContext()

Originally committed as revision 32052 to svn://

53bc0dc2 08/19/2010 11:48 PM Grant Carver

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://

262b6dba 07/21/2010 01:29 PM Ramiro Polla

darwin: allow 64-bit darwin to allocate executable memory

darwin requires _DARWIN_C_SOURCE to be defined for MAP_ANON, which is used by
swscale to determine whether to use malloc() or mmap(). 64-bit darwin does not
have an executable heap, so mmap() must be used instead of malloc(), and...

0093ac5b 06/01/2010 11:30 AM Stefano Sabatini

Move internal scale context fields initialization from
sws_setColorspaceDetails() to ff_yuv2rgb_c_init_tables().

Allow to factorize duplicated code.

Originally committed as revision 31300 to svn://

b8dbff33 05/19/2010 10:56 PM Stefano Sabatini

Cosmetics: make more compact the code for handle_jpeg(), this also allows
vertical alignment. Improve readability.

Originally committed as revision 31186 to svn://

4e74187d 05/19/2010 10:49 PM Stefano Sabatini

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://

819ee683 03/27/2010 11:31 AM Diego Biurrun

libswscale: Relicense almost all x86 assembler optimizations as LGPL.

This is of course done with permissions from the authors. The only GPL
component left are MMX optimizations for YUV to RGB conversion.

Originally committed as revision 30965 to svn://

f684f3c5 03/23/2010 10:59 PM Diego Biurrun

AltiVec implies a PPC CPU, so there is no need to check for both.

Originally committed as revision 30954 to svn://

13bc1ac3 03/23/2010 08:12 PM Diego Biurrun

Do not compile AltiVec code when AltiVec is not available; not even in
runtime cpudetection mode.
Fixes compilation with '--enable-runtime-cpudetect --disable-altivec'.

Originally committed as revision 30952 to svn://

22e8222f 03/18/2010 11:02 PM Janusz Krzysztofik

Extend the generic path of the yuv2rgb converter with support for rgb444
output format.

Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl

Originally committed as revision 30934 to svn://

97cda76a 03/08/2010 07:41 PM Reimar Döffinger

Check for allocation failure for c->lumMmx2FilterCode and c->chrMmx2FilterCode.

Originally committed as revision 30864 to svn://

12423f17 03/08/2010 07:37 PM Reimar Döffinger

Fix memleak due to incorrect VirtualFree arguments: size must be 0 for MEM_RELEASE.

Originally committed as revision 30863 to svn://

3de42635 03/06/2010 11:50 AM Stefano Sabatini

Avoid duplication of usePal() macro.

Originally committed as revision 30856 to svn://

627686e6 02/28/2010 02:18 AM Carl Eugen Hoyos

Make sws_dcVec static: It is only used inside libswscale/utils.c.

Originally committed as revision 30787 to svn://

479e1e61 02/25/2010 09:21 PM Stefano Sabatini

Remove pointless empty line.

Originally committed as revision 30730 to svn://

b623d0cb 02/18/2010 09:20 PM Stefano Sabatini

Reindent and fix brace placement.

Originally committed as revision 30643 to svn://

22b6a24c 02/18/2010 09:17 PM Stefano Sabatini

Vertically align a list of comparisons in sws_getCachedContext().

Originally committed as revision 30642 to svn://

5a011d8b 02/18/2010 09:12 PM Stefano Sabatini

Merge two if conditions, allow to decrese the level of indentation of
the block.

Originally committed as revision 30641 to svn://

62bb4ca1 02/05/2010 11:53 PM Stefano Sabatini

Simplify how usesVFilter and usesHFilter are set.

Originally committed as revision 30520 to svn://

af0e6621 01/31/2010 10:16 AM Stefano Sabatini

Declare support for the pixel formats:

in the isSupported{In,Out} macros.

These pixel formats are not true pixel formats but hacks specific to
JPEG in libavcodec. They are deprecated and should be removed (that is...

60222557 01/26/2010 08:03 AM Michael Niedermayer

Use isAnyRGB() where possible

Originally committed as revision 30435 to svn://

3b1ee703 01/26/2010 07:40 AM Michael Niedermayer

Rename isRGB() and isBGR() as their meaning is confusing.

Originally committed as revision 30433 to svn://

7b87519b 01/25/2010 10:46 PM Stefano Sabatini

Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightly
simplify code.

Originally committed as revision 30432 to svn://

f632c454 01/24/2010 05:44 PM Stefano Sabatini

Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.

Originally committed as revision 30425 to svn://

30b61475 01/24/2010 12:55 PM Stefano Sabatini

Use av_get_bits_per_pixel() for computing the bits per pixel of the
source and destination format, cache those values in the newly added
SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove
the fmt_depth() function.

Originally committed as revision 30419 to svn://

2658e7a6 01/24/2010 02:16 AM Ramiro Polla

Don't redefine M_PI. It is already defined from libavutil/mathematics.h.

Originally committed as revision 30412 to svn://

a4388ebd 01/24/2010 02:08 AM Ramiro Polla

Split swscale.c into scaler code (swscale.c) and utility code (utils.c).

Originally committed as revision 30411 to svn://