Mercurial > mplayer.hg
comparison postproc/swscale_template.c @ 9476:eff727517e6b
yuv2rgb brightness/contrast/saturation/different colorspaces support finished
yuv2rgb deglobalize
yuv2rgb optimizations / cleanup
bugs?
author | michael |
---|---|
date | Fri, 21 Feb 2003 20:35:18 +0000 |
parents | d2da6447daac |
children | 543ab3909b78 |
comparison
equal
deleted
inserted
replaced
9475:6d4d66421b29 | 9476:eff727517e6b |
---|---|
1 /* | 1 /* |
2 Copyright (C) 2001-2002 Michael Niedermayer <michaelni@gmx.at> | 2 Copyright (C) 2001-2003 Michael Niedermayer <michaelni@gmx.at> |
3 | 3 |
4 This program is free software; you can redistribute it and/or modify | 4 This program is free software; you can redistribute it and/or modify |
5 it under the terms of the GNU General Public License as published by | 5 it under the terms of the GNU General Public License as published by |
6 the Free Software Foundation; either version 2 of the License, or | 6 the Free Software Foundation; either version 2 of the License, or |
7 (at your option) any later version. | 7 (at your option) any later version. |
739 | 739 |
740 static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, | 740 static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, |
741 int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, | 741 int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, |
742 uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) | 742 uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) |
743 { | 743 { |
744 int dummy=0; | |
745 #ifdef HAVE_MMX | 744 #ifdef HAVE_MMX |
746 if(uDest != NULL) | 745 if(uDest != NULL) |
747 { | 746 { |
748 asm volatile( | 747 asm volatile( |
749 YSCALEYUV2YV12X(0, CHR_MMX_FILTER_OFFSET) | 748 YSCALEYUV2YV12X(0, CHR_MMX_FILTER_OFFSET) |
2551 int srcStride[3]; | 2550 int srcStride[3]; |
2552 int dstStride[3]; | 2551 int dstStride[3]; |
2553 uint8_t *src[3]; | 2552 uint8_t *src[3]; |
2554 uint8_t *dst[3]; | 2553 uint8_t *dst[3]; |
2555 | 2554 |
2556 orderYUV(c->srcFormat, src, srcStride, srcParam, srcStrideParam); | 2555 sws_orderYUV(c->srcFormat, src, srcStride, srcParam, srcStrideParam); |
2557 orderYUV(c->dstFormat, dst, dstStride, dstParam, dstStrideParam); | 2556 sws_orderYUV(c->dstFormat, dst, dstStride, dstParam, dstStrideParam); |
2558 | 2557 |
2559 if(isPacked(c->srcFormat)){ | 2558 if(isPacked(c->srcFormat)){ |
2560 src[0]= | 2559 src[0]= |
2561 src[1]= | 2560 src[1]= |
2562 src[2]= srcParam[0]; | 2561 src[2]= srcParam[0]; |