Revision 475f3613

View differences:

libswscale/swscale-example.c
141 141
    ssdY= getSSD(ref[0], out[0], refStride[0], refStride[0], w, h);
142 142
    if (!isGray(srcFormat) && !isGray(dstFormat)) {
143 143
        //FIXME check that output is really gray
144
    ssdU= getSSD(ref[1], out[1], refStride[1], refStride[1], (w+1)>>1, (h+1)>>1);
145
    ssdV= getSSD(ref[2], out[2], refStride[2], refStride[2], (w+1)>>1, (h+1)>>1);
144
        ssdU= getSSD(ref[1], out[1], refStride[1], refStride[1], (w+1)>>1, (h+1)>>1);
145
        ssdV= getSSD(ref[2], out[2], refStride[2], refStride[2], (w+1)>>1, (h+1)>>1);
146 146
    }
147 147
    if (isALPHA(srcFormat) && isALPHA(dstFormat))
148 148
        ssdA= getSSD(ref[3], out[3], refStride[3], refStride[3], w, h);

Also available in: Unified diff