On Fri, 12 May 2023 at 00:00, Noux Ha <
nou...@gmail.com> wrote:
> Here is my code:
...
Without going in to depth, firstly look to get the GStreamer caps to
give you the data in the format you need - eg. RGB rather than BGRx ?
Be careful with endian-ness - you're swapping the byte order but I'm
not sure why.
https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c
Secondly, look for a constructor, or other code, in the opencv
bindings that can accept a ByteBuffer directly. Or failing that a
native address, which you can extract from the ByteBuffer using JNA's
Native class.
If this is for a commercial project, you can contact me off list for
paid support. Unfortunately I don't have the free time to delve
further into this at the moment.
Best wishes,
Neil
--
Neil C Smith
Codelerity Ltd.
www.codelerity.com
Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD