Video Output Overlay Interface
2014-11-09 21:26
471 查看
Example 4.1. Finding a framebuffer device for OSD
#include <linux/fb.h> struct v4l2_framebuffer fbuf; unsigned int i; int fb_fd; if (-1 == ioctl(fd, VIDIOC_G_FBUF, &fbuf)) { perror("VIDIOC_G_FBUF"); exit(EXIT_FAILURE); } for (i = 0; i < 30; i++) { char dev_name[16]; struct fb_fix_screeninfo si; snprintf(dev_name, sizeof(dev_name), "/dev/fb%u", i); fb_fd = open(dev_name, O_RDWR); if (-1 == fb_fd) { switch (errno) { case ENOENT: /* no such file */ case ENXIO: /* no driver */ continue; default: perror("open"); exit(EXIT_FAILURE); } } if (0 == ioctl(fb_fd, FBIOGET_FSCREENINFO, &si)) { if (si.smem_start == (unsigned long)fbuf.base) break; } else { /* Apparently not a framebuffer device. */ } close(fb_fd); fb_fd = -1; } /* fb_fd is the file descriptor of the framebuffer device for the video output overlay, or -1 if no device was found. */
相关文章推荐
- V4L2 Video overlay, Video output, Video output overlay的区别
- (转)V4L2 Video overlay, Video output, Video output overlay的区别
- V4L2 Video overlay, Video output, Video output overlay的区别
- Overlay Images on Video Using MPlayer and MEncoder
- Piping OV7670 video to VGA output on ZYBO
- qml之VideoOutput播放网络视频
- How to config Bananapi pro AV output as default video signal ?
- DE2 framebuffer and video capture interface for SOPC (altera11.0)
- ios使用AVCaptureVideoDataOutput实现连续拍照消除快门声音
- AVCaptureVideoDataOutput
- HTML5学习笔记简明版(4):新元素之video,audio,meter,datalist,keygen,output
- iOS 使用 AVCaptureVideoDataOutputSampleBufferDelegate获取实时拍照的视频流
- the old Video Renderer, the Overlay Mixer, the VMR-7 and the VMR-9 区别!
- How to config Bananapi pro AV output as default video signal ?
- 关于IOS的AVFoundation框架的AVCaptureVideoDataOutput无法输出问题
- AVCaptureVideoDataOutput
- 新元素之video,audio,meter,datalist,keygen,output
- DE2 framebuffer and video capture interface for SOPC (altera9.1)
- Custom video/camera overlay view on the iPhone
- show ip interface brief | tee tftp://10.1.1.1/show-output.txt 保护到某处