-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add channel_index in ExternalImageHandler callback, ExternalImageData…
… and UpdateForExternalBuffer. In some video image formats(e.g. yuv or nv12), we could have more than one channel data for that video image. Currently, we use different external image id for each channel data. This patch add one additional channel_index data member in ExternalImageData. Then, we could use this channel_index to select the specific channel data with the same ExternalImageId. Example: Add 2 chanel image into WR. api.add_image(... ImageData::External(ExternalImageData { id: ExternalImageId(external_image_id), channel_index: 0, ... }), ...); api.add_image(... ImageData::External(ExternalImageData { id: ExternalImageId(external_image_id), channel_index: 1, ... }), ...);
- Loading branch information
Showing
4 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters