Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 27701:5916162c1bd3
Change variable types from int to enum PixelFormat.
Fixes icc warning #188: enumerated type mixed with another type
author | cehoyos |
---|---|
date | Thu, 09 Oct 2008 08:36:04 +0000 |
parents | 31a477d77c57 |
children | e7527860105b |
comparison
equal
deleted
inserted
replaced
27700:e65738d7dd3b | 27701:5916162c1bd3 |
---|---|
1714 return srcSliceH; | 1714 return srcSliceH; |
1715 } | 1715 } |
1716 | 1716 |
1717 static int pal2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, | 1717 static int pal2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, |
1718 int srcSliceH, uint8_t* dst[], int dstStride[]){ | 1718 int srcSliceH, uint8_t* dst[], int dstStride[]){ |
1719 const int srcFormat= c->srcFormat; | 1719 const enum PixelFormat srcFormat= c->srcFormat; |
1720 const int dstFormat= c->dstFormat; | 1720 const enum PixelFormat dstFormat= c->dstFormat; |
1721 void (*conv)(const uint8_t *src, uint8_t *dst, long num_pixels, | 1721 void (*conv)(const uint8_t *src, uint8_t *dst, long num_pixels, |
1722 const uint8_t *palette)=NULL; | 1722 const uint8_t *palette)=NULL; |
1723 int i; | 1723 int i; |
1724 uint8_t *dstPtr= dst[0] + dstStride[0]*srcSliceY; | 1724 uint8_t *dstPtr= dst[0] + dstStride[0]*srcSliceY; |
1725 uint8_t *srcPtr= src[0]; | 1725 uint8_t *srcPtr= src[0]; |