32 #include <sys/ioctl.h>
89 "Could not open framebuffer device '%s': %s\n",
94 if (ioctl(fbdev->
fd, FBIOGET_VSCREENINFO, &fbdev->
varinfo) < 0) {
101 if (ioctl(fbdev->
fd, FBIOGET_FSCREENINFO, &fbdev->
fixinfo) < 0) {
104 "FBIOGET_FSCREENINFO: %s\n",
av_err2str(ret));
112 "Framebuffer pixel format not supported.\n");
122 fbdev->
data = mmap(NULL, fbdev->
fixinfo.smem_len, PROT_READ, MAP_SHARED, fbdev->
fd, 0);
123 if (fbdev->
data == MAP_FAILED) {
139 "w:%d h:%d bpp:%d pixfmt:%s fps:%d/%d bit_rate:%d\n",
154 int64_t curtime, delay;
167 "time_frame:%"PRId64
" curtime:%"PRId64
" delay:%"PRId64
"\n",
175 ts.tv_sec = delay / 1000000;
176 ts.tv_nsec = (delay % 1000000) * 1000;
177 while (nanosleep(&ts, &ts) < 0 && errno == EINTR);
184 if (ioctl(fbdev->
fd, FBIOGET_VSCREENINFO, &fbdev->
varinfo) < 0) {
196 for (i = 0; i < fbdev->
height; i++) {
198 pin += fbdev->
fixinfo.line_length;
220 #define OFFSET(x) offsetof(FBDevContext, x)
221 #define DEC AV_OPT_FLAG_DECODING_PARAM
244 .priv_class = &fbdev_class,