ref: 7d7a5c28bc0d63897e5ab524e535f8c0ed1ff351
parent: a3ab13c30d08eecd2994354cf6476e5fcb3dafbc
parent: b90eca78cd36baf56349c0c543e79aaef234a5b7
author: sijchen <sijchen@cisco.com>
date: Mon May 18 12:57:20 EDT 2015
Merge pull request #1954 from mstorsjo/fix-screen-enc-bigendian Avoid endian assumptions in FillQpelLocationByFeatureValue_c
--- a/codec/encoder/core/src/svc_motion_estimate.cpp
+++ b/codec/encoder/core/src/svc_motion_estimate.cpp
@@ -821,7 +821,8 @@
for (int32_t y = 0; y < kiHeight; y++) {
for (int32_t x = 0; x < kiWidth; x++) {
uint16_t uiFeature = pSrcPointer[x];
- ST32 (&pFeatureValuePointerList[uiFeature][0], ((iQpelY << 16) | (x << 2)));
+ pFeatureValuePointerList[uiFeature][0] = x << 2;
+ pFeatureValuePointerList[uiFeature][1] = iQpelY;
pFeatureValuePointerList[uiFeature] += 2;
}
iQpelY += 4;
--- a/test/encoder/EncUT_SVC_me.cpp
+++ b/test/encoder/EncUT_SVC_me.cpp
@@ -97,7 +97,8 @@
for (int32_t y = 0; y < kiHeight; y++) {
for (int32_t x = 0; x < kiWidth; x++) {
uint16_t uiFeature = pSrcPointer[x];
- ST32 (&pFeatureValuePointerList[uiFeature][0], ((iQpelY << 16) | (x << 2)));
+ pFeatureValuePointerList[uiFeature][0] = x << 2;
+ pFeatureValuePointerList[uiFeature][1] = iQpelY;
pFeatureValuePointerList[uiFeature] += 2;
}
iQpelY += 4;