Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the code logic error? #7

Open
liaohengrui opened this issue Jun 4, 2023 · 0 comments
Open

the code logic error? #7

liaohengrui opened this issue Jun 4, 2023 · 0 comments

Comments

@liaohengrui
Copy link

/// 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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant