如何使用/学习Video4Linux2(屏幕显示)输出API? [英] How to use/learn Video4Linux2 (On Screen Display) Output APIs?

查看:214
本文介绍了如何使用/学习Video4Linux2(屏幕显示)输出API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最新的微处理器(飞思卡尔iMX233)具有8个硬件覆盖层以及内置的YUV到RGB转换功能.他们已经通过v4l2驱动程序公开了这些功能. v4l2文档说的不正确那如何使用它.我可以使用任何教程或参考代码来学习v4l2 api吗?

My latest microprocessor( Freescale iMX233 ) has 8 hardware overlay plus inbuilt YUV to RGB conversion functionality. They have exposed these functionality through v4l2 driver. v4l2 Documentation doesn't say it properly that how to use it. Is there any tutorial available or any reference code which I can use to learn v4l2 apis?

推荐答案

V4L2 API并不是目前最出色的API,使用起来也不是那么容易.但是,有一些可用资源.

The V4L2 API isn't the greatest API out there and it is not very easy to use it. There are however a few resources available.

第一个是官方" V4L2文档

lwn 上写的系列文章更多地集中在V4L2的驱动程序方面,但仍然如果您想了解V4L2的工作原理并正确使用它,将是非常有趣的阅读.

The series of article written on lwn focus more on the driver side of V4L2, but still they are a very interesting reading if you want to understand how V4L2 works and to use it right.

最后,这个简单但很完整的视频捕获示例是一个很好的代码任何想使用V4L2 API的人的依据.它显示了通过相机传感器获取数据的3种方式(内存映射缓冲区,read()调用和应用程序分配的缓冲区).

Finally, this simple but quite complete video capture example is a good code basis for anyone wanting to use the V4L2 API. It shows the 3 ways (memory mapped buffers, read() calls and application allocated buffers) of acquiring data through a camera sensor.

这篇关于如何使用/学习Video4Linux2(屏幕显示)输出API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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