Skip to content

feat: expose current k4a_capture via getNativeCapture()#2

Open
icq4ever wants to merge 1 commit into
tettou771:mainfrom
icq4ever:feat/native-capture-getter
Open

feat: expose current k4a_capture via getNativeCapture()#2
icq4ever wants to merge 1 commit into
tettou771:mainfrom
icq4ever:feat/native-capture-getter

Conversation

@icq4ever

Copy link
Copy Markdown

Retain the per-frame k4a_capture as an Impl member (released on the next successful capture or in closeDevice) and add getNativeCapture() alongside the existing native-handle escape hatch. This lets a separate addon feed the same capture into k4abt_tracker_enqueue_capture() for (i.e. body tracking), sharing the single capture instead of opening the device twice.

No behavior change for existing depth/color/IR/point-cloud use; verified example-basic still renders the live point cloud on a Femto Bolt (via the Orbbec K4A Wrapper).

Retain the per-frame k4a_capture as an Impl member (released on the next
successful capture or in closeDevice) and add getNativeCapture() alongside
the existing native-handle escape hatch. This lets a separate addon feed
the same capture into k4abt_tracker_enqueue_capture() for (i.e. body tracking),
sharing the single capture instead of opening the device twice.

No behavior change for existing depth/color/IR/point-cloud use; verified
example-basic still renders the live point cloud on a Femto Bolt (via the
Orbbec K4A Wrapper).
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

Successfully merging this pull request may close these issues.

1 participant