-
Hello! I have a memory block allocated with MemoryUtil.nmemAlloc for an RGBA image. I need to convert it to YUV420p with sws_scale, but some parameters require IntPointer. Is there a correct way to convert address(long) to pointer(IntPointer)? |
Beta Was this translation helpful? Give feedback.
Answered by
saudet
Oct 17, 2022
Replies: 1 comment
-
Create your own subclass of IntPointer, possibly like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saudet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create your own subclass of IntPointer, possibly like this:
new IntPointer() {{ address = myAddress; }}
.