mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark: do not freeze/continue in GetScreenImage()
Origin commit data
------------------
Branch: master
Commit: ba133fba30
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-25 (Wed, 25 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1206,8 +1206,10 @@ bool cVideo::GetScreenImage(unsigned char * &video, int &xres, int &yres, bool g
|
|||||||
yblockoffset = xblock * 256/*16x16px*/ * 2/*2 block rows*/; //0xA000 for 1280
|
yblockoffset = xblock * 256/*16x16px*/ * 2/*2 block rows*/; //0xA000 for 1280
|
||||||
|
|
||||||
ioctl(fbfd, FBIO_WAITFORVSYNC, 0);
|
ioctl(fbfd, FBIO_WAITFORVSYNC, 0);
|
||||||
|
#if 0
|
||||||
if (vdec)
|
if (vdec)
|
||||||
ioctl(vdec->fd, VIDEO_FREEZE);
|
ioctl(vdec->fd, VIDEO_FREEZE);
|
||||||
|
#endif
|
||||||
//luma
|
//luma
|
||||||
layer_offset = 0;
|
layer_offset = 0;
|
||||||
OUTITER = 0;
|
OUTITER = 0;
|
||||||
@@ -1287,9 +1289,10 @@ bool cVideo::GetScreenImage(unsigned char * &video, int &xres, int &yres, bool g
|
|||||||
}
|
}
|
||||||
munmap(decode_surface, vid_mem_size);
|
munmap(decode_surface, vid_mem_size);
|
||||||
close(mfd);
|
close(mfd);
|
||||||
|
#if 0
|
||||||
if (vdec)
|
if (vdec)
|
||||||
ioctl(vdec->fd, VIDEO_CONTINUE);
|
ioctl(vdec->fd, VIDEO_CONTINUE);
|
||||||
|
#endif
|
||||||
/* yuv2rgb conversion (4:2:0)
|
/* yuv2rgb conversion (4:2:0)
|
||||||
TODO: there has to be a way to use the blitter for this */
|
TODO: there has to be a way to use the blitter for this */
|
||||||
const int rgbstride = vid_x * 3;
|
const int rgbstride = vid_x * 3;
|
||||||
|
Reference in New Issue
Block a user