blob: 56b8f33da1a5601fee8c78c6177282852846d94e (
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
|
/*
* 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>
#include <stdio.h>
#include "global.h"
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;
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
|