22 |
|
#define VIDEO_DEFS_H |
23 |
|
|
24 |
|
#include "macos_util.h" |
25 |
+ |
#include <stddef.h> |
26 |
|
|
27 |
|
|
28 |
|
/* |
216 |
|
csCount = 6 |
217 |
|
}; |
218 |
|
|
219 |
< |
struct ColorSpec { |
220 |
< |
uint16 value; |
221 |
< |
uint16 red; |
222 |
< |
uint16 green; |
223 |
< |
uint16 blue; |
219 |
> |
enum { // ColorSpec table entry |
220 |
> |
csValue = 0, |
221 |
> |
csRed = 2, |
222 |
> |
csGreen = 4, |
223 |
> |
csBlue = 6 |
224 |
|
}; |
225 |
|
|
226 |
|
enum { // VDVideoParametersInfo struct |
308 |
|
* Structures for graphics acceleration |
309 |
|
*/ |
310 |
|
|
311 |
< |
typedef void *CTabHandle; |
311 |
> |
typedef uint32 CTabHandle; |
312 |
|
|
313 |
|
// Parameter block passed to acceleration hooks |
314 |
|
struct accl_params { |
325 |
|
uint32 unknown2[3]; |
326 |
|
|
327 |
|
uint32 src_base_addr; |
328 |
< |
uint32 src_row_bytes; |
328 |
> |
int32 src_row_bytes; |
329 |
|
int16 src_bounds[4]; |
330 |
|
uint32 src_unknown1; |
331 |
|
uint32 src_pixel_type; |
338 |
|
uint32 src_unknown4; |
339 |
|
|
340 |
|
uint32 dest_base_addr; |
341 |
< |
uint32 dest_row_bytes; |
341 |
> |
int32 dest_row_bytes; |
342 |
|
int16 dest_bounds[4]; |
343 |
|
uint32 dest_unknown1; |
344 |
|
uint32 dest_pixel_type; |
357 |
|
|
358 |
|
uint32 unknown4[38]; |
359 |
|
|
360 |
< |
void (*draw_proc)(accl_params *); |
360 |
> |
uint32 draw_proc; |
361 |
|
// Argument for accl_sync_hook at offset 0x4f8 |
362 |
|
}; |
363 |
|
|
364 |
+ |
enum { |
365 |
+ |
acclTransferMode = offsetof(accl_params, transfer_mode), |
366 |
+ |
acclPenMode = offsetof(accl_params, pen_mode), |
367 |
+ |
acclForePen = offsetof(accl_params, fore_pen), |
368 |
+ |
acclBackPen = offsetof(accl_params, back_pen), |
369 |
+ |
acclSrcBaseAddr = offsetof(accl_params, src_base_addr), |
370 |
+ |
acclSrcRowBytes = offsetof(accl_params, src_row_bytes), |
371 |
+ |
acclSrcBoundsRect = offsetof(accl_params, src_bounds), |
372 |
+ |
acclSrcPixelType = offsetof(accl_params, src_pixel_type), |
373 |
+ |
acclSrcPixelSize = offsetof(accl_params, src_pixel_size), |
374 |
+ |
acclSrcCmpCount = offsetof(accl_params, src_cmp_count), |
375 |
+ |
acclSrcCmpSize = offsetof(accl_params, src_cmp_size), |
376 |
+ |
acclSrcPMTable = offsetof(accl_params, src_pm_table), |
377 |
+ |
acclDestBaseAddr = offsetof(accl_params, dest_base_addr), |
378 |
+ |
acclDestRowBytes = offsetof(accl_params, dest_row_bytes), |
379 |
+ |
acclDestBoundsRect = offsetof(accl_params, dest_bounds), |
380 |
+ |
acclDestPixelType = offsetof(accl_params, dest_pixel_type), |
381 |
+ |
acclDestPixelSize = offsetof(accl_params, dest_pixel_size), |
382 |
+ |
acclDestCmpCount = offsetof(accl_params, dest_cmp_count), |
383 |
+ |
acclDestCmpSize = offsetof(accl_params, dest_cmp_size), |
384 |
+ |
acclDestPMTable = offsetof(accl_params, dest_pm_table), |
385 |
+ |
acclSrcRect = offsetof(accl_params, src_rect), |
386 |
+ |
acclDestRect = offsetof(accl_params, dest_rect), |
387 |
+ |
acclDrawProc = offsetof(accl_params, draw_proc) |
388 |
+ |
}; |
389 |
+ |
|
390 |
|
// Hook info for NQDMisc |
391 |
|
struct accl_hook_info { |
392 |
< |
bool (*draw_func)(accl_params *); |
393 |
< |
bool (*sync_func)(void *); |
392 |
> |
uint32 draw_func; |
393 |
> |
uint32 sync_func; |
394 |
|
uint32 code; |
395 |
|
}; |
396 |
|
|