[UWP]如何与自定义视频效果进行通信? [英] [UWP] How to communicate with custom video effect?

查看:73
本文介绍了[UWP]如何与自定义视频效果进行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实施了IBasicVideoEffect,它显示了一个从墙壁反弹的浮动矩形。

I implemented IBasicVideoEffect which shows a floating rectangle bouncing off the walls.

但我想做以下事情:

1。更改速度 - 如何在不中断渲染的情况下在视频效果上设置参数?我无法访问我班级的实际实例。

1. change the speed - how can I set a parameter on a video effect without interrupting rendering? I don't have access to the actual instance of my class.

2。从视频效果中获取视频帧以进行无法适应视频效果的离线处理(例如,3D派对服务或与Windows运行时组件不兼容的代码库)?我想使用微软认知服务。

2. get video frame from inside the video effect to do offline processing which cannot be fitted into video effect (e.g. 3d party services or code libraries which aren't compatible with Windows Runtime Component)? I want to use Microsoft cognitive services.

基本上问题是 - 我如何识别实例和编组进出Windows运行时组件的数据

Basically the question - how do I identify the instance and marshal data in and out of a Windows Runtime Component

你能说出这些是否有可能,如果没有,是否有计划提供这些功能?

Can you tell if any of these possible and if not is there a plan to bring those features?

推荐答案

您可以在效果类中设置单例,并在创建实例对象时设置其值。

You can set up a singleton inside the effect class and set its value when the instance object is created.


这篇关于[UWP]如何与自定义视频效果进行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆