c++ - Unreal: How to access image in MediaTexture with C++?
问题描述
I'm currently using unreal read from video and cameras. I got a Media Player and Media Texture alongside with it.
I'm aware that It is possible to read pixels from Texture2D. The problem is mediaTexture is derived from Texture. Thus It cannot be casted to Texture2D. And I have no idea how to get pixel data from it.
Thanks for any reply! C++ and blueprint are both welcomed!
解决方案
推荐阅读
- swift - 双重转换为字符串,因为标签文本显示错误的数字
- c++ - 在 main 之外编译 mDNS 功能时出错
- selenium - 在无头 Chrome 中跳过证书验证(在 WebDriver 中)
- java - Selenium findElements() 多次返回第一个元素的相同实例
- javascript - 使用 Webdriver 的 client.init() 的 Electron 示例中的 TypeError
- ios - 快照缩放 UIView
- strawberry-perl - 如何在 Perl 中打印外部命令的过滤输出列表?
- node.js - node js 从 URL 获取 Zip 并上传到 Google 驱动器
- vb.net - Visual Basic 2019:尝试将行添加到 DataTable 时引发 ArgumentException
- vue.js - beforeMount 中 App 组件中的数据不可用