Mercurial > mplayer.hg
comparison loader/vfl.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | eda346733b8c |
children | 32725ca88fed |
comparison
equal
deleted
inserted
replaced
29262:7d545a6b8aff | 29263:0f1b5b68af32 |
---|---|
64 ICOpen(long filename,long fccHandler,unsigned int wMode) { | 64 ICOpen(long filename,long fccHandler,unsigned int wMode) { |
65 ICOPEN icopen; | 65 ICOPEN icopen; |
66 HDRVR hdrv; | 66 HDRVR hdrv; |
67 WINE_HIC *whic; | 67 WINE_HIC *whic; |
68 | 68 |
69 /* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the | 69 /* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the |
70 * same layout as ICOPEN | 70 * same layout as ICOPEN |
71 */ | 71 */ |
72 icopen.fccType = 0x63646976; // "vidc" //fccType; | 72 icopen.fccType = 0x63646976; // "vidc" //fccType; |
73 icopen.fccHandler = fccHandler; | 73 icopen.fccHandler = fccHandler; |
74 icopen.dwSize = sizeof(ICOPEN); | 74 icopen.dwSize = sizeof(ICOPEN); |
91 LRESULT VFWAPI | 91 LRESULT VFWAPI |
92 ICGetInfo(HIC hic,ICINFO *picinfo,long cb) { | 92 ICGetInfo(HIC hic,ICINFO *picinfo,long cb) { |
93 LRESULT ret; | 93 LRESULT ret; |
94 | 94 |
95 ret = ICSendMessage(hic,ICM_GETINFO,(long)picinfo,cb); | 95 ret = ICSendMessage(hic,ICM_GETINFO,(long)picinfo,cb); |
96 | 96 |
97 return ret; | 97 return ret; |
98 } | 98 } |
99 | 99 |
100 /*********************************************************************** | 100 /*********************************************************************** |
101 * ICCompress [MSVFW.23] | 101 * ICCompress [MSVFW.23] |
127 } | 127 } |
128 | 128 |
129 /*********************************************************************** | 129 /*********************************************************************** |
130 * ICDecompress [MSVFW.26] | 130 * ICDecompress [MSVFW.26] |
131 */ | 131 */ |
132 long VFWAPIV | 132 long VFWAPIV |
133 ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) { | 133 ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) { |
134 ICDECOMPRESS icd; | 134 ICDECOMPRESS icd; |
135 int result; | 135 int result; |
136 icd.dwFlags = dwFlags; | 136 icd.dwFlags = dwFlags; |
137 icd.lpbiInput = lpbiFormat; | 137 icd.lpbiInput = lpbiFormat; |
145 } | 145 } |
146 | 146 |
147 /*********************************************************************** | 147 /*********************************************************************** |
148 * ICDecompressEx [MSVFW.26] | 148 * ICDecompressEx [MSVFW.26] |
149 */ | 149 */ |
150 long VFWAPIV | 150 long VFWAPIV |
151 ICDecompressEx(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) { | 151 ICDecompressEx(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits) { |
152 ICDECOMPRESSEX icd; | 152 ICDECOMPRESSEX icd; |
153 int result; | 153 int result; |
154 | 154 |
155 icd.dwFlags = dwFlags; | 155 icd.dwFlags = dwFlags; |
156 | 156 |
157 icd.lpbiSrc = lpbiFormat; | 157 icd.lpbiSrc = lpbiFormat; |
158 icd.lpSrc = lpData; | 158 icd.lpSrc = lpData; |
159 | 159 |
160 icd.lpbiDst = lpbi; | 160 icd.lpbiDst = lpbi; |
161 icd.lpDst = lpBits; | 161 icd.lpDst = lpBits; |
162 | 162 |
163 icd.xSrc=icd.ySrc=0; | 163 icd.xSrc=icd.ySrc=0; |
164 icd.dxSrc=lpbiFormat->biWidth; | 164 icd.dxSrc=lpbiFormat->biWidth; |
165 icd.dySrc=abs(lpbiFormat->biHeight); | 165 icd.dySrc=abs(lpbiFormat->biHeight); |
166 | 166 |
167 icd.xDst=icd.yDst=0; | 167 icd.xDst=icd.yDst=0; |
168 icd.dxDst=lpbi->biWidth; | 168 icd.dxDst=lpbi->biWidth; |
169 icd.dyDst=abs(lpbi->biHeight); | 169 icd.dyDst=abs(lpbi->biHeight); |
170 | 170 |
171 //icd.ckid = 0; | 171 //icd.ckid = 0; |
172 result=ICSendMessage(hic,ICM_DECOMPRESSEX,(long)&icd,sizeof(icd)); | 172 result=ICSendMessage(hic,ICM_DECOMPRESSEX,(long)&icd,sizeof(icd)); |
173 return result; | 173 return result; |
174 } | 174 } |
175 | 175 |
176 long VFWAPIV | 176 long VFWAPIV |
177 ICUniversalEx(HIC hic,int command,LPBITMAPINFOHEADER lpbiFormat,LPBITMAPINFOHEADER lpbi) { | 177 ICUniversalEx(HIC hic,int command,LPBITMAPINFOHEADER lpbiFormat,LPBITMAPINFOHEADER lpbi) { |
178 ICDECOMPRESSEX icd; | 178 ICDECOMPRESSEX icd; |
179 int result; | 179 int result; |
180 | 180 |
181 icd.dwFlags = 0; | 181 icd.dwFlags = 0; |
182 | 182 |
183 icd.lpbiSrc = lpbiFormat; | 183 icd.lpbiSrc = lpbiFormat; |
184 icd.lpSrc = 0; | 184 icd.lpSrc = 0; |
185 | 185 |
186 icd.lpbiDst = lpbi; | 186 icd.lpbiDst = lpbi; |
187 icd.lpDst = 0; | 187 icd.lpDst = 0; |
188 | 188 |
189 icd.xSrc=icd.ySrc=0; | 189 icd.xSrc=icd.ySrc=0; |
190 icd.dxSrc=lpbiFormat->biWidth; | 190 icd.dxSrc=lpbiFormat->biWidth; |
191 icd.dySrc=abs(lpbiFormat->biHeight); | 191 icd.dySrc=abs(lpbiFormat->biHeight); |
192 | 192 |
193 icd.xDst=icd.yDst=0; | 193 icd.xDst=icd.yDst=0; |
194 icd.dxDst=lpbi->biWidth; | 194 icd.dxDst=lpbi->biWidth; |
195 icd.dyDst=abs(lpbi->biHeight); | 195 icd.dyDst=abs(lpbi->biHeight); |
196 | 196 |
197 //icd.ckid = 0; | 197 //icd.ckid = 0; |
198 result=ICSendMessage(hic,command,(long)&icd,sizeof(icd)); | 198 result=ICSendMessage(hic,command,(long)&icd,sizeof(icd)); |
199 return result; | 199 return result; |
200 } | 200 } |
201 | 201 |