blob: 7762a8335232b9558468ef362ed82e3314fbcaf8 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* global.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef __global_h_
#define __global_h_
#include <time.h>
#ifndef uchar
typedef unsigned char uchar;
#endif
#define MA_I_TYPE 1
#define MA_P_TYPE 2
#define MA_B_TYPE 3
#define MA_S_TYPE 4
#define MA_SI_TYPE 5
#define MA_SP_TYPE 6
#define MA_BI_TYPE 7
#define MA_D_TYPE 80
typedef struct MarkAdMark
{
int Position;
char *Comment;
} MarkAdMark;
typedef struct MarkAdAspectRatio
{
int Num;
int Den;
} MarkAdAspectRatio;
typedef struct MarkAdContext
{
struct General
{
time_t StartTime;
time_t EndTime;
bool ManualRecording;
bool H264;
int VPid;
int APid;
int DPid;
} General;
struct State
{
int ContentStarted;
int ContentStopped;
} State;
struct Video
{
struct Info
{
int Width; // width of pic
int Height; // height of pic
int Pict_Type; // picture type (I,P,B,S,SI,SP,BI)
MarkAdAspectRatio AspectRatio;
} Info;
struct Data
{
bool Valid; // flag, if true data is valid
uchar *Plane[4]; // picture planes (YUV420)
int PlaneLinesize[4]; // size int bytes of each picture plane line
} Data;
} Video;
struct Audio
{
struct Info
{
int Channels; // number of audio channels
} Info;
struct Data
{
bool Valid;
uchar *SampleBufAC3;
int SampleBufLenAC3;
uchar *SampleBufMP2;
int SampleBufLenMP2;
} Data;
} Audio;
} MarkAdContext;
#endif
|