From 75a9b54b3e5aa444fdacf4c7db5d24176ea119df Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 25 Feb 2015 21:47:36 +0100 Subject: [PATCH] spark: do not freeze/continue in GetScreenImage() Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/ba133fba3086f0bd052656e209f54c6183837021 Author: Stefan Seyfried Date: 2015-02-25 (Wed, 25 Feb 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libspark/video.cpp b/libspark/video.cpp index 488be98..a101d73 100644 --- a/libspark/video.cpp +++ b/libspark/video.cpp @@ -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 ioctl(fbfd, FBIO_WAITFORVSYNC, 0); +#if 0 if (vdec) ioctl(vdec->fd, VIDEO_FREEZE); +#endif //luma layer_offset = 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); close(mfd); +#if 0 if (vdec) ioctl(vdec->fd, VIDEO_CONTINUE); - +#endif /* yuv2rgb conversion (4:2:0) TODO: there has to be a way to use the blitter for this */ const int rgbstride = vid_x * 3;