Commit a85a2b9f authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

Coding path sync test: fix picture comparison

Change-Id: Iee4957038d61c14cf8fa3f9c094b579c82c20603
parent a8810391
......@@ -101,11 +101,11 @@ std::vector<int16_t> Serialize(const aom_image_t *img) {
for (int r = 0; r < h; ++r) {
for (int c = 0; c < w; ++c) {
const int offset = r * img->stride[plane] + c;
unsigned char *row = img->planes[plane] + r * img->stride[plane];
if (img->fmt & AOM_IMG_FMT_HIGHBITDEPTH)
bytes.push_back(img->planes[plane][offset * 2]);
bytes.push_back(row[c * 2]);
else
bytes.push_back(img->planes[plane][offset]);
bytes.push_back(row[c]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment