From 2c66f48cb4ef87a97bb40e9096e83c42f6f91718 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 25 Feb 2012 22:17:53 +0100 Subject: [PATCH] spark: improve cVideo::Pig() Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/86a5316bd736b66b0dd82eb33268591be9587de8 Author: Stefan Seyfried Date: 2012-02-25 (Sat, 25 Feb 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libspark/video.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libspark/video.cpp b/libspark/video.cpp index cdaa9c1..708765b 100644 --- a/libspark/video.cpp +++ b/libspark/video.cpp @@ -491,7 +491,7 @@ void cVideo::VideoParamWatchdog(void) void cVideo::Pig(int x, int y, int w, int h, int osd_w, int osd_h) { - char buffer[16]; + char buffer[64]; int _x, _y, _w, _h; /* the target "coordinates" seem to be in a PAL sized plane * TODO: check this in the driver sources */ @@ -513,14 +513,8 @@ void cVideo::Pig(int x, int y, int w, int h, int osd_w, int osd_h) _h = h * yres / osd_h; } lt_debug("%s: x:%d y:%d w:%d h:%d xr:%d yr:%d\n", __func__, _x, _y, _w, _h, xres, yres); - sprintf(buffer, "%x", _x); - proc_put("/proc/stb/vmpeg/0/dst_left", buffer, strlen(buffer)); - sprintf(buffer, "%x", _y); - proc_put("/proc/stb/vmpeg/0/dst_top", buffer, strlen(buffer)); - sprintf(buffer, "%x", _w); - proc_put("/proc/stb/vmpeg/0/dst_width", buffer, strlen(buffer)); - sprintf(buffer, "%x", _h); - proc_put("/proc/stb/vmpeg/0/dst_height", buffer, strlen(buffer)); + sprintf(buffer, "%x %x %x %x", _x, _y, _w, _h); + proc_put("/proc/stb/vmpeg/0/dst_all", buffer, strlen(buffer)); } void cVideo::getPictureInfo(int &width, int &height, int &rate)