diff options
author | horchi <> | 2013-01-01 17:58:54 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-01-01 17:58:54 +0100 |
commit | 63c22a13cf92550b41a0750d4f88bae16a167b42 (patch) | |
tree | 4cc8a7937e8f25ba3ca086df0754b62f8030bd1a | |
parent | 3d5e59a6e516dd58d0e93d283787a1f54515ece1 (diff) | |
download | vdr-plugin-softhddevice-63c22a13cf92550b41a0750d4f88bae16a167b42.tar.gz vdr-plugin-softhddevice-63c22a13cf92550b41a0750d4f88bae16a167b42.tar.bz2 |
Adds VDR SeduAtmo Plugin support.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | softhddevice.cpp | 21 | ||||
-rw-r--r-- | softhddevice_service.h | 15 |
3 files changed, 42 insertions, 1 deletions
@@ -1,6 +1,11 @@ -User johns +User horchi Date: + Adds VDR SeduAtmo Plugin support. + +User johns +Date: Tue Jan 1 15:21:28 CET 2013 + Support multiple streams with ScaleVideo. Makes 4:3 and 16:9 display format configurable. Don't use DVB display format. diff --git a/softhddevice.cpp b/softhddevice.cpp index d85f52e..f0f8c38 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -2409,6 +2409,27 @@ bool cPluginSoftHdDevice::Service(const char *id, void *data) r->height = height; return true; } + + if (strcmp(id, ATMO1_GRAB_SERVICE) == 0) { + SoftHDDevice_AtmoGrabService_v1_1_t *r; + + if (!data) { + return true; + } + + if (SuspendMode != NOT_SUSPENDED) { + return false; + } + + r = (SoftHDDevice_AtmoGrabService_v1_1_t *) data; + r->img = VideoGrabService(&r->size, &r->width, &r->height); + if (!r->img) { + return false; + } + + return true; + } + return false; } diff --git a/softhddevice_service.h b/softhddevice_service.h index 03be695..c7c2d5e 100644 --- a/softhddevice_service.h +++ b/softhddevice_service.h @@ -23,6 +23,7 @@ #pragma once #define ATMO_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.0" +#define ATMO1_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.1" #define OSD_3DMODE_SERVICE "SoftHDDevice-Osd3DModeService-v1.0" enum @@ -48,3 +49,17 @@ typedef struct { int Mode; } SoftHDDevice_Osd3DModeService_v1_0_t; + +typedef struct +{ + // request/reply data + + int width; + int height; + + // reply data + + int size; + + void *img; +} SoftHDDevice_AtmoGrabService_v1_1_t; |