blob: fb4532ffe0d2e8a98e33ebf4bd5e6641c1c4a335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
--- ../vdr-plugin-softhddevice-0.5.2.git.20121115.2130.plain//softhddevice.cpp 2012-11-15 22:28:40.000000000 +0100
+++ softhddevice.cpp 2012-11-19 11:47:16.519507231 +0100
@@ -2354,6 +2354,27 @@
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;
}
--- ../vdr-plugin-softhddevice-0.5.2.git.20121115.2130.plain//softhddevice_service.h 2012-11-05 11:59:01.000000000 +0100
+++ softhddevice_service.h 2012-11-19 11:48:18.791509431 +0100
@@ -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 @@
{
int Mode;
} SoftHDDevice_Osd3DModeService_v1_0_t;
+
+typedef struct
+{
+ // rewuest/reply data
+
+ int width;
+ int height;
+
+ // reply data
+
+ int size;
+
+ void *img;
+} SoftHDDevice_AtmoGrabService_v1_1_t;
|