~ubuntu-branches/debian/squeeze/openmcu/squeeze

« back to all changes in this revision

Viewing changes to main.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-06-05 16:17:25 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20100605161725-0ax79dwmz21wjpx6
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 *                 Craig Southeren (craig@postincrement.com)
31
31
 *
32
32
 * $Log: main.cxx,v $
 
33
 * Revision 1.3  2008/05/23 11:18:16  willamowius
 
34
 * switch BOOL to PBoolean to be able to compile with Ptlib 2.2.x
 
35
 *
 
36
 * Revision 1.2  2008/02/19 06:36:11  shorne
 
37
 * Added ability to have 16CIF & 4CIF size video. Thx Marcos Jardini for the initial 4CIF patch
 
38
 *
 
39
 * Revision 1.1  2007/10/17 19:44:31  shorne
 
40
 * Initial Commit
 
41
 *
33
42
 * Revision 2.16  2006/06/09 04:39:59  csoutheren
34
43
 * Migrated VideoBranch to main trunk
35
44
 *
84
93
    PFilePath GetEnteringWAVFile() const
85
94
    { return enteringWAVFile; }
86
95
 
87
 
    BOOL GetConnectingWAVFile(PFilePath & fn) const
 
96
    PBoolean GetConnectingWAVFile(PFilePath & fn) const
88
97
    { fn = connectingWAVFile; return TRUE; }
89
98
 
90
99
#if OPENMCU_VIDEO
91
 
    BOOL GetPreMediaFrame(void * buffer, int width, int height, PINDEX & amount);
 
100
    PBoolean GetPreMediaFrame(void * buffer, int width, int height, PINDEX & amount);
92
101
#endif // OPENMCU_VIDEO
93
102
 
94
103
  protected:
128
137
 
129
138
#if OPENMCU_VIDEO
130
139
 
131
 
BOOL MyMCU::GetPreMediaFrame(void * buffer, int width, int height, PINDEX & amount)
 
140
PBoolean MyMCU::GetPreMediaFrame(void * buffer, int width, int height, PINDEX & amount)
132
141
{
133
142
  if (width == QCIF_WIDTH && height == QCIF_HEIGHT) {
134
143
    memcpy(buffer, ImageData, QCIF_SIZE);
138
147
    MCUVideoMixer::ConvertQCIFToCIF(ImageData, buffer);
139
148
    return TRUE;
140
149
  }
141
 
 
 
150
  else if (width == CIF4_WIDTH && height == CIF4_HEIGHT) {
 
151
    MCUVideoMixer::ConvertQCIFTo4CIF(ImageData, buffer);
 
152
    return TRUE;
 
153
  }
 
154
  else if (width == CIF16_WIDTH && height == CIF16_HEIGHT) {
 
155
    MCUVideoMixer::ConvertQCIFTo16CIF(ImageData, buffer);
 
156
    return TRUE;
 
157
  }
142
158
  return FALSE;
143
159
}
144
160