Revision a959e247 libswscale/yuv2rgb.c

View differences:

libswscale/yuv2rgb.c
91 91
    dst[12*i+10] = dst[12*i+11] = b[Y];
92 92

  
93 93
#define YUV2RGBFUNC(func_name, dst_type, alpha) \
94
static int func_name(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, \
94
static int func_name(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, \
95 95
                     int srcSliceH, uint8_t* dst[], int dstStride[]) \
96 96
{\
97 97
    int y;\
......
105 105
        dst_type *dst_2 = (dst_type*)(dst[0] + (y+srcSliceY+1)*dstStride[0]);\
106 106
        dst_type av_unused *r, *b;\
107 107
        dst_type *g;\
108
        uint8_t *py_1 = src[0] + y*srcStride[0];\
109
        uint8_t *py_2 = py_1 + srcStride[0];\
110
        uint8_t *pu = src[1] + (y>>1)*srcStride[1];\
111
        uint8_t *pv = src[2] + (y>>1)*srcStride[2];\
112
        uint8_t av_unused *pa_1, *pa_2;\
108
        const uint8_t *py_1 = src[0] + y*srcStride[0];\
109
        const uint8_t *py_2 = py_1 + srcStride[0];\
110
        const uint8_t *pu = src[1] + (y>>1)*srcStride[1];\
111
        const uint8_t *pv = src[2] + (y>>1)*srcStride[2];\
112
        const uint8_t av_unused *pa_1, *pa_2;\
113 113
        unsigned int h_size = c->dstW>>3;\
114 114
        if (alpha) {\
115 115
            pa_1 = src[3] + y*srcStride[3];\

Also available in: Unified diff