}
/*
- slice lines contains extra bytes for vetorial code thus @size
+ slice lines contains extra bytes for vectorial code thus @size
is the allocated memory size and @width is the number of pixels
*/
static int alloc_lines(SwsSlice *s, int size, int width)
int i = 0;
const int start[4] = {lumY,
- chrY,
- chrY,
- lumY};
+ chrY,
+ chrY,
+ lumY};
const int end[4] = {lumY +lumH,
chrY + chrH,
lumY + lumH};
const uint8_t *src_[4] = {src[0] + (relative ? 0 : start[0]) * stride[0],
- src[1] + (relative ? 0 : start[1]) * stride[0],
- src[2] + (relative ? 0 : start[2]) * stride[0],
- src[3] + (relative ? 0 : start[3]) * stride[0]};
+ src[1] + (relative ? 0 : start[1]) * stride[1],
+ src[2] + (relative ? 0 : start[2]) * stride[2],
+ src[3] + (relative ? 0 : start[3]) * stride[3]};
s->width = srcW;