Open liaohengrui opened 1 year ago
/// org cu short * sOrg = bestCS->getOrgBuf().Y().buf; uint16_t *uOrg = (uint16_t *) xMalloc(uint16_t, cuh * cuw); for (int i = 0; i < cuh; i++) { for (int j = 0; j < cuw; j++) { uOrg[i * cuw + j] = (uint16_t)(sOrg[i * bestCS->getOrgBuf().Y().stride + j]); } } the cuh and cuw allways is 128,so sOrg allways get first 128*128CTU,may should add relative coordinates?
/// org cu short * sOrg = bestCS->getOrgBuf().Y().buf; uint16_t *uOrg = (uint16_t *) xMalloc(uint16_t, cuh * cuw); for (int i = 0; i < cuh; i++) { for (int j = 0; j < cuw; j++) { uOrg[i * cuw + j] = (uint16_t)(sOrg[i * bestCS->getOrgBuf().Y().stride + j]); } }
int cux = tempCS->area.Y().x; int cuy = tempCS->area.Y().y;
/// org cu short * sOrg = bestCS->getOrgBuf().Y().buf; uint16_t *uOrg = (uint16_t *) xMalloc(uint16_t, cuh * cuw); for (int i = 0; i < cuh; i++) { for (int j = 0; j < cuw; j++) { uOrg[i * cuw + j] = (uint16_t)(sOrg[i * bestCS->getOrgBuf().Y().stride + j]); } }
the cuh and cuw allways is 128,so sOrg allways get first 128*128CTU,may should add relative coordinates?int cux = tempCS->area.Y().x; int cuy = tempCS->area.Y().y;