mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
Fix compilation with runtime cpu detection.
All functions in swscale_template.c should be declared with the RENAME macro. Originally committed as revision 29976 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
6e4f40e1f4
commit
e470691aa8
@ -1818,14 +1818,14 @@ static inline void RENAME(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void nv12ToUV(uint8_t *dstU, uint8_t *dstV,
|
static inline void RENAME(nv12ToUV)(uint8_t *dstU, uint8_t *dstV,
|
||||||
const uint8_t *src1, const uint8_t *src2,
|
const uint8_t *src1, const uint8_t *src2,
|
||||||
long width, uint32_t *unused)
|
long width, uint32_t *unused)
|
||||||
{
|
{
|
||||||
RENAME(nvXXtoUV)(dstU, dstV, src1, width);
|
RENAME(nvXXtoUV)(dstU, dstV, src1, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void nv21ToUV(uint8_t *dstU, uint8_t *dstV,
|
static inline void RENAME(nv21ToUV)(uint8_t *dstU, uint8_t *dstV,
|
||||||
const uint8_t *src1, const uint8_t *src2,
|
const uint8_t *src1, const uint8_t *src2,
|
||||||
long width, uint32_t *unused)
|
long width, uint32_t *unused)
|
||||||
{
|
{
|
||||||
@ -2962,8 +2962,8 @@ static void RENAME(sws_init_swScale)(SwsContext *c)
|
|||||||
switch(srcFormat) {
|
switch(srcFormat) {
|
||||||
case PIX_FMT_YUYV422 : c->hcscale_internal = RENAME(yuy2ToUV); break;
|
case PIX_FMT_YUYV422 : c->hcscale_internal = RENAME(yuy2ToUV); break;
|
||||||
case PIX_FMT_UYVY422 : c->hcscale_internal = RENAME(uyvyToUV); break;
|
case PIX_FMT_UYVY422 : c->hcscale_internal = RENAME(uyvyToUV); break;
|
||||||
case PIX_FMT_NV12 : c->hcscale_internal = nv12ToUV; break;
|
case PIX_FMT_NV12 : c->hcscale_internal = RENAME(nv12ToUV); break;
|
||||||
case PIX_FMT_NV21 : c->hcscale_internal = nv21ToUV; break;
|
case PIX_FMT_NV21 : c->hcscale_internal = RENAME(nv21ToUV); break;
|
||||||
case PIX_FMT_RGB8 :
|
case PIX_FMT_RGB8 :
|
||||||
case PIX_FMT_BGR8 :
|
case PIX_FMT_BGR8 :
|
||||||
case PIX_FMT_PAL8 :
|
case PIX_FMT_PAL8 :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user