summaryrefslogtreecommitdiff
path: root/libswscale/rgb2rgb_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-25 20:49:52 +0200
committerDiego Biurrun <diego@biurrun.de>2011-05-26 00:56:06 +0200
commit7dc303a60ef7205d88a11ddbcb251f3237a3945e (patch)
tree0f3e736869148829aed51852766a949d2e26ca75 /libswscale/rgb2rgb_template.c
parent8c51620f219db0f408d2833c3e5d56cedaf0d95a (diff)
swscale: Eliminate rgb24toyv12_c() duplication.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libswscale/rgb2rgb_template.c')
-rw-r--r--libswscale/rgb2rgb_template.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c
index ea39be4f13..fed7e5e195 100644
--- a/libswscale/rgb2rgb_template.c
+++ b/libswscale/rgb2rgb_template.c
@@ -633,11 +633,9 @@ static inline void uyvytoyv12_c(const uint8_t *src, uint8_t *ydst,
* others are ignored in the C version.
* FIXME: Write HQ version.
*/
-static inline void rgb24toyv12_c(const uint8_t *src, uint8_t *ydst,
- uint8_t *udst, uint8_t *vdst,
- long width, long height,
- long lumStride, long chromStride,
- long srcStride)
+void rgb24toyv12_c(const uint8_t *src, uint8_t *ydst, uint8_t *udst,
+ uint8_t *vdst, long width, long height, long lumStride,
+ long chromStride, long srcStride)
{
long y;
const int chromWidth = width >> 1;