Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 30332:b4c3e12c9a08
Make const prototypes for input sources of sws_scale_* stricter.
Patch by Alexis Ballier gmailify($firstname, $familyname)
author | benoit |
---|---|
date | Tue, 19 Jan 2010 16:30:20 +0000 |
parents | 2c0866c165ef |
children | 33e5899ad14d |
comparison
equal
deleted
inserted
replaced
30331:4398e647c2ea | 30332:b4c3e12c9a08 |
---|---|
2924 | 2924 |
2925 /** | 2925 /** |
2926 * swscale wrapper, so we don't need to export the SwsContext. | 2926 * swscale wrapper, so we don't need to export the SwsContext. |
2927 * Assumes planar YUV to be in YUV order instead of YVU. | 2927 * Assumes planar YUV to be in YUV order instead of YVU. |
2928 */ | 2928 */ |
2929 int sws_scale(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, | 2929 int sws_scale(SwsContext *c, const uint8_t* const src[], int srcStride[], int srcSliceY, |
2930 int srcSliceH, uint8_t* dst[], int dstStride[]) | 2930 int srcSliceH, uint8_t* dst[], int dstStride[]) |
2931 { | 2931 { |
2932 int i; | 2932 int i; |
2933 const uint8_t* src2[4]= {src[0], src[1], src[2], src[3]}; | 2933 const uint8_t* src2[4]= {src[0], src[1], src[2], src[3]}; |
2934 uint8_t* dst2[4]= {dst[0], dst[1], dst[2], dst[3]}; | 2934 uint8_t* dst2[4]= {dst[0], dst[1], dst[2], dst[3]}; |
3044 return c->swScale(c, src2, srcStride2, c->srcH-srcSliceY-srcSliceH, srcSliceH, dst2, dstStride2); | 3044 return c->swScale(c, src2, srcStride2, c->srcH-srcSliceY-srcSliceH, srcSliceH, dst2, dstStride2); |
3045 } | 3045 } |
3046 } | 3046 } |
3047 | 3047 |
3048 #if LIBSWSCALE_VERSION_MAJOR < 1 | 3048 #if LIBSWSCALE_VERSION_MAJOR < 1 |
3049 int sws_scale_ordered(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, | 3049 int sws_scale_ordered(SwsContext *c, const uint8_t* const src[], int srcStride[], int srcSliceY, |
3050 int srcSliceH, uint8_t* dst[], int dstStride[]) | 3050 int srcSliceH, uint8_t* dst[], int dstStride[]) |
3051 { | 3051 { |
3052 return sws_scale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride); | 3052 return sws_scale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride); |
3053 } | 3053 } |
3054 #endif | 3054 #endif |