factorize BPS definition in dsp.h and add VP8Copy16x8

Change-Id: Id73a1e968c96455808755df4d131d74e3e2e135d
This commit is contained in:
Pascal Massimino
2014-12-04 13:45:14 +01:00
parent 57606047ec
commit 66ad372500
5 changed files with 19 additions and 14 deletions

View File

@ -1067,10 +1067,7 @@ static void PickBestUV(VP8EncIterator* const it, VP8ModeScore* const rd) {
VP8SetIntraUVMode(it, rd->mode_uv);
AddScore(rd, &rd_best);
if (dst != dst0) { // copy 16x8 block if needed
int i;
for (i = 0; i < 8; ++i) {
memcpy(dst0 + i * BPS, dst + i * BPS, 2 * 8 * sizeof(*dst0));
}
VP8Copy16x8(dst0, dst);
}
}