Commit Graph

17 Commits

Author SHA1 Message Date
reimar f6f655549b Check for allocation failure for c->lumMmx2FilterCode and c->chrMmx2FilterCode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30864 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:41:57 +00:00
reimar 4bd0c66548 Fix memleak due to incorrect VirtualFree arguments: size must be 0 for MEM_RELEASE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30863 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:37:10 +00:00
stefano 5f43c89d8b Avoid duplication of usePal() macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30856 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 11:50:54 +00:00
cehoyos ba66200023 Make sws_dcVec static: It is only used inside libswscale/utils.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30787 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-28 02:18:16 +00:00
stefano 150de6566f Remove pointless empty line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30730 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 21:21:29 +00:00
stefano 2aafb80828 Reindent and fix brace placement.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30643 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 21:20:37 +00:00
stefano 8090adeed3 Vertically align a list of comparisons in sws_getCachedContext().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30642 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 21:17:07 +00:00
stefano b07bf5bddc Merge two if conditions, allow to decrese the level of indentation of
the block.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30641 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-18 21:12:05 +00:00
stefano 83a3ca618f Simplify how usesVFilter and usesHFilter are set.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30520 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-05 23:53:25 +00:00
stefano 3949328e2c Declare support for the pixel formats:
PIX_FMT_YUVJ420P
PIX_FMT_YUVJ422P
PIX_FMT_YUVJ440P
PIX_FMT_YUVJ444P

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
from libavcodec first and libswscale second)...  but they must be
tested by swscale-test.

See thread:
Subject: [FFmpeg-devel] [PATCH] Extend show_pix_fmts() to make it print the input/output support
Date: 2010-01-30 15:54:08 GMT


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30474 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-31 10:16:05 +00:00
michael 156399b7aa Use isAnyRGB() where possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30435 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-26 08:03:28 +00:00
michael 378e6bf192 Rename isRGB() and isBGR() as their meaning is confusing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30433 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-26 07:40:14 +00:00
stefano 2cded4ef2c Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightly
simplify code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30432 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-25 22:46:09 +00:00
stefano 2e0a4996e3 Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30425 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 17:44:43 +00:00
stefano 213092c8dc 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30419 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 12:55:05 +00:00
ramiro 0ae7ed631b Don't redefine M_PI. It is already defined from libavutil/mathematics.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30412 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 02:16:26 +00:00
ramiro d9f2d9d62c Split swscale.c into scaler code (swscale.c) and utility code (utils.c).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30411 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 02:08:22 +00:00