mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-12 10:25:32 +02:00
cleanup
Originally committed as revision 6521 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
c7a810cc25
commit
3f7bb50cdd
@ -102,8 +102,6 @@ untested special converters
|
|||||||
//FIXME replace this with something faster
|
//FIXME replace this with something faster
|
||||||
#define isPlanarYUV(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 || (x)==IMGFMT_YVU9)
|
#define isPlanarYUV(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 || (x)==IMGFMT_YVU9)
|
||||||
#define isYUV(x) ((x)==IMGFMT_YUY2 || isPlanarYUV(x))
|
#define isYUV(x) ((x)==IMGFMT_YUY2 || isPlanarYUV(x))
|
||||||
#define isHalfChrV(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420)
|
|
||||||
#define isHalfChrH(x) ((x)==IMGFMT_YUY2 || (x)==IMGFMT_YV12 || (x)==IMGFMT_I420)
|
|
||||||
#define isGray(x) ((x)==IMGFMT_Y800)
|
#define isGray(x) ((x)==IMGFMT_Y800)
|
||||||
#define isSupportedIn(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 || (x)==IMGFMT_YUY2 \
|
#define isSupportedIn(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 || (x)==IMGFMT_YUY2 \
|
||||||
|| (x)==IMGFMT_BGR32|| (x)==IMGFMT_BGR24|| (x)==IMGFMT_BGR16|| (x)==IMGFMT_BGR15\
|
|| (x)==IMGFMT_BGR32|| (x)==IMGFMT_BGR24|| (x)==IMGFMT_BGR16|| (x)==IMGFMT_BGR15\
|
||||||
|
@ -2709,9 +2709,9 @@ i--;
|
|||||||
|
|
||||||
for(;dstY < dstH; dstY++){
|
for(;dstY < dstH; dstY++){
|
||||||
unsigned char *dest =dst[0]+dstStride[0]*dstY;
|
unsigned char *dest =dst[0]+dstStride[0]*dstY;
|
||||||
unsigned char *uDest=dst[1]+dstStride[1]*(dstY>>1);
|
const int chrDstY= dstY>>c->chrDstVSubSample;
|
||||||
unsigned char *vDest=dst[2]+dstStride[2]*(dstY>>1);
|
unsigned char *uDest=dst[1]+dstStride[1]*chrDstY;
|
||||||
const int chrDstY= isHalfChrV(dstFormat) ? (dstY>>1) : dstY;
|
unsigned char *vDest=dst[2]+dstStride[2]*chrDstY;
|
||||||
|
|
||||||
const int firstLumSrcY= vLumFilterPos[dstY]; //First line needed as input
|
const int firstLumSrcY= vLumFilterPos[dstY]; //First line needed as input
|
||||||
const int firstChrSrcY= vChrFilterPos[chrDstY]; //First line needed as input
|
const int firstChrSrcY= vChrFilterPos[chrDstY]; //First line needed as input
|
||||||
|
Loading…
Reference in New Issue
Block a user