summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--softhddevice.cpp21
-rw-r--r--softhddevice_service.h15
3 files changed, 42 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e756a9..e994cf7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;