Rev 6137 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6137 | Rev 6142 | ||
---|---|---|---|
Line 154... | Line 154... | ||
154 | { |
154 | { |
155 | return driver->blit_bitmap(bitmap, dst_x, dst_y, |
155 | return driver->blit_bitmap(bitmap, dst_x, dst_y, |
156 | w, h, src_x, src_y); |
156 | w, h, src_x, src_y); |
157 | }; |
157 | }; |
Line -... | Line 158... | ||
- | 158 | ||
- | 159 | planar_t* pxCreatePlanar(int name, int format, |
|
- | 160 | uint32_t width, uint32_t height, |
|
- | 161 | uint32_t offset0, uint32_t pitch0, |
|
- | 162 | uint32_t offset1, uint32_t pitch1, |
|
- | 163 | uint32_t offset2, uint32_t pitch2) |
|
- | 164 | { |
|
- | 165 | if(driver->create_planar) |
|
- | 166 | return driver->create_planar(name, format, width, height, |
|
- | 167 | offset0, pitch0, offset1, pitch1, |
|
- | 168 | offset2, pitch2); |
|
- | 169 | else |
|
- | 170 | return NULL; |
|
- | 171 | }; |
|
- | 172 | ||
- | 173 | int pxDestroyPlanar(planar_t *planar) |
|
- | 174 | { |
|
- | 175 | return driver->destroy_planar(planar); |
|
- | 176 | }; |
|
- | 177 | ||
- | 178 | int pxBlitPlanar(planar_t *planar, int dst_x, int dst_y, |
|
- | 179 | uint32_t w, uint32_t h, int src_x, int src_y) |
|
- | 180 | { |
|
- | 181 | if(driver->blit_planar) |
|
- | 182 | return driver->blit_planar(planar, dst_x, dst_y, |
|
- | 183 | w, h, src_x, src_y); |
|
- | 184 | else |
|
- | 185 | return 0; |
|
- | 186 | }; |
|
158 | 187 | ||
159 | int pxCreateClient(int x, int y, uint32_t width, uint32_t height) |
188 | int pxCreateClient(int x, int y, uint32_t width, uint32_t height) |
160 | { |
189 | { |
161 | return driver->create_client(x, y, width, height); |
190 | return driver->create_client(x, y, width, height); |
Line 162... | Line 191... | ||
162 | } |
191 | } |
163 | 192 | ||
164 | int pxResizeClient(int x, int y, uint32_t width, uint32_t height) |
193 | int pxResizeClient(int x, int y, uint32_t width, uint32_t height) |
165 | { |
194 | { |
Line -... | Line 195... | ||
- | 195 | return driver->resize_client(x, y, width, height); |
|
166 | return driver->resize_client(x, y, width, height); |
196 | } |
167 | } |
197 | |
168 | 198 | ||
169 | static struct pix_driver sw_driver = |
199 | static struct pix_driver sw_driver = |
170 | { |
200 | { |
171 | 0, |
201 | 0, |
172 | sw_create_bitmap, |
202 | sw_create_bitmap, |
173 | sw_destroy_bitmap, |
203 | sw_destroy_bitmap, |
174 | sw_lock_bitmap, |
204 | sw_lock_bitmap, |
175 | sw_resize_bitmap, |
205 | sw_resize_bitmap, |
- | 206 | sw_blit, |
|
176 | sw_blit, |
207 | sw_create_client, |
177 | sw_create_client, |
208 | sw_resize_client, |
178 | sw_resize_client, |
209 | NULL, /* fini() */ |
179 | NULL, |
210 | NULL, /* create_planar() */ |
Line 180... | Line 211... | ||
180 | NULL, |
211 | NULL, /* destroy_planar() */ |
181 | NULL |
212 | NULL /* blit_planar() */ |
Line 254... | Line 285... | ||
254 | { |
285 | { |
255 | if (driver->fini) |
286 | if (driver->fini) |
256 | driver->fini(); |
287 | driver->fini(); |
257 | }; |
288 | };>> |
Line 258... | Line -... | ||
258 | - | ||
259 | - | ||
260 | planar_t* pxCreatePlanar(int name, int format, |
- | |
261 | uint32_t width, uint32_t height, |
- | |
262 | uint32_t offset0, uint32_t pitch0, |
- | |
263 | uint32_t offset1, uint32_t pitch1, |
- | |
264 | uint32_t offset2, uint32_t pitch2) |
- | |
265 | { |
- | |
266 | if(driver->create_planar) |
- | |
267 | return driver->create_planar(name, format, width, height, |
- | |
268 | offset0, pitch0, offset1, pitch1, |
- | |
269 | offset2, pitch2); |
- | |
270 | else |
- | |
271 | return NULL; |
- | |
272 | } |
- | |
273 | - | ||
274 | - | ||
275 | int pxBlitPlanar(planar_t *planar, int dst_x, int dst_y, |
- | |
276 | uint32_t w, uint32_t h, int src_x, int src_y) |
- | |
277 | { |
- | |
278 | if(driver->blit_planar) |
- | |
279 | return driver->blit_planar(planar, dst_x, dst_y, |
- | |
280 | w, h, src_x, src_y); |
- | |
281 | else |
- | |
282 | return 0; |
- | |
283 | };>> |
- | |
284 | - | ||
285 | - | ||
286 | - |