summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_internal.h
Commit message (Collapse)AuthorAgeFilesLines
* Avoid duplication of usePal() macro.stefano2010-03-061-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30856 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support to BGR444/RGB444 foreign endian output in libswscale.stefano2010-03-061-2/+4
| | | | | | Patch by Janusz Krzysztofik |jkrzyszt ^ tis icnet pl|. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30855 b3059339-0415-0410-9bf9-f77b7e298cf2
* libswscale: Extend the unaccelerated path of the unscaled yuv2rgb specialbenoit2010-03-051-0/+2
| | | | | | | | converter with support for rgb444 output format. Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30841 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support BGR555, BGR565, RGB555 and RGB565 foreign endian output incehoyos2010-03-041-4/+8
| | | | | | | | | libswscale. Patch by Alexis Ballier, alexis D ballier A gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30840 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.michael2010-01-261-0/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30434 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename isRGB() and isBGR() as their meaning is confusing.michael2010-01-261-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30433 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use av_get_bits_per_pixel() for computing the bits per pixel of thestefano2010-01-241-38/+2
| | | | | | | | | 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
* Split swscale.c into scaler code (swscale.c) and utility code (utils.c).ramiro2010-01-241-0/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30411 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move array specifiers outside DECLARE_ALIGNED() invocationsmru2010-01-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30385 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document some more of SwsContext.ramiro2010-01-201-26/+54
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30380 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefer enum PixelFormat to int as the parameter type ofstefano2010-01-161-1/+1
| | | | | | | fmt_depth(fmt). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30333 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document some of SwsContext.ramiro2010-01-161-11/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30328 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.ramiro2010-01-161-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30327 b3059339-0415-0410-9bf9-f77b7e298cf2
* Const correctness for src pointer. Remove all constness related warnings inzuxy2010-01-151-1/+1
| | | | | | | libswscale. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.ramiro2009-12-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30098 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename function pointers used to convert from the input pixel format to theramiro2009-12-211-7/+7
| | | | | | | intermediate YV12 to a more descriptive name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30097 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check if chroma horizontal scaler is needed in sws_init_swScale().ramiro2009-12-211-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30096 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused fields from SwsContext.ramiro2009-12-211-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30095 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indentation.ramiro2009-12-201-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30087 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set horizontal scaler's range conversion in context in sws_init_swScale().ramiro2009-12-201-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30082 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set horizontal scaler's src offsets in context in sws_init_swScale().ramiro2009-12-201-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30081 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().ramiro2009-09-051-12/+12
| | | | | | Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29650 b3059339-0415-0410-9bf9-f77b7e298cf2
* More indentation changes leftover from r29522:ramiro2009-08-161-32/+32
| | | | | | | | - Align asm code to the column 4 spaces after the call to __asm__(); - Align cases in switch statements to the same column as "switch". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics:ramiro2009-08-161-1/+1
| | | | | | | - 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 horizontal scaler: Determine code size at runtime.ramiro2009-08-131-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29510 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename "funny" code to "mmx2 filter" code.ramiro2009-08-131-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29507 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANmru2009-07-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29439 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables.ramiro2009-07-211-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove dependency from swscale_internal.h to lavu/internal.h, it is no longerramiro2009-07-091-1/+0
| | | | | | | | | | | | needed for DECLARE_ALIGNED. Remove dependency from swscale-example.c to swscale_internal.h by duplicating the necessary code. The duplicated code is a hack and should be removed once a cleaner pixel format information system exists. swscale-example.c is example code on how to use the library and therefore shouldn't rely on internal headers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29415 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use enum PixelFormat in sws_format_name() prototypemru2009-07-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29409 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.diego2009-06-111-0/+1
| | | | | | | This fixes swscale-example compilation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29353 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ALIGNED macro instead of gcc __attribute__.ramiro2009-06-041-29/+29
| | | | | | Patch by Pavel Pavlov <pavel at summit-tech dot ca> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29348 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partial (low bits ignored, no direct transcoding into other RGB formats) supportkostya2009-06-021-1/+3
| | | | | | | | for inputting RGB48BE/LE. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let SwScaler know that RGB48 BE/LE is 16-bits per component format.kostya2009-05-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29317 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).kostya2009-05-191-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing const qualifiers to AltiVec function parameters where appropriate.diego2009-05-091-2/+2
| | | | | | | Fixes a couple of 'discards qualifiers from pointer target type' warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change VOFW for x86 to 5120, it allows larger images to be scaled and wasmichael2009-05-051-1/+6
| | | | | | | not slower. Other archs are not changed as the larger VOFW was slower on PPC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29256 b3059339-0415-0410-9bf9-f77b7e298cf2
* Planar 16bit 420 422 444 YUV support (output is only supported in somemichael2009-04-211-1/+16
| | | | | | | | | unscaled convertions). This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome, we should preserve more bits. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29217 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add macro to check for 16bit per sample.michael2009-04-211-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29215 b3059339-0415-0410-9bf9-f77b7e298cf2
* add isBE()michael2009-04-201-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29212 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use abgrToA for both luma and alpha channel in hyscale.sdrik2009-04-141-0/+2
| | | | | | This fixes RGB32 (et al.) scaling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29179 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Reindent a few lines and break a few excessively long ↵diego2009-04-121-12/+15
| | | | | | lines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29174 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Use function pointers for swScale functions.ramiro2009-04-041-0/+51
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29145 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move bfin specific code to its subdir.ramiro2009-03-271-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move yuv2rgb code to subdirs.ramiro2009-03-261-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29063 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add alpha channel scalingsdrik2009-03-201-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29011 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use ff_ prefixes for internal symbols.diego2009-03-181-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28988 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUVA420P is a planar YUV formatsdrik2009-03-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28867 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add an isALPHA macro to check if pixel format has alpha channelsdrik2009-02-271-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28747 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop DECLARE_ALIGNED from extern declarations. It creates trouble whendiego2009-02-091-2/+2
| | | | | | | swscale_internal.h is #included without HAVE_AV_CONFIG_H defined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28498 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefix visible YUV2RGB functions with sws_kostya2009-02-091-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28496 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declare struct SwsContext before using it, fixes the checkheaders warning:diego2009-01-251-0/+2
| | | | | | | | libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28353 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.aurel2009-01-141-5/+5
| | | | | | | They are now always defined to either 0 or 1. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28311 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a new unscaled PAL8 -> RGB converter.vitor2008-10-081-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27730 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change variable types from int to enum PixelFormat.cehoyos2008-10-071-1/+1
| | | | | | | Fixes icc warning #188: enumerated type mixed with another type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27727 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.michael2008-09-131-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27599 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for PIX_FMT_MONOWHITE as output format.michael2008-09-121-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27586 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100000000000000l, forgot to commit header change for r27580.michael2008-09-111-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27583 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo in comment.michael2008-09-081-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27546 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix accurate rounding mode on x86_64.michael2008-09-071-0/+12
| | | | | | | Fixes issue222. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27545 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.michael2008-09-041-0/+8
| | | | | | | Fixes issue248. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove workaround for rgb/bgr mess.michael2008-09-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27520 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change header inclusion guard names in line with FFmpeg r15120.stefano2008-08-311-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split AVOption/AVClass in a separate file. SoC Patch from Keiji Costantinilu_zero2008-07-091-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27244 b3059339-0415-0410-9bf9-f77b7e298cf2
* spelling/grammar/wording overhauldiego2008-07-041-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use full path for #includes from another directory.diego2008-05-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26702 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make av_class a pointer to const.benoit2008-03-101-1/+1
| | | | | | | Patch by Takis. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26210 b3059339-0415-0410-9bf9-f77b7e298cf2
* define VOF as double of VOFW.benoit2008-03-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26209 b3059339-0415-0410-9bf9-f77b7e298cf2
* change sws_format_name to return const char*, supress many warningsbcoudurier2008-03-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26183 b3059339-0415-0410-9bf9-f77b7e298cf2
* Turn ancient V offset numerical constants into named ones.michael2008-03-051-1/+4
| | | | | | | | Add a check that checks that the width is within the chosen constant. This might have been exploitable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26165 b3059339-0415-0410-9bf9-f77b7e298cf2
* Discard two symbols from libswscale.cehoyos2008-02-221-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
* comment typo fixesdiego2007-12-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25485 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing declarations for AltiVec functions, fixes the warnings:diego2007-12-081-0/+7
| | | | | | | | | swscale_template.c:1171: warning: implicit declaration of function ‘altivec_yuv2packedX’ swscale.c:1982: warning: implicit declaration of function ‘yuv2rgb_altivec_init_tables’ yuv2rgb.c:652: warning: implicit declaration of function ‘yuv2rgb_init_altivec’ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25319 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 'make checkheaders' on AltiVec-enabled systems.diego2007-12-071-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25316 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add FFMPEG_ prefix to all multiple inclusion guards.diego2007-10-181-3/+3