blob: ecc6d74e81ed0c414cfa3b21d0d24bdb1f9a6803 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
* video.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef __video_h_
#define __video_h_
#include <vdr/tools.h> // needed for (d/e/i)syslog
#include <time.h>
#if 1
#include <stdio.h>
#endif
#include <math.h>
#include "global.h"
class cMarkAdLogo
{
private:
#define LOGOHEIGHT 100
int GX[3][3];
int GY[3][3];
uchar *plane;
bool first;
MarkAdContext *macontext;
public:
cMarkAdLogo(int RecvNumber, MarkAdContext *maContext);
~cMarkAdLogo();
void SaveFrame(int LastIFrame);
int Process(int LastIFrame);
};
class cMarkAdBlackBordersHoriz
{
private:
int borderstatus;
int borderiframe;
time_t borderstarttime;
void SaveFrame(int LastIFrame);
MarkAdContext *macontext;
public:
cMarkAdBlackBordersHoriz(int RecvNumber, MarkAdContext *maContext);
int Process(int LastIFrame,int *BorderIFrame);
};
class cMarkAdVideo
{
private:
int recvnumber;
MarkAdContext *macontext;
MarkAdMark mark;
MarkAdAspectRatio aspectratio;
cMarkAdBlackBordersHoriz *hborder;
cMarkAdLogo *logo;
void ResetMark();
bool AddMark(int Position, const char *Comment);
bool AspectRatioChange(MarkAdAspectRatio *a, MarkAdAspectRatio *b);
void SetTimerMarks(int LastIFrame);
public:
cMarkAdVideo(int RecvNumber,MarkAdContext *maContext);
~cMarkAdVideo();
MarkAdMark *Process(int LastIFrame);
};
#endif
|