原始帧windows手机8.1 [英] raw frames windows phone 8.1

查看:193
本文介绍了原始帧windows手机8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Windows Phone 8.1(没有Silverlight )上以YUV / YCbCr格式从相机获取原始帧,我没有在互联网上看到任何示例,是可能使用MediaCapture或CameraPreviewImageSource (Nokia SDK)?

I need to get raw frames from the Camera in YUV/YCbCr format on windows phone 8.1 (without Silverlight), I don't see any example on internet, is it possible using MediaCapture or CameraPreviewImageSource (Nokia SDK) ?

感谢

推荐答案

在Windows Phone 8.1上处理原始视频帧是写一个自定义 MFT 插件,然后将其添加到 MediaCapture 对象通过 AddEffectAsync 。 MFT作为解码器和XAML丰富的合成器之间的DSP滤波器。

The recommended way to process raw video frames on Windows Phone 8.1 is to write a custom MFT plug-in and then add it to the MediaCapture object via AddEffectAsync. The MFT acts as a DSP filter between the decoder and the XAML rich compositor.

您可以选择要在MFT中支持的颜色空间,Media Foundation将自动为您插入颜色空间转换器。请记住,电话上可用的颜色空间有限。也就是说, NV12 是大多数视频设备的标准色彩空间,并且被认为是4:2:0 YUV色彩空间。

You can choose the color space that you want to support in your MFT and Media Foundation will automatically insert color space converters for you. Keep in mind that the color spaces available on the Phone are limited. That said, NV12 is the standard color space for most video devices and is considered a 4:2:0 YUV color space.

虽然这在理论上听起来很简单,但在实践中可能相当复杂。 MFT必须用C ++ / MoCom编写。编写MFT需要相当深入的C ++和COM知识。

While this sounds simple in theory it can be quite complex in practice. MFTs must be writing in C++ / MoCom. Writing an MFT does require rather deep knowledge of C++ and COM. I don't want to scare you away from giving it a try but it does have a learning curve.

这里是一个Windows应用商店的示例,展示了如何创建MFT插件并将其添加到MediaCapture对象。不幸的是,无论什么原因,此示例没有转换为通用应用程序。但是,应该很容易做转换。由于这是一个具有开创性的例子,我将要求我们将其作为通用应用发布。

Here is a sample for Windows Store that shows you how to create a MFT plug-in and add it to the MediaCapture object. Unfortunately for whatever reason this sample did not get converted to a Universal app. However, it should be easy to do the conversion. Since this is such a seminal sample I will request that we publish it as a universal app.

使用捕获设备示例的媒体捕获

我希望这有帮助,

James

这篇关于原始帧windows手机8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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