source: svn/newcon3bcm2_21bu/dst/dlib/src/si/DLIB_PSI_Monitor.c

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1/**
2        @file
3                DLIB_PSI_Monitor.c
4
5        @brief
6*/
7
8
9#include "DLIB_PSI.h"
10#include "DLIB_PSI_Monitor.h"
11
12
13
14#if COMMENT
15____Config____(){}
16#endif
17
18
19
20
21#if COMMENT
22____Types____(){}
23#endif
24
25
26
27
28#if COMMENT
29____Variables____(){}
30#endif
31
32
33
34
35#if COMMENT
36____Monitor____(){}
37#endif
38
39
40DHL_RESULT MonitorPAT(tDHL_TSD tsd,
41                                   BOOLEAN current_next_indicator,
42                                   BOOLEAN eager,
43                                   tDHL_PSI_Update updateMode, 
44                                   tDHL_PSI_EventProc eventProc,
45                                   UINT32 userParam, 
46                                   tDHL_PSI_ControlHandle *returnPSICtl)
47{
48        tDHL_PSI_Filter *pref;
49        DHL_RESULT err;
50
51        if ((err = DHL_PSI_AllocFilterWithTid(&pref,
52                                                           PROGRAM_ASSOCIATION_SECTION,
53                                                           current_next_indicator))) {
54                return(err);
55        }
56        if ((err = DHL_PSI_StartMonitor(tsd,
57                                                         0 /* PAT */, 
58                                                         ePSIMODE_TABLE, 
59                                                         updateMode,
60                                                         pref,
61                                                         MAX_SI_MPEG_DATA,
62                                                         MAX_SI_SECTIONS,
63                                                         eventProc,
64                                                         userParam,
65                                                         returnPSICtl))) {
66                DHL_PSI_FreeFilter(pref);
67        }
68       
69        return(err);
70}
71
72
73DHL_RESULT MonitorPMT(tDHL_TSD tsd,
74                                        UINT16 pid,
75                                        UINT16 program_number,
76                                        BOOLEAN current_next_indicator, 
77                                        tDHL_PSI_Update updateMode,
78                                        tDHL_PSI_EventProc eventProc, 
79                                        UINT32 userParam, 
80                                        tDHL_PSI_ControlHandle *returnPSICtl)
81{
82        tDHL_PSI_Filter *pref;
83        DHL_RESULT err;
84
85        if ((err = DHL_PSI_AllocFilterWithTidEx(&pref,
86                                                  TS_PROGRAM_MAP_SECTION,
87                                                  program_number,
88                                                  current_next_indicator))) {           
89                return(err);
90        }
91        if ((err = DHL_PSI_StartMonitor(tsd,
92                                                pid, 
93                                                ePSIMODE_SECTION, 
94                                                updateMode,
95                                                pref,
96                                                MAX_SI_MPEG_DATA,
97                                                1,
98                                                eventProc,
99                                                userParam,
100                                                returnPSICtl))) {
101                DHL_PSI_FreeFilter(pref);
102        }
103       
104        return(err);
105}
106
107
108
109
110#if COMMENT
111____Debug____(){}
112#endif
113
114
115
116
117#if COMMENT
118____Symbol____(){}
119#endif
120
121
122
123
124#if COMMENT
125____Init____(){}
126#endif
127
128
129
130/* end of file */
131
Note: See TracBrowser for help on using the repository browser.