Revision 5a55d5b5 libswscale/ppc/swscale_altivec_template.c

View differences:

libswscale/ppc/swscale_altivec_template.c
86 86
}
87 87

  
88 88
static inline void
89
yuv2yuvX_altivec_real(const int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
90
                      const int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
89
yuv2yuvX_altivec_real(const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize,
90
                      const int16_t *chrFilter, const int16_t **chrSrc, int chrFilterSize,
91 91
                      uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW)
92 92
{
93 93
    const vector signed int vini = {(1 << 18), (1 << 18), (1 << 18), (1 << 18)};
......
389 389
    }
390 390
}
391 391

  
392
static inline int yv12toyuy2_unscaled_altivec(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
392
static inline int yv12toyuy2_unscaled_altivec(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY,
393 393
                                              int srcSliceH, uint8_t* dstParam[], int dstStride_a[])
394 394
{
395 395
    uint8_t *dst=dstParam[0] + dstStride_a[0]*srcSliceY;
396 396
    // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], srcStride[1], dstStride[0]);
397
    uint8_t *ysrc = src[0];
398
    uint8_t *usrc = src[1];
399
    uint8_t *vsrc = src[2];
397
    const uint8_t *ysrc = src[0];
398
    const uint8_t *usrc = src[1];
399
    const uint8_t *vsrc = src[2];
400 400
    const int width = c->srcW;
401 401
    const int height = srcSliceH;
402 402
    const int lumStride = srcStride[0];
......
467 467
    return srcSliceH;
468 468
}
469 469

  
470
static inline int yv12touyvy_unscaled_altivec(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
470
static inline int yv12touyvy_unscaled_altivec(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY,
471 471
                                              int srcSliceH, uint8_t* dstParam[], int dstStride_a[])
472 472
{
473 473
    uint8_t *dst=dstParam[0] + dstStride_a[0]*srcSliceY;
474 474
    // yv12toyuy2(src[0], src[1], src[2], dst, c->srcW, srcSliceH, srcStride[0], srcStride[1], dstStride[0]);
475
    uint8_t *ysrc = src[0];
476
    uint8_t *usrc = src[1];
477
    uint8_t *vsrc = src[2];
475
    const uint8_t *ysrc = src[0];
476
    const uint8_t *usrc = src[1];
477
    const uint8_t *vsrc = src[2];
478 478
    const int width = c->srcW;
479 479
    const int height = srcSliceH;
480 480
    const int lumStride = srcStride[0];

Also available in: Unified diff