Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nacl_sdk\pepper_44\examples\api\media_stream_video 这是一个例子。我想捕捉一帧以保存为 YUV 图像。
PS.你可以在我的信息中发现一些愚蠢的错误。对不起我的英语不好。
示例插件在 OnGetFrame 方法中接收帧并将它们转换为 Open GL 纹理。这是获取帧信息的代码:
https://code.google.com/p/chromium/codesearch#chromium/src/ppapi/examples/media_stream_video/media_stream_video.cc&l=428
你会做类似的事情,除了你将保存 YUV 数据而不是创建 GL 纹理。