Adds VDR SeduAtmo Plugin support.

This commit is contained in:
horchi 2013-01-01 17:58:54 +01:00 committed by Johns
parent 3d5e59a6e5
commit 63c22a13cf
3 changed files with 42 additions and 1 deletions

View File

@ -1,6 +1,11 @@
User johns User horchi
Date: Date:
Adds VDR SeduAtmo Plugin support.
User johns
Date: Tue Jan 1 15:21:28 CET 2013
Support multiple streams with ScaleVideo. Support multiple streams with ScaleVideo.
Makes 4:3 and 16:9 display format configurable. Makes 4:3 and 16:9 display format configurable.
Don't use DVB display format. Don't use DVB display format.

View File

@ -2409,6 +2409,27 @@ bool cPluginSoftHdDevice::Service(const char *id, void *data)
r->height = height; r->height = height;
return true; 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; return false;
} }

View File

@ -23,6 +23,7 @@
#pragma once #pragma once
#define ATMO_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.0" #define ATMO_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.0"
#define ATMO1_GRAB_SERVICE "SoftHDDevice-AtmoGrabService-v1.1"
#define OSD_3DMODE_SERVICE "SoftHDDevice-Osd3DModeService-v1.0" #define OSD_3DMODE_SERVICE "SoftHDDevice-Osd3DModeService-v1.0"
enum enum
@ -48,3 +49,17 @@ typedef struct
{ {
int Mode; int Mode;
} SoftHDDevice_Osd3DModeService_v1_0_t; } 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;